-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindowStartPagePRBS.py
58 lines (52 loc) · 2.4 KB
/
WindowStartPagePRBS.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
import tkinter as tk
class PageStartPRBS():
def __init__(self, params):
WIDGET_PX = params['gui']['widget_px']
WIDGET_PY = params['gui']['widget_py']
LABEL_PX = params['gui']['label_px']
LABEL_PY = params['gui']['label_py']
WIDGET_W = params['gui']['widget_w']
WIDGET_H = params['gui']['widget_h']
Dialog2 = tk.Toplevel()
Dialog2.title("PRBS")
r = 0
frame1 = tk.Frame(Dialog2)
frame1.grid(row=r, column=0, sticky=tk.EW)
frame1.columnconfigure(0, weight=1)
frame1.columnconfigure(1, weight=1)
label1 = tk.Label(frame1, text="PRBS:", )
label1.grid(row=0, column=0, padx=WIDGET_PX, pady=WIDGET_PY)
r += 1
label1 = tk.Label(frame1, text="Length:", )
label1.grid(row=r, column=0, padx=WIDGET_PX, pady=WIDGET_PY)
text1 = tk.StringVar()
text1.set("Value")
entry1 = tk.Label(frame1, textvariable=text1)
entry1.grid(row=r, column=1, padx=WIDGET_PX, pady=WIDGET_PY)
r += 1
label1 = tk.Label(frame1, text="Magnitude", )
label1.grid(row=r, column=0, padx=WIDGET_PX, pady=WIDGET_PY)
text2 = tk.StringVar()
text2.set("Value")
entry2 = tk.Label(frame1, textvariable=text2)
entry2.grid(row=r, column=1, padx=WIDGET_PX, pady=WIDGET_PY)
r += 1
label1 = tk.Label(frame1, text="Register length:", )
label1.grid(row=r, column=0, padx=WIDGET_PX, pady=WIDGET_PY)
text2 = tk.StringVar()
text2.set("Value")
entry2 = tk.Label(frame1, textvariable=text2)
entry2.grid(row=r, column=1, padx=WIDGET_PX, pady=WIDGET_PY)
r += 1
label1 = tk.Label(frame1, text="Frequency Divider:", )
label1.grid(row=r, column=0, padx=WIDGET_PX, pady=WIDGET_PY)
text2 = tk.StringVar()
text2.set("Value")
entry2 = tk.Label(frame1, textvariable=text2)
entry2.grid(row=r, column=1, padx=WIDGET_PX, pady=WIDGET_PY)
r += 1
btnStart = tk.Button(frame1, text="OK", width=WIDGET_W)
btnStart.grid(row=r, column=0, padx=WIDGET_PX, pady=WIDGET_PY, sticky=tk.EW, columnspan=2)
r += 1
btnStart = tk.Button(frame1, text="Cancel", width=WIDGET_W)
btnStart.grid(row=r, column=0, padx=WIDGET_PX, pady=WIDGET_PY, sticky=tk.EW, columnspan=2)