10.2
#Guess number in graphic import random from tkinter import * class Application(Frame): the_number=0 def __init__(self, master): super(Application, self).__init__(master) self.grid() self.create_widgets() def create_widgets(self): #create instruction label self.inst_lbl=Label(self, text = "Try to guess number from 1 to 100") self.inst_lbl.grid(row=0, column = 0, columnspan = 2, sticky = W) # create newgame button self.newgame_bttn = Button(self, text = " new game ", command = self.new_game) self.newgame_bttn.grid(row = 1, column = 0, columnspan=3, sticky = W) #create label for guess self.guess_lbl=Label(self, text = "Your guess: ") self.guess_lbl.grid(row=2, column = 0, columnspan = 1, sticky = W) # create entry widget to ...