From 149ab17d830c79aa661638158d2df4c4e84e8628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1=C4=8Dek?= Date: Wed, 14 Dec 2022 13:05:58 +0100 Subject: [PATCH] bis merge fixed --- test.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..123d06a --- /dev/null +++ b/test.py @@ -0,0 +1,45 @@ + +import configparser +#from tkinter import * +import tkinter as tk + +window = tk.Tk() + +frame = tk.Frame(master=window, width=150, height=150) +frame.pack() +# frame = tk.Frame(config) +config = configparser.ConfigParser() +config.read('config.conf') +""" +tmgdspen = config.get('modules', 'tmgdsp') +vfgdspen = config.get('modules', 'vfgdsp') +tmczen = config.get('modules', 'tmcz') +vfczen = config.get('modules', 'vfcz') +print(tmgdspen) +print(vfgdspen) +print(tmczen) +print(vfczen) +""" +tmgdspen = tk.IntVar() +vfgdspen = tk.IntVar() +tmczen = tk.IntVar() +vfczen = tk.IntVar() +tmgdspen.set(int(config.get('modules', 'tmgdsp'))) +vfgdspen.set(int(config.get('modules', 'vfgdsp'))) +tmczen.set(int(config.get('modules', 'tmcz'))) +vfczen.set(int(config.get('modules', 'vfcz'))) + +checktmgdsp = tk.Checkbutton(window, text="TMGDSP", variable=tmgdspen, onvalue=1, offvalue=0) +checktmgdsp.place(x=10, y=10) + +checkvfgdsp = tk.Checkbutton(window, text="VFGDSP", variable=vfgdspen, onvalue=1, offvalue=0) +checkvfgdsp.place(x=10, y=30) + + +checktmcz = tk.Checkbutton(window, text="TMCZ", variable=tmczen, onvalue=1, offvalue=0) +checktmcz.place(x=10, y=50) + +checkvfcz = tk.Checkbutton(window, text="VFCZ", variable=vfczen, onvalue=1, offvalue=0) +checkvfcz.place(x=10, y=70) + +window.mainloop() \ No newline at end of file