-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtk.py
More file actions
36 lines (23 loc) · 642 Bytes
/
tk.py
File metadata and controls
36 lines (23 loc) · 642 Bytes
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
36
from tkinter import *
root = Tk()
root.title("Maddox's Auto Clicker")
root.geometry("290x290")
root.attributes('-alpha', 0.8)
root.resizable(False, False)
def getentry():
string = buttons1.entry.get()
return string
class buttons1:
ONOFF = IntVar()
switch = Checkbutton(root, text='Enable AutoClicker (time in s)', variable=ONOFF, onvalue=1, offvalue=0)
switch.select()
ONOFF.set(0)
entry = Entry(root, width=30, bg="lightgray")
def placeb():
buttons1.switch.place(x=15, y=10)
buttons1.entry.place(x=15, y=30)
def update():
root.update()
def tkinterloop():
placeb()
root.mainloop()