Re: Simple Dialogs

2005-09-29 Thread William Park
[EMAIL PROTECTED] wrote: > 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 b

Re: Simple Dialogs

2005-09-26 Thread Grant Edwards
On 2005-09-26, Steve Holden <[EMAIL PROTECTED]> 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", 0x0

Re: Simple Dialogs

2005-09-26 Thread Steve Holden
Grant Edwards wrote: > On 2005-09-26, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>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.u

Re: Simple Dialogs

2005-09-26 Thread Thorsten Kampe
* [EMAIL PROTECTED] (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 second

Re: Simple Dialogs

2005-09-26 Thread Grant Edwards
On 2005-09-26, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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 Wor

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-

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 (

Re: Simple Dialogs

2005-09-23 Thread James Stroud
py> from tkMessageBox import askquestion, showerror py> from tkSimpleDialog import askfloa py> a = askfloat('Census Data', 'Enter Salary') py> print a 12500.51 py> a = askquestion('Opinion', 'Do you think windoze sucks?') py> print a yes py> a = showerror('Problem','Program Crashed before Starting'

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 dozen