[Tkinter-discuss] Entry Widget that can't enter into at first.
ozgulfirat at gmail.com
Tue Aug 24 10:57:57 CEST 2010
Actually, I can reproduce the error described by the original poster... I am
not exactly sure about the true dynamics of the solution, but after_idle()
method seems to solve the problem in a way. Perhaps, for one reason or the
other, the program cannot return to the main window properly even though the
open dialog is terminated.
def __init__(self, parent=None, picdir='.', artdir='.', **args):
Frame.__init__(self, parent, args)
self.parent = parent
self.opens = picdir
self.artpics = artdir
self.drawn = None
#note the use of after_idle()
self.begin = self.after_idle(self.onOpen)
self.pick = 'TBD'
2010/8/24 Michael Lange <klappnase at web.de>
> Thus spoketh "wet_colored)arch" <wet_colored_arch at yahoo.com>
> unto us on Tue, 24 Aug 2010 00:51:32 -0700 (PDT):
> > I cannot
> > 1) enter content into the entry field without first trying to quit and
> > then cancelling - I cannot expect the user to do this because it is not
> > intuitive. I should be able to enter the entry field immediately if I
> > want to.
> I cannot reproduce this here, as soon as the file dialog is closed I can
> click into the entry and type something in.
> > 2) I cannot seem to get the radio button to default to something I
> > want.. instead it has all buttons marked when the gui comes up.
> You need to define a value for the radiobutton's variable, otherwise all
> buttons will be "off" when instantiated, so simply add something like
> to makeWidgets() .
> I hope this helps
> .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
> Not one hundred percent efficient, of course ... but nothing ever is.
> -- Kirk, "Metamorphosis", stardate 3219.8
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tkinter-discuss