-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircTubes0022.py
64 lines (49 loc) · 1.62 KB
/
circTubes0022.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
#!/usr/local/bin/python
from Tkinter import *
import math
#import Pmw
master = Tk()
c = Label(master, text = "Select correlation")
c.grid(row = 0, column = 3)
w = Spinbox(values = ("Petukhov","Gnielinski","Dittus - Boelter","Sieder and Tate"))
w.grid(row = 1, column = 3)
def callback():
if w.get() == "Dittus - Boelter":
import DittusBoetler02
DittusBoetler02
elif w.get() == "Sieder and Tate":
import SiederTate02
SiederTate02
elif w.get() == "Petukhov":
import Petukhov02
Petukhov02
elif w.get() == "Gnielinski":
import Gnielinski02
Gnielinski02
def about():
def quit2():
root.destroy()
if __name__ == '__main__':
root = Tk()
#print units.get()
lab1 = Label(root, text = 'circTubes v 0.2')
lab1.pack(side = TOP)
lab2 = Label(root, text = 'By W. Lamont')
lab2.pack(side = TOP)
lab3 = Label(root, text = 'Oct, 2012')
lab3.pack(side = TOP)
#print ents
b3 = Button(root, text='Quit', command=quit2)
b3.pack(side=LEFT, padx=5, pady=5)
root.mainloop()
def quit():
global master
master.destroy()
b = Button(master, text="Ok", width=10, command=callback)
b.grid(row = 2, column = 3)
b4 = Button(master, text='About', width=10, command=about)
b4.grid(row = 3, column =3)
b5 = Button(master, text='Quit', width=10, command=quit)
b5.grid(row = 4, column =3)
#Button(master, text='Quit', command=master.quit).grid(row=5, column=2, sticky=W, pady=4)
mainloop()