minni / pytesseracttrainer

Automatically exported from code.google.com/p/pytesseracttrainer
GNU General Public License v3.0
0 stars 0 forks source link

Very sluggish due to constant redraws #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On my system at least (Ubuntu 10.04, 64bit), pyTesseractTrainer is very 
sluggish. This is because it is unnecessarily redrawing its window: 
drawingArea.modify_fg, which is called from inside redrawArea, will invalidate 
the widget, and so it is forced to constantly redraw. Instead, that call should 
be moved to the initializing phase. Attached patch fixes the issue.

Original issue reported on code.google.com by johan.wi...@gmail.com on 12 Feb 2011 at 9:15

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, I should have checked the other issues. This is obviously a duplicate of 
issue 10. Still, here's a fix for it. :-)

Original comment by johan.wi...@gmail.com on 12 Feb 2011 at 9:24

GoogleCodeExporter commented 8 years ago
Thanks. Commited in revision 49

Original comment by zde...@gmail.com on 14 Feb 2011 at 6:35