Wolfgang Forstmeier wrote:

<snip />


Ok, but do you really use idlelib for something? Or it's just some
random code you found somewhere and drop into your application?

Ah yes, I really use this. I create some message boxes for a little GUI application that controls some other program with COM. Running my app without py2exe, just with python, there is no warning at all. This comes in with py2exe first.

Here some piece of code that I use for tkMessageBox.

from idlelib.OutputWindow import tkMessageBox

...
    # Define about message box
    def about(self):
        tkMessageBox.showinfo("About", "My little about text box.")
    # --
...

There is some more GUI programming arround that def in my class, but that uses only Tkinter, should not be interesting for that error.


So why not use tkMessageBox directly, and skip Idle's namespace wrapping?

import tkMessageBox

tkMessageBox.showinfo("About", "My little about text box.")


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to