Simple Dialogs
Steve Holden
steve at holdenweb.com
Mon Sep 26 12:34:05 EDT 2005
Grant Edwards wrote:
> On 2005-09-26, neil.fraser at gmail.com <neil.fraser at gmail.com> 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 World", "Title", 0x00)
>
>
> Another easy way to do a dialog box:
>
> import os
> os.system('Xdialog --msgbox "Hello World" 0 0')
>
Doesn't seem to work on my Winodws system at all ;-)
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
More information about the Python-list
mailing list