[Pythonmac-SIG] Macintosh TK / Fatal Error, fix?
Schollnick, Benjamin
Benjamin.Schollnick@usa.xerox.com
Tue, 06 Nov 2001 15:37:15 -0500
Is there any known issues with the following modules?
tkMessageBox
tkFileDialog
I realize there are true Macintosh replacements/ equivalents, but I'm
attempting to make cross-platform code, which means that I'm limited by the
PC python code.
if handle == None:
rootWindow = Tkinter.Tk()
rootWindow.withdraw()
flag = tkMessageBox.askyesno (title = "Modify Previous INI File?",
message = "Do you wish to load a
previously created INI File?")
if flag:
filename = tkFileDialog.askopenfilename()
if filename <> "":
handle = ConfigParser.ConfigParser()
handle.read (filename)
The above code, will cause a TK/Tcl panic on the macintosh (Macpython v2.11,
OS v9.21), which forces me to Force Quit the program...
If I comment out the entire sequence, we're fine....
The error is:
Menu ID 256 is already in use! Fatal Python Error: Tcl/Tk Panic
Any suggestions are MORE than welcome...
- Benjamin
-----Original Message-----
From: Schollnick, Benjamin [mailto:Benjamin.Schollnick@usa.xerox.com]
Sent: Tuesday, November 06, 2001 2:58 PM
To: pythonmac-sig@python.org
Subject: [Pythonmac-SIG] Macintosh TK / Fatal Error, fix?
Folks,
I've mentioned this before, but final found a solution?
I was getting "Menu ID 256: Already in use
Fatal TCL/TK Error"....
(I believe that was the error, I'm paraphrasing, since I don't
have my notes here...)
I was using MacPython v2.0, I just installed v2.11, and the
"Wizard" TK package, is working fine....Without any errors
(at this point).
I'm assuming it was either a fix in Python, or a fix in the
TK/TCL libraries.... Either way, good work Just & the rest
of the MacPython team.... and the TK folks... But they
probably won't see this message...
- Benjamin
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig