Re: [Tutor] Wiget

2006-06-30 Thread Alan Gauld
The problem is at the end where i try and get the number of Tries the user has tried it would just reset everytime the button in clicked, so my question is how would i go about getting the number of times the button is clicked and the anwser is wrong. def number_anwser(self):

[Tutor] Wiget

2006-06-29 Thread ryan luna
Hey everyone, im just learning to use Tkinter, and im trynig to write a"Guess my number" game program in widget forum but im having some problems,First heres the code im using,Button(self, text = "Sumit", command = self.number_anwser ).grid(row = 4, column = 0, sticky = W) self.response_txt =

Re: [Tutor] Wiget

2006-06-29 Thread John Fouhy
On 30/06/06, ryan luna [EMAIL PROTECTED] wrote: def number_anwser(self): guess = self.guess_ent.get() guess = int(guess) response = tries = 1 if (guess the_number): response += Higher tries += 1 elif (guess