3 global ColorScreenStatus, FrameBG, SWRev, RevDate, ColorWindow
4 global COLORtext, COLORcanvas, COLORtrigger, COLORsignalband, COLORframes, COLORgrid
5 global COLORtrace1, COLORtraceR1, COLORtrace2, COLORtraceR2, COLORtrace3, COLORtraceR3, COLORtrace4, COLORtraceR4
6 global COLORtrace5, COLORtraceR5, COLORtrace6, COLORtraceR6, COLORtrace7, COLORtraceR7
8 if ColorScreenStatus.get() == 0:
9 ColorScreenStatus.set(1)
11 ColorWindow = Toplevel()
12 ColorWindow.title(
"Color Selector " + SWRev + RevDate)
13 ColorWindow.resizable(FALSE,FALSE)
14 ColorWindow.protocol(
"WM_DELETE_WINDOW", DestroyColorScreen)
15 ColorWindow.configure(background=FrameBG)
17 Colorframe1 = LabelFrame(ColorWindow, text=
"Trace Colors", style=
"A10T5.TLabelframe")
22 trace1bt = Button(Colorframe1, text=
"COLORtrace1", command=SetColorT1 )
23 trace1bt.grid(row=0, column=0, columnspan=1, sticky=W)
25 trace2bt = Button(Colorframe1, text=
"COLORtrace2", command=SetColorT2 )
26 trace2bt.grid(row=0, column=1, columnspan=1, sticky=W)
28 trace3bt = Button(Colorframe1, text=
"COLORtrace3", command=SetColorT3 )
29 trace3bt.grid(row=0, column=2, columnspan=1, sticky=W)
31 trace4bt = Button(Colorframe1, text=
"COLORtrace4", command=SetColorT4 )
32 trace4bt.grid(row=0, column=3, columnspan=1, sticky=W)
34 trace5bt = Button(Colorframe1, text=
"COLORtrace5", command=SetColorT5 )
35 trace5bt.grid(row=1, column=0, columnspan=1, sticky=W)
37 trace6bt = Button(Colorframe1, text=
"COLORtrace6", command=SetColorT6 )
38 trace6bt.grid(row=1, column=1, columnspan=1, sticky=W)
40 trace7bt = Button(Colorframe1, text=
"COLORtrace7", command=SetColorT7 )
41 trace7bt.grid(row=1, column=2, columnspan=1, sticky=W)
43 tracer1bt = Button(Colorframe1, text=
"COLORtraceR1", command=SetColorTR1 )
44 tracer1bt.grid(row=2, column=0, columnspan=1, sticky=W)
46 tracer2rbt = Button(Colorframe1, text=
"COLORtraceR2", command=SetColorTR2 )
47 tracer2rbt.grid(row=2, column=1, columnspan=1, sticky=W)
49 tracer3bt = Button(Colorframe1, text=
"COLORtraceR3", command=SetColorTR3 )
50 tracer3bt.grid(row=2, column=2, columnspan=1, sticky=W)
52 tracer4bt = Button(Colorframe1, text=
"COLORtraceR4", command=SetColorTR4 )
53 tracer4bt.grid(row=2, column=3, columnspan=1, sticky=W)
55 tracer5bt = Button(Colorframe1, text=
"COLORtraceR5", command=SetColorTR5 )
56 tracer5bt.grid(row=3, column=0, columnspan=1, sticky=W)
58 tracer6bt = Button(Colorframe1, text=
"COLORtraceR6", command=SetColorTR6 )
59 tracer6bt.grid(row=3, column=1, columnspan=1, sticky=W)
61 tracer7bt = Button(Colorframe1, text=
"COLORtraceR7", command=SetColorTR7 )
62 tracer7bt.grid(row=3, column=2, columnspan=1, sticky=W)
64 gridbt = Button(Colorframe1, text=
"COLORgrid", command=SetColorGrid )
65 gridbt.grid(row=4, column=0, columnspan=1, sticky=W)
66 zerolinebt = Button(Colorframe1, text=
"COLORzeroline", command=SetColorZLine )
67 zerolinebt.grid(row=4, column=1, columnspan=1, sticky=W)
68 ctriggerbt = Button(Colorframe1, text=
"COLORtrigger", command=SetColorTrig )
69 ctriggerbt.grid(row=4, column=2, columnspan=1, sticky=W)
71 ctextbt = Button(Colorframe1, text=
"COLORtext", command=SetColorText )
72 ctextbt.grid(row=4, column=3, columnspan=1, sticky=W)
77 global ColorScreenStatus, ColorWindow
79 if ColorScreenStatus.get() == 1:
80 ColorScreenStatus.set(0)
87 tempwindow.state(
"withdrawn")
88 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace1")
90 COLORtrace1 = str(hexcolor)
97 tempwindow.state(
"withdrawn")
98 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace2")
100 COLORtrace2 = str(hexcolor)
107 tempwindow.state(
"withdrawn")
108 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace3")
110 COLORtrace3 = str(hexcolor)
117 tempwindow.state(
"withdrawn")
118 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace4")
120 COLORtrace4 = str(hexcolor)
127 tempwindow.state(
"withdrawn")
128 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace5")
130 COLORtrace5 = str(hexcolor)
137 tempwindow.state(
"withdrawn")
138 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace6")
140 COLORtrace6 = str(hexcolor)
147 tempwindow.state(
"withdrawn")
148 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrace7")
150 COLORtrace7 = str(hexcolor)
157 tempwindow.state(
"withdrawn")
158 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR1")
160 COLORtraceR1 = str(hexcolor)
167 tempwindow.state(
"withdrawn")
168 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR2")
170 COLORtraceR2 = str(hexcolor)
177 tempwindow.state(
"withdrawn")
178 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR3")
180 COLORtraceR3 = str(hexcolor)
187 tempwindow.state(
"withdrawn")
188 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR4")
190 COLORtraceR4 = str(hexcolor)
197 tempwindow.state(
"withdrawn")
198 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR5")
200 COLORtraceR5 = str(hexcolor)
207 tempwindow.state(
"withdrawn")
208 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR6")
210 COLORtraceR6 = str(hexcolor)
217 tempwindow.state(
"withdrawn")
218 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtraceR7")
220 COLORtraceR7 = str(hexcolor)
227 tempwindow.state(
"withdrawn")
228 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORgrid")
230 COLORgrid = str(hexcolor)
237 tempwindow.state(
"withdrawn")
238 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtext")
240 COLORtext = str(hexcolor)
247 tempwindow.state(
"withdrawn")
248 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORtrigger")
250 COLORtrigger = str(hexcolor)
257 tempwindow.state(
"withdrawn")
258 rgb,hexcolor =
askcolor(parent=tempwindow, title=
"Choose color for COLORzeroline")
260 COLORzeroline = str(hexcolor)