Wrapping the markWords method in calls to Freeze and Thaw helps a bit
with the scrolling on windows, but I'm not sure what's going on with
wxGTK, I can't get a good backtrace from it... Please enter a bug
report about it with a category of wxGTK.
yep, it helps a bit, in addition if I do something like this:
def markWords(self, event):
self.Freeze()
ins_point=self.GetInsertionPoint()
self.SetInsertionPoint(0)
self.ShowPosition(0)
pos_lst=[(0, 5), (10, 20), (25, 40), (345, 355), (423, 440)]
font=self.GetFont()
for pos in pos_lst:
self.SetStyle(pos[0],
pos[1],
wxTextAttr(wxNullColour,
wxColour(168, 225, 248), font))
self.SetInsertionPoint(ins_point)
self.ShowPosition(ins_point)
self.Thaw()
it allows me to avoid that slow scrolling at all.
I will enter a bug report soon.
Many thanks,
~Serge
···
+++++
This mail has been sent through the MPI for Demographic Research. Should you receive a mail that is apparently from a MPI user without this text displayed, then the address has most likely been faked. If you are uncertain about the validity of this message, please check the mail header or ask your system administrator for assistance.