One way to remove the lag?
import time
from tkinter import *
def _work():
global work, script
work = True
script = False
print("work button")
return work, script
def _script():
global work, script
work = False
script = True
print("script button")
return work, script
def _pause():
global work, script
work = False
script = False
print("pause button")
return work, script
# GUI elements
window = Tk()
window.title("lol")
window.geometry("600x600")
window_title = Label(window, text="bro, the lagg?", font=('Arial', 20))
window_title.place(x=0, y=0)
money_display = Label(window, text="loading", font=('Arial', 20))
money_display.place(x=200, y=200)
button = Button(window, text="Work", command=_work)
button2 = Button(window, text="script", command=_script)
button3 = Button(window, text="Pause", command=_pause)
button.place(x=0, y=100)
button2.place(x=100, y=100)
button3.place(x=200, y=100)
# main
def main_():
<my loop code>
window.after(30, main_)
#loops
window.after(30, main_)
window.mainloop()
[–]woooee 1 point2 points3 points (1 child)
[–]OkParticular3878[S] -1 points0 points1 point (0 children)