While using wx.TextCtl with windows option wx.TE_RICH2, let me get this strange bug with auto-scrolling The appendext function scrolls so that all the text is above the visible area, which is not very useful behavior.
I just tried to call after scrolling (-1) - which scrolls it right Position - but this window may flash when it auto-scrolls so I can auto I'm looking for another way to scroll down.
So far, my solution is to bypass the appendage functions auto-scroll and apply it manually, such as:
def append_text (textctrl, text): before_number_of_lines = Textctrl.GetNumberOfLines () textctrl.SetInsertionPointEnd () textctrl.WriteText (text) after_number_of_lines = textctrl.GetNumberOfLines () textctrl.ScrollLines (before_number_of_lines - after_number_of_lines + 1)
Is there a better way?
You are locked.
textctrl.SetInsertionPointEnd () textctrl.WriteText (license) textctrl.SetInsertionPointEnd ()
Comments
Post a Comment