Mercurial > pub > dyncall > bindings
view python/pydc/examples/win32msgbox.py @ 50:edf5c85de5ac
put pyi next to so for mypy to pick it up, directly
author | Tassilo Philipp |
---|---|
date | Sat, 14 Nov 2020 21:18:09 +0100 |
parents | 0cfcc391201f |
children |
line wrap: on
line source
from pydc import * """ show message box on windows """ user32 = load("user32") fpMessageBoxA = find(user32,"MessageBoxA") def showMessage(name,title="dyncall demo",type=0): call(fpMessageBoxA,"ippi)v",0,name,title,type) showMessage("hello")