Simple Dialogs

Grant Edwards grante at visi.com
Mon Sep 26 10:24:40 EDT 2005


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')

-- 
Grant Edwards                   grante             Yow!  I will establish
                                  at               the first SHOPPING MALL in
                               visi.com            NUTLEY, New Jersey...



More information about the Python-list mailing list