New submission from Ron Longo Work <[EMAIL PROTECTED]>: 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. ---------- components: Tkinter files: tkSimpleDialog.py messages: 65519 nosy: Longorh severity: normal status: open title: tkSimpleDialog Window Flashing versions: Python 2.5 Added file: http://bugs.python.org/file10035/tkSimpleDialog.py __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2638> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com