- Timestamp:
- Mar 6, 2017, 1:27:56 AM (8 years ago)
- Branches:
- master
- Children:
- 1d1c77e
- Parents:
- 3960923
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game.py
r3960923 rb632a7c 10 10 import ctypes 11 11 user32 = ctypes.windll.user32 12 [w, h] = [user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)] 12 w = user32.GetSystemMetrics(0) 13 h = user32.GetSystemMetrics(1) 13 14 elif system == 'Linux': 14 15 print("Linux detected") 16 17 import tkinter 18 root = tkinter.Tk() 19 w = root.winfo_screenwidth() 20 h = root.winfo_screenheight() 15 21 else: 16 22 print("Unknown OS: " + system)
Note:
See TracChangeset
for help on using the changeset viewer.