|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. Simply change the last integer parameter to change the style of the message box.
import ctypes msgbox = ctypes.windll.user32.MessageBoxA ret = msgbox(None, 'Press OK to end the demo.', 'Deviare Python Demo', 0) print retThe last parameter controls the style of the MessageBox. There are 7 styles:
|Last Updated ( Friday, 25 April 2014 )|
Hint: For syntax highlighting and correct Python intendation place your code between html tags <pre> and </pre>.