Message Window not output text in real time

4 views
Skip to first unread message

depython

unread,
Feb 6, 2010, 10:15:19 AM2/6/10
to ulipad
The Message Window is for the stdio/console output. The window is not
populated with messages. Only when the application ends will the
window be populated with messages.

Could you please fix it so that the messages are displayed in real
time?

Note: Ulipad 4.0 has this problem
Ulipad 3.9 has no problem displaying the messages in real time

limodou

unread,
Feb 6, 2010, 10:59:27 AM2/6/10
to uli...@googlegroups.com

Maybe it is because there is no "-u" parameter in python argument any
more, but you can add it yourself.

--
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://uliwebproject.appspot.com
My Blog: http://hi.baidu.com/limodou

depython

unread,
Feb 6, 2010, 6:59:54 PM2/6/10
to ulipad
Thanks for your hints. I found 2 ways to solve my problem.

1. Python->Set Arguments...
Enter -u for the Parameters
2. mixins\Imports.py
def OnPythonRun(win, event):
..........
#modified the below line to include -u to enable unbuffered
stream output
#command = u'"%s" %s "%s" %s' % (interpreter, parameter,
doc.filename, args)
command = u'"%s" -u %s "%s" %s' % (interpreter, parameter,
doc.filename, args)

On Feb 6, 4:59 pm, limodou <limo...@gmail.com> wrote:

limodou

unread,
Feb 6, 2010, 9:28:35 PM2/6/10
to uli...@googlegroups.com
On Sun, Feb 7, 2010 at 7:59 AM, depython <demapl...@googlemail.com> wrote:
> Thanks for your hints. I found 2 ways to solve my problem.
>
> 1. Python->Set Arguments...
>    Enter -u for the Parameters
> 2. mixins\Imports.py
>    def OnPythonRun(win, event):
>          ..........
>          #modified the below line to include -u to enable unbuffered
> stream output
>          #command = u'"%s" %s "%s" %s' % (interpreter, parameter,
> doc.filename, args)
>          command = u'"%s" -u %s "%s" %s' % (interpreter, parameter,
> doc.filename, args)
>

If you use the second appoach, it'll enabled for all situations, so I
think the first appoach is better.

Reply all
Reply to author
Forward
0 new messages