-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorConverter_GUI_support.py
186 lines (169 loc) · 3.85 KB
/
ColorConverter_GUI_support.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#! /usr/bin/env python
#
# Support module generated by PAGE version 4.9
# In conjunction with Tcl version 8.6
# Mar 03, 2018 05:47:55 PM
import sys
try:
from Tkinter import *
except ImportError:
from tkinter import *
try:
import ttk
py3 = 0
except ImportError:
import tkinter.ttk as ttk
py3 = 1
def set_Tk_var():
global RGBW_R
RGBW_R = StringVar()
global RGB_R
RGB_R = DoubleVar()
global RGBW_G
RGBW_G = StringVar()
global RGB_G
RGB_G = DoubleVar()
global RGBW_B
RGBW_B = StringVar()
global RGB_B
RGB_B = DoubleVar()
global RGBW_W
RGBW_W = DoubleVar()
global RGBDim_Dim
RGBDim_Dim = DoubleVar()
global RGB_useDim
RGB_useDim = StringVar()
global XYZ_X
XYZ_X = StringVar()
global XYZ_Y
XYZ_Y = StringVar()
global XYZ_Z
XYZ_Z = StringVar()
global Yxy_Y
Yxy_Y = StringVar()
global Yxy_x
Yxy_x = StringVar()
global Yxy_y
Yxy_y = StringVar()
global HSV_H
HSV_H = StringVar()
global HSV_S
HSV_S = StringVar()
global HSV_V
HSV_V = StringVar()
global HSL_H
HSL_H = StringVar()
global HSL_S
HSL_S = StringVar()
global HSL_L
HSL_L = StringVar()
global CLuv_L
CLuv_L = StringVar()
global CLuv_u
CLuv_u = StringVar()
global CLuv_v
CLuv_v = StringVar()
global CLCHab_L
CLCHab_L = StringVar()
global CLCHab_C
CLCHab_C = StringVar()
global CLCHab_H
CLCHab_H = StringVar()
global HLab_L
HLab_L = StringVar()
global HLab_a
HLab_a = StringVar()
global HLab_b
HLab_b = StringVar()
global CLab_L
CLab_L = StringVar()
global CLab_a
CLab_a = StringVar()
global CLab_b
CLab_b = StringVar()
global CMY_C
CMY_C = StringVar()
global CMY_M
CMY_M = StringVar()
global CMY_Y
CMY_Y = StringVar()
global CMYK_C
CMYK_C = StringVar()
global CMYK_M
CMYK_M = StringVar()
global CMYK_Y
CMYK_Y = StringVar()
global CMYK_K
CMYK_K = StringVar()
global colHTML
colHTML = StringVar()
global colCSS
colCSS = StringVar()
global colWebSafe
colWebSafe = StringVar()
global selectedButton
selectedButton = StringVar()
global RGB_useW
RGB_useW = StringVar()
global XYZ_scaled
XYZ_scaled = StringVar()
global RGBDim_adapt
RGBDim_adapt = StringVar()
global YUV_Y
YUV_Y = StringVar()
global YUV_U
YUV_U = StringVar()
global YUV_V
YUV_V = StringVar()
global YCbCr_Y
YCbCr_Y = StringVar()
global YCbCr_Cb
YCbCr_Cb = StringVar()
global YCbCr_Cr
YCbCr_Cr = StringVar()
global Yuv_Y
Yuv_Y = StringVar()
global Yuv_u
Yuv_u = StringVar()
global Yuv_v
Yuv_v = StringVar()
global CLCHuv_L
CLCHuv_L = StringVar()
global CLCHuv_C
CLCHuv_C = StringVar()
global CLCHuv_H
CLCHuv_H = StringVar()
def TODO():
print('ColorConverter_GUI_support.TODO')
sys.stdout.flush()
def callback_blue(p1):
print('ColorConverter_GUI_support.callback_blue')
sys.stdout.flush()
def callback_dim(p1):
print('ColorConverter_GUI_support.callback_dim')
sys.stdout.flush()
def callback_green(p1):
print('ColorConverter_GUI_support.callback_green')
sys.stdout.flush()
def callback_red(p1):
print('ColorConverter_GUI_support.callback_red')
sys.stdout.flush()
def callback_white(p1):
print('ColorConverter_GUI_support.callback_white')
sys.stdout.flush()
def exit(p1):
print('ColorConverter_GUI_support.exit')
sys.stdout.flush()
def init(top, gui, *args, **kwargs):
global w, top_level, root
w = gui
top_level = top
root = top
def destroy_window():
# Function which closes the window.
global top_level
top_level.destroy()
top_level = None
if __name__ == '__main__':
import ColorConverter_GUI
ColorConverter_GUI.vp_start_gui()