wxPython TextCtrl - weird scrolling behavior

John Salerno johnjsal at NOSPAMgmail.com
Mon Oct 30 20:52:15 CET 2006

abcd wrote:
> I have a TextCtrl which is set to be multi-line.  I have a function
> say, updateText(msg), which takes some string and appends it to the
> text control...
> txtControl.AppendText(msg)
> ....however, if the text that I am appending would cause the scroll
> bars to appear/or scroll since the text is long the textcontrol appears
> to be blank, until you click on the scroll bar...then the text appears.
>  Any ideas?  is this is a sizer problem or a TextCtrl issue??
> thanks

Don't know for sure, but you can try calling the Refresh() method on the 
text control and see if that fixes it.

More information about the Python-list mailing list