Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Nächste ÜberarbeitungBeide Seiten der Revision | ||
development:python:windows [2019-04-09 18:01] – Martin Prochnow | development:python:windows [2019-04-09 18:02] – Martin Prochnow | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Windows ====== | ====== Windows ====== | ||
- | |||
- | ===== Schnipsel ===== | ||
- | Modalen Dialog anzeigen: | ||
- | <sxh python> | ||
- | import os, sys, ctypes | ||
- | |||
- | ctypes.windll.user32.MessageBoxA(0, | ||
- | " | ||
- | os.path.abspath(os.curdir), | ||
- | os.path.abspath(os.path.dirname(sys.argv[0])), | ||
- | sys.winver, | ||
- | ), "%s - Message" | ||
- | ) | ||
- | </ | ||
===== COM-Wrapper-Klassen erstellen ===== | ===== COM-Wrapper-Klassen erstellen ===== | ||
Zeile 36: | Zeile 22: | ||
import inspect | import inspect | ||
path = inspect.currentframe().f_code.co_filename | path = inspect.currentframe().f_code.co_filename | ||
+ | </ | ||
+ | |||
+ | ===== Schnipsel ===== | ||
+ | Modalen Dialog anzeigen: | ||
+ | <sxh python> | ||
+ | import os, sys, ctypes | ||
+ | |||
+ | ctypes.windll.user32.MessageBoxA(0, | ||
+ | " | ||
+ | os.path.abspath(os.curdir), | ||
+ | os.path.abspath(os.path.dirname(sys.argv[0])), | ||
+ | sys.winver, | ||
+ | ), "%s - Message" | ||
+ | ) | ||
</ | </ | ||
{{tag> | {{tag> | ||