February 23rd, 2005, 01:38 PM
Hey i dont know if i should open another thread or just post my question here.
But oh well here u go.
I am also doing Tkinter at the moment and i am just reading for the most part.
But i dont understand how to make a function and then the variables assigning.
For example: ###This is a script i got from a website.
from Tkinter import *
print "hi there, everyone!"
print "Bye everyone."
self.QUIT = Button(self)
self.QUIT["text"] = "QUIT"
self.QUIT["fg"] = "red"
self.QUIT["bg"] = "blue"
self.QUIT["command"] = self.quit
self.hi_there = Button(self)
self.hi_there["text"] = "Hello",
self.hi_there["command"] = self.say_hi
def __init__(self, master=None):
app = Application()
### These functions do not have anything to assign but how would i be able that the user assigns them and then I apply them to my function.
print x+y # How would i assign these variables