wow geez what a mistake LOL
i fixed that and some other mistakes i made but its not doing what i anticipated it to....
i got it running and it has my message there and the 2 buttons. How do i make the buttons be under the message? instead of to the side? is there some kind of command i have to put in after (side = ? )
also why does it make me go back to the CMD to input my answer? and when i input my answer it says i ahve a value error for the int on line 31?
what should i do to make the word that i want unscrambled to apear in a text box like my questions and buttons do? and have them input from there?
Thanks for the help Nova

its now telling me that it the global name frame isnt defined on line 31 in play
CODE
from Tkinter import *
class app:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.label = Label(frame, text="Would you like to play?")
self.label.pack(side=LEFT)
self.button = Button(frame, text="Yes!", command=self.play)
self.button.pack(side=LEFT)
self.button = Button(frame, text="NO!!!", command=frame.quit)
self.button.pack(side=LEFT)
def play(self):
class app:
def __init__(self, master):
frame = Frame(master)
frame.pack()
number = aStr = "dictionary"
a = 'dictionary'
answer = a
answer = ''
self.message = Message(frame, text= "Descramble this word!!")
self.message = Message(frame, text= aStr[3] + aStr[6] + aStr[1] + aStr[5] + aStr[0] + aStr[9] + aStr[2] + aStr[8] + aStr[4] + aStr[7])
attempts = 0
while answer != number:
attempts = attempts + 1
self.entry = Entry( )
if( Entry > number ):
print 'Try Again'
elif( Entry < number ):
print 'Wrong'
elif( Entry == number ):
print 'you got it rights in %i tries!' %(attempts)
root = Tk()
app = app(root)
root.mainloop()
This post has been edited by sandman93: 5 May, 2008 - 03:52 PM