-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinterfaceFinal.py
70 lines (48 loc) · 1.44 KB
/
interfaceFinal.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from tkinter import *
janela = Tk()
def bt_click():
x = [int(ed1.get()),int(ed2.get()),(ed3.get())]
if x[2] == "Sim":
x[2] = 1
else:
x[2] = 0
if x[1] <= 0.5:
if x[2] <= 0.5:
if x[0] <=0.5:
resp = 99,2
else:
resp = 50
else:
resp = 97
else:
resp = 98
resposta["font"] = ("Verdana", "14", "bold")
resposta["text"] = 'Esta consulta tem '+ str(resp) + '%' + ' de chances de ser paga!'
janela.geometry("600x400+200+100")
lb = Label(janela, text="Entre com as informações da consulta")
lb.place(x=40, y=50)
lb1 = Label(janela, text="Serviço:")
lb1.place(x=40, y=115)
ed1 = Entry(janela)
ed1.place(x=200, y=115)
lb2 = Label(janela, text="Quantidade do Item:")
lb2.place(x=40, y=145)
ed2 = Entry(janela)
ed2.place(x=200, y=145)
lb3 = Label(janela, text="Tipo da guia é internação?")
lb3.place(x=40, y=175)
ed3 = Entry(janela)
ed3.place(x=200, y=175)
lb4 = Label(janela, text="É um medicamento?")
lb4.place(x=40, y=205)
ed4 = Entry(janela)
ed4.place(x=200, y=205)
lb5 = Label(janela, text="É urgente?")
lb5.place(x=40, y=235)
ed5 = Entry(janela)
ed5.place(x=200, y=235)
ok = Button(janela, width = 20, text="Submeter", command=bt_click)
ok.place(x=140, y=260)
resposta = Label(janela)
resposta.place(x=40, y=310)
janela.mainloop()