-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSituationView.py
47 lines (34 loc) · 1.11 KB
/
SituationView.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from tkinter import *
class SituationView:
def __init__(self, master):
self.inst = master
self.inst.title("Automatizador - NBO2001")
self.inst.geometry('400x150')
self.div_1 = Frame(self.inst)
self.div_1['width'] = 350
self.div_1['height'] = 100
self.div_1['pady'] = 10
self.div_1.pack(side=TOP)
self.div_2 = Frame(self.inst)
self.div_2['width'] = 350
self.div_2['height'] = 100
self.div_2['pady'] = 10
self.div_2.pack(side=TOP)
self.exit = Button(self.div_2)
self.exit['text'] = "Sair"
self.exit['command'] = self.inst.destroy
self.loc = Label(self.div_1, text="")
self.loc['width'] = 350
self.loc['height'] = 100
self.loc.pack()
def situation(self, text):
self.loc['text'] = text
self.loc.update_idletasks()
self.update()
def ext(self):
self.inst.destroy()
def buttonExit(self):
self.exit.pack()
self.exit.update_idletasks()
def update(self):
self.inst.update()