-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrol.py
28 lines (21 loc) · 835 Bytes
/
control.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
from tkinter import *
from tkinter.font import *
from typing import Sized
window = Tk()
doMoves = IntVar()
showMoves = IntVar()
class controls:
def __init__(self):
window.title("Game Control")
window.geometry('300x120')
Checkbutton(window, variable=doMoves, command=self.cb).grid(row=0, column=0, padx=15, pady=10)
fontStyle = Font(family="Lucida Grande", size=13)
Label(window, text='do moves', font=fontStyle).grid(row=0, column=1)
Checkbutton(window, variable=showMoves, command=self.cb).grid(row=2, column=0, padx=5, pady=10)
fontStyle = Font(family="Lucida Grande", size=12)
Label(window, text='show moves', font=fontStyle).grid(row=2, column=1)
return
def cb(self):
print ("variable is ", doMoves.get())
controls()
window.mainloop()