[Tkinter-discuss] help: _tkinter.TclError appears when calling tkMessageBox.showinfo
focalization
hxs7709 at tom.com
Tue Feb 14 03:29:53 CET 2012
I have searched the web, and can not find any clue about it.
Please give me some clue about where is the possible root cause of this
problem?
Thanks a lot.
#code
import Tkinter
import tkMessageBox
tkMessageBox.showinfo('aaaaaaaaaa')
#error
Traceback (most recent call last):
File "/home/xshuang/workspace/CPP/pydemo/src/test.py", line 4, in <module>
tkMessageBox.showinfo('aaaaaaaaaa')
File "/usr/local/lib/python2.7/lib-tk/tkMessageBox.py", line 83, in
showinfo
return _show(title, message, INFO, OK, **options)
File "/usr/local/lib/python2.7/lib-tk/tkMessageBox.py", line 72, in _show
res = Message(**options).show()
File "/usr/local/lib/python2.7/lib-tk/tkCommonDialog.py", line 48, in show
s = w.tk.call(self.command, *w._options(self.options))
_tkinter.TclError: bad attribute "-type": must be -alpha, -topmost, -zoomed,
or -fullscreen
#how to reproduce
1. In Fedora 12, no problem appears with default python.
But, after using the following command to update python, yum reinstall
tcl.i686 / tk.i686 / tkinter / tklib, the above problem appears.
2. In Windows, no problem appears.
--
View this message in context: http://python.6.n6.nabble.com/help-tkinter-TclError-appears-when-calling-tkMessageBox-showinfo-tp4467314p4467314.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
More information about the Tkinter-discuss
mailing list