[Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

Alan Gauld alan.gauld at btinternet.com
Wed Feb 11 10:28:51 CET 2009


"Wayne Watson" <sierra_mtnview at sbcglobal.net> wrote

> Signature.htmlMy program in IDLE bombed with:
> ==============
> Exception in Tkinter callback
> Traceback (most recent call last):
>    dialog = OperationalSettingsDialog( self.master, set_loc_dict )
>    tkSimpleDialog.Dialog.__init__(self, parent)
>    self.wait_visibility() # window needs to be visible for the grab

> But runs fine in pythonWin performing the same entry operation.

Lets eliminate some variables by avoiding any IDEs.

Does it work OK when run from a DOS console?
Or if you just double click the file in Windows explorer?

If it does that means its some kind of interaction between the program
and IDLE. This is not unusual since IDLE is itself a Tkinter program
and although recent versions are much better behaved with Tkinter
it can still cause some strangeness.

If you still get an error running outside the IDE then we can analyze
it more closely. For that we will need the code, at least the function
that calls the dialog. And if its a subclass the dialog class too.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/l2p/




More information about the Tutor mailing list