I use winxp and wxpython (wxpython 3.1, python 2.6) to make a GUI program that will copy text from TextCtrl into a ScrollablePanel that contains a StaticText. All this works great, however, the scrollable part does not work correctly. It looks like it will not be updated in real time. When I moisten the window and enlarge it again, the scroll bar is updated. However, if I start typing text in TextCtrl again (thereby adding text to the StaticText inside the ScrollablePanel using the event), the scrollbar on the panel will not be updated unless I hide again and so on.
So the question is, how can I update the ScrolledPanel in real time? I have an event setting that is waiting for text to change in TextCtrl, where I think the update should go. I tried updating, updating, and layout, but they didn't seem to do much. The big question is: what minimizes the window and maximizes it again, what not, update, update and layout? Thank you for helping with this. Sorry, I canβt send the code confidential. I would be grateful for any help you could give me. Usually I can find the problems on my own, but I just did not find any documentation on this. This is the first time for me, but I get a lot of help from your answers. Thanks again!:)
Added:
import wx import wx.lib.inspection from wx.lib.scrolledpanel import ScrolledPanel class MyFrame( wx.Frame ):
This is usually what happens without paying too much attention to the purpose of the program. I tweak the virtual size thinking so that the size of the panel is larger than the area it fills, hoping that it will have constant scrollbars, but it is not.
Isaac source share