[New-bugs-announce] [issue2638] tkSimpleDialog Window Flashing
Ron Longo Work
report at bugs.python.org
Tue Apr 15 17:44:13 CEST 2008
New submission from Ron Longo Work <longorh at npt.nuwc.navy.mil>:
When a Tkinter window comes up that uses tkSimpleDialog to construct a
dialog box, the window first flashes on the screen as an unpopulated
top-level window, before being drawn in its completed state.
This problem is easily corrected by adding two lines of code to the
constructor for class Dialog in tkSimpleDialog.py. The first line of
the constructor reads Toplevel.__init__( self, parent ). After this
line insert self.overrideredirect( True ). The second line from the
last in this constructor reads self.initial_focus.focus_set(), just
before this line insert self.overrideredirect( False). That's it.
I've attached the revised version of this file.
title: tkSimpleDialog Window Flashing
versions: Python 2.5
Added file: http://bugs.python.org/file10035/tkSimpleDialog.py
Tracker <report at bugs.python.org>
More information about the New-bugs-announce