-
Notifications
You must be signed in to change notification settings - Fork 9
/
uengine-app-setting.py
executable file
·35 lines (33 loc) · 1.3 KB
/
uengine-app-setting.py
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
#!/usr/bin/env python3
from modulefinder import packagePathMap
import sys
import ttkthemes
import updatekiller
import tkinter as tk
import tkinter.ttk as ttk
def main():
window = tk.Tk()
ttk.Label(window, text="程序包名:").grid(row=0, column=0)
packageName = ttk.Combobox(window)
packageName.grid(row=0, column=1)
settingFrame = ttk.Frame(window)
readButton = ttk.Button(window, text="确定").grid(row=0, column=2)
settingFrame.grid(row=1, column=0, columnspan=3)
hScreenSize = ttk.Labelframe(settingFrame, text="竖屏默认分辨率")
vScreenSize = ttk.Labelframe(settingFrame, text="横屏默认分辨率")
hScreenSizeWidthValue = ttk.Entry(hScreenSize)
hScreenSizeHeightValue = ttk.Entry(hScreenSize)
hScreenSizeWidthValue.grid(row=0, column=0)
ttk.Label(hScreenSize, text="×").grid(row=0, column=1)
hScreenSizeHeightValue.grid(row=0, column=2)
vScreenSizeWidthValue = ttk.Entry(vScreenSize)
vScreenSizeHeightValue = ttk.Entry(vScreenSize)
vScreenSizeWidthValue.grid(row=0, column=0)
ttk.Label(vScreenSize, text="×").grid(row=0, column=1)
vScreenSizeHeightValue.grid(row=0, column=2)
hScreenSize.grid(row=0, column=0)
vScreenSize.grid(row=1, column=0)
window.mainloop()
return 0
if __name__ == "__main__":
sys.exit(main())