1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
class Starting_window(Tkinter.Tk): #First instruction window
def __init__(self,parent):
Tkinter.Tk.__init__(self,parent)
self.parent = parent
self.initialize()
self.geometry("350x270")
def initialize(self):
self.grid()
texte = Tkinter.Label(self, text=input_text, fg="white",bg="blue")
texte.pack(side=Tkinter.TOP)
texte.grid(column=0,row=0,sticky='N')
button_continue = Tkinter.Button(self,text=u"Continue",
command=self.OnButtonClickContinue)
button_continue.grid(column=0,row=5,sticky='W')
button_kill = Tkinter.Button(self,text=u"Quit",
command=self.OnButtonClickKill)
button_kill.grid(column=0,row=5,sticky='E')
self.resizable(False,False)
def OnButtonClickContinue(self):
input_values.completion = 1
self.destroy()
app = First_Variable_Choice(None)
app.title('DetectorCL - Testing Tool')
def OnButtonClickKill(self):
input_values.completion = 0
self.destroy() |
Partager