Simple Dialogs

2005-09-23 Thread neil . fraser
I'm looking for a lightweight dialog boxes from Python.
JavaScript uses: alert(), confirm() and prompt()
VB uses: MsgBox() and InputBox()
EasyGui seemed perfect, but a "Hello World" application takes nearly a
minute to execute after the program has been compiled by py2exe.

There appear to be dozens of windowing toolkits avilable for Python,
could someone point me in the direction of something lightweight?

Thanks.

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


Re: Simple Dialogs

2005-09-23 Thread neil . fraser
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.

Sounds like I'll need to write a one-line msgbox.exe in Visual Whatever
or Euphoria and execute that from Python.

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


Re: Simple Dialogs

2005-09-26 Thread neil . fraser
James Stroud wrote:
> from tkMessageBox import showerror
> showerror('Problem','Program Crashed before Starting')

Here's a faster method, though not cross-platform:

import ctypes
ctypes.windll.user32.MessageBoxA(0, "Hello World", "Title", 0x00)

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