GUI TEST
Button TEST
import tkinter as tk
root=tk.Tk()
x=0
def func():
label.config(text='Pushed151515')
label2.config(text='Pushed')
import tkinter as tk
root=tk.Tk()
x=0
def func():
label.config(text='Pushed151515')
label2.config(text='Pushed')
def func2():
print('hey man')
global x
x=x+1
label.config(text=x)
label2.config(text='culture')
label=tk.Label(root, text='Pushed')
label.pack()
label2=tk.Label(root, text='Pushed2')
label2.pack()
button=tk.Button(root, text='Push', command=func, width=500)
button.pack()
button2=tk.Button(root, text='Push2', command=func2, width=500)
button2.pack()
root.mainloop()
def func2():
print('hey man')
global x
x=x+1
label.config(text=x)
label2.config(text='culture')
label=tk.Label(root, text='Pushed')
label.pack()
label2=tk.Label(root, text='Pushed2')
label2.pack()
button=tk.Button(root, text='Push', command=func, width=500)
button.pack()
button2=tk.Button(root, text='Push2', command=func2, width=500)
button2.pack()
root.mainloop()