-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpiv-gui.py
33 lines (26 loc) · 1009 Bytes
/
piv-gui.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
# -*- coding: utf-8 -*-
from tkinter import *
root = Tk() #creates the window
#Creates the title of the window
wintitle = Label(root, text='Particle Image Velocimetry').pack()
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame,
text="QUIT", fg="red",
command=frame.quit)
self.button.pack(side=LEFT)
self.slogan = Button(frame,
text="Hello",
command=self.write_slogan)
self.slogan.pack(side=LEFT)
def write_slogan(self):
print ("Tkinter is easy to use!")
#app = App(root)
#Creates sliders to scale the search and interrogation windows
search_scale = Scale(root, from_=10, to=50, label='Search Window Size',
orient=HORIZONTAL, resolution=10).pack()
interr_scale = Scale(root, from_=10, to=50, label='Interrogation Window Size',
orient=HORIZONTAL, resolution=10).pack()
mainloop()