|
Simple VBA like MessageBox in Python |
|
|
|
Some days ago I found a very easy pythonic way to show a VBA-like MessageBox. It was created with only one line of cpython code.
The code is very very easy:
import ctypes
msgbox = ctypes.windll.user32.MessageBoxA
ret = msgbox(None, 'Press OK to end the demo.', 'Deviare Python Demo', 0)
print ret
The last parameter controls the style of the MessageBox. There are 7 styles:






 |
|
Last Updated ( Tuesday, 08 January 2013 )
|