Hi, Its always better if you provide code which can be run. Reduce out all irrelevant code. (often this process shows you the problem in your code).
If you have an askyesno dialogue open, that hogs the keyboard, so you cannot type to another window while it is open. Mick On Tue, Aug 17, 2010 at 11:52 AM, wet_colored)arch <wet_colored_a...@yahoo.com> wrote: > > What basically happens is if I use the application all features work fine > except the entry widget I have created. I cannot add text or even get the > cursor to appear in the entry field. > > What is odd is I have a askyesno button for quiting. If I hit "no" and > return to the application, I can then enter text and move the cursor with > the tab to other features and buttons in my gui. > > How do I get the entry box to work? > > The problem might be tied to windows, frames and parents (which I still > don't fully understand even though I have built 5 gui's now). The relevant > code is abridged as below: > > if __name__ == '__main__': > root = Tk() > root.title('Artifact Pointer')# adapted from_PyView 1.0') > Label(root, text="Point to Artifacts Observed").pack() > SlideShow(root, picdir=picdir, artdir=artdir, bd=3, relief=SUNKEN) > root.mainloop() > > preceeded by: > > class SlideShow(Frame): > def __init__(self, parent=root, picdir='.', artdir='.', msecs=3000, > **args):#msecs is legacy > Frame.__init__(self, parent, args) > self.parent = root > self.makeWidgets() > > and under def makeWidgets I have: > > self.vent=StringVar() > Entry(self,textvariable=self.vent).pack() > > > I have tried some variants and have read several forums and Lutz and still > am not getting this sorted out. It is odd to me that it works, but only > AFTER, I hit no under askyesno button. > -- > View this message in context: > http://old.nabble.com/Entry-Widget-that-can%27t-enter-into-at-first.-tp29449209p29449209.html > Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss