Simple Dialogs

Thorsten Kampe thorsten at thorstenkampe.de
Mon Sep 26 11:17:05 EDT 2005


* neil.fraser at gmail.com (2005-09-23 23:39 +0100)
> James Stroud wrote:
>> from tkMessageBox import showerror
>> showerror('Problem','Program Crashed before Starting')
> 
> Thanks.  That works great when interpreted (though a blank window seems
> to open as well).  Unfortunately it still takes 40 seconds to execute
> after it has been 'compiled' with py2exe (I've only got a P3).  This
> probably has something to do with the fact that the resulting files for
> this two-liner weigh in at just under 8MB.

Try with Pyinstaller. There are issues with py2exe and EasyGui. I have
a script that uses either EasyGui or EasyDialog (on Windows) and the
Tkinter part crashes constantly (newest py2exe) while EasyDialogs
works just fine.

Compiled with Pyinstaller they both work fine (and the exe is at 1.7
MB)



More information about the Python-list mailing list