Python equivilant to msgbox()

Andre Burgaud andre.burgaud at gmail.com
Sun Feb 12 20:03:15 EST 2006


Hi,

If you target Windows, you may try ctypes
http://starship.python.net/crew/theller/ctypes/:

>>> from ctypes import *
>>> windll.user32.MessageBoxA(None, "MessageBox Text", "MessageBox Caption",
0)
1
>>>


or win32api http://starship.python.net/crew/mhammond/win32/:
>>> import win32api
>>> win32api.MessageBox(0, "Text", "Title")
1
>>>

Regards,

Andre
http://www.burgaud.com/



On 2/12/06, LittlePython <LittlePython at lost.com> wrote:
>
> Is there an equivalent to a msgbox() or wscript.echo (via wcsript) . I
> would like to call this instead of print (to the screen) . I would like to
> write a simple script that is not an event drive gui but calls input boxes,
> message boxes, or maybe even a file open browser box as well?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060212/3c7e3b9d/attachment.html>


More information about the Python-list mailing list