- Code: Select all
from tkinter import *
text = 1
text = text + 1
window = Tk()
button = Button(window, text = '+ 1', command = blaha() )
I am trying to get the "text label" to count upp on buttonpress. Am i using the wrong widget or... its probably a bunsh of syntax-errors.
Would be nice to keep it simple with no class stuff for now, =)