The scrolling isn't the issue, and I probably need to add the panels to the
AUI pane manager. The text pane scrolls fine in my real application.
What I am trying to do is make the rich text box act like the normal text
box. On my machine, the rich text box (in this application and in my real
application) sort of freezes until I stop updating it, and then it updates
all at once with the scroll bar at the top. The normal text box updates
immediately and scrolls downwards like a log viewer. Do you see the same
effect?
Thanks.
Carl
···
-----Original Message-----
From: wxpython-users-bounces+s7plc=ttlc.net@lists.wxwidgets.org
[mailto:wxpython-users-bounces+s7plc=ttlc.net@lists.wxwidgets.org] On Behalf
Of Mike Driscoll
Sent: Monday, 8. December 2008 15:42
To: wxpython-users@lists.wxwidgets.org
Subject: Re: [wxpython-users] TextCtrl vs. RichTextCtrl
Mario Lacunza wrote:
2008/12/7 Carl <s7plc@ttlc.net <mailto:s7plc@ttlc.net>>
Hello Robin,
Yes, I tried both types of RichText, with the same results. Also,
I forgot
to mention that the OS is XP Pro, I'm using the latest version of
wxPython,
and my project is based on the AUI_Manager.I'm not intentionally blocking the event loop. For now, everything is
running in the main thread (to put these pseudo-dialogs in
separate threads
is a future task, but not necessary now). It works fine with the
TextCtrl.I've attached some code that shows exactly what I'm experiencing.
The app
starts with two buttons, and they create panes with normal text
and rich
text. I'm not using a timer to slow down the updates, but there
are enough
lines to see that the normal text display updates with each new
line and
always scrolls to the last line. The rich text pane doesn't update
at all
until all lines are appended, and the scroll position is at the top. I
noticed that neither panel will scroll, but that doesn't happen in
my real
application, and can be ignored.Thanks for taking a look.
Carl
I test your app but I cant see any difference between both.. only the
richttext button take a little more time to charge, but in both we can
scroll to the bottom with no problem or odd behavior.I use Ubuntu 8.10, Python 2.5.2 and wxPython 2.8.9.1
--
Saludos / Best regardsMario Lacunza
Software Architect - WebmasterEmail: mlacunza [AT] gmail [DOT] com
http://www.lacunza.info
Lima - Peru
It definitely does not scroll on Windows XP. Unfortunately, I don't know
enough about AUI and / or nested panels to understand why...so I'm not
sure which is causing the issue or if that even is the issue. Hmmm
Mike
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users