1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
Global functions and data
AfxMessageBox(text, style)
Present a modal dialog box. Return value is the string from the
selected button.
text, string
The text to put in the dialog box.
style, int
The logical "or" of the following:
Buttons, one to three buttons (default MB_OK) as follows:
wpycon.MB_OK ESC means return OK.
wpycon.MB_OKCANCEL ESC means Cancel.
wpycon.MB_RETRYCANCEL ESC means Cancel.
wpycon.MB_YESNO ESC is ignored.
wpycon.MB_YESNOCANCEL ESC means Cancel.
wpycon.MB_ABORTRETRYIGNORE ESC is ignored.
The default button is zero, unless one of these is given:
wpycon.MB_DEFBUTN1
wpycon.MB_DEFBUTN2
An icon to put in the dialog:
wpycon.MB_ICONEXCLAMATION The "!" symbol.
wpycon.MB_ICONINFORMATION A circle with "i".
wpycon.MB_ICONQUESTION A question mark.
wpycon.MB_ICONSTOP A stop sign.
For example, style = wpycon.MB_YESNO | wpycon.MB_DEFBUTN1 | wpycon.MB_ICONSTOP.
id = SetTimer(tup, delay)
Set a timer to "delay" milliseconds. When the timer expires,
the built-in function apply() is called with the arguments in "tup".
If delay is zero, the function will be called when the system is idle.
For example:
id = SetTimer((MyFunc, ()), 5000) # function with no args.
id = SetTimer((MyFunc, (1,)), 5000) # function with one arg.
id = SetTimer((MyFunc, (1,2)), 5000) # function with two args.
KillTimer(id)
Kill the timer identified by "id", the value returned
by SetTimer(). The type of "id" depends on the system. Do
not alter it.
SetIdleFunc(func, arg1, arg2, ...)
Install "func" as an idle function. It will be called repeatedly
with the stated arguments when the system is idle until it returns
a FALSE Python value. On a FALSE return it is removed from the
list of idle functions, and you must call SetIdleFunc() again to
restart it. Multiple idle functions are allowed.
Windows Only
============
wpy_nt.CreateProcess(string)
Start the program (with arguments) identified by "string". Similar
to "system()" but does not use a shell.
|