py2exe problem

Wolfgang Forstmeier mailing at supai.de
Mon Apr 6 04:16:29 EDT 2009


On 03.04.2009 15:58, Dave Angel wrote:
>
>
> 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.")
>

Hey Dave, thanks a lot, that did the job, because I really does not use 
Idle in any other place.




More information about the Python-list mailing list