forked from JYLinOK/PyDraw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZJM.py
7282 lines (5734 loc) · 295 KB
/
ZJM.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
from tkinter import *
from tkinter import ttk
from tkinter.scrolledtext import ScrolledText
from tkinter.messagebox import *
import tkinter.colorchooser
import tkinter.filedialog
import tkinter as tk
import HS
canva_W = 0
canva_H = 0
flag_CK_GuDing = FALSE
canva_X = 60
canva_Y = 50
WangGe_KuanDu = 20
WangGe_ShuMu_X = 0
WangGe_ShuMu_Y = 0
scal_X_Zhi = 0
scal_Y_Zhi = 0
# 全局滚轮屏幕坐标
Event_GunLun_x = 0
Event_GunLun_y = 0
# 全局 Canvas 坐标
Event_Canvas_x = 0
Event_Canvas_y = 0
# 滚轮参数
flag_GunLun_Gun = FALSE
flag_GunLun_Shang = FALSE
GL_Yuan_canva_X = 60
GL_Yuan_canva_Y = 50
# 记录字典
Button1 = {}
Canvas1 = {}
Checkbutton1 = {}
Combobox1 = {}
Entry1 = {}
Frame1 = {}
Label1 = {}
LabelFrame1 = {}
Listbox1 = {}
Message1 = {}
PanedWindow1 = {}
Radiobutton1 = {}
Scale1_X = {}
Scale1_Y = {}
Scrollbar1_X = {}
Scrollbar1_Y = {}
Spinbox1 = {}
Text1 = {}
Toplevel1 = {}
tkMessageBox1 = {}
Menu1 = {}
Menu1_ListCode = {}
Menu1_Delete_Num = []
Menu1_Son_Len = {}
zi_menu1_num_i = 0
# 画控件标志
KJBZ = ''
# 画控件数目标志
button1_i = 0
canvas1_i = 0
checkbutton1_i = 0
combobox1_i = 0
entry1_i = 0
frame1_i = 0
label1_i = 0
labelFrame1_i = 0
listbox1_i = 0
menu1_i = 0
message1_i = 0
panedWindow1_i = 0
radiobutton1_i = 0
scale1_x_i = 0
scale1_y_i = 0
scrollbar1_x_i = 0
scrollbar1_y_i = 0
spinbox1_i = 0
text1_i = 0
toplevel1_i = 0
tkMessageBox1_i = 0
# 记录各个部件类型删除的成员的 列表
Button1_List_Num = []
Canvas1_List_Num = []
Checkbutton1_List_Num = []
Combobox1_List_Num = []
Entry1_List_Num = []
Frame1_List_Num = []
Label1_List_Num = []
LabelFrame1_List_Num = []
Listbox1_List_Num = []
Message1_List_Num = []
PanedWindow1_List_Num = []
Radiobutton1_List_Num = []
Scale1_List_Num_X = []
Scale1_List_Num_Y = []
Spinbox1_List_Num = []
Text1_List_Num = []
# 事件字典
SJ_button_press_1 = {}
SJ_button_release_1 = {}
SJ_button_press_right_1 = {}
SJ_button_press_left_2 = {}
SJ_button_press_right_2 = {}
SJ_button_press_middle_1 = {}
SJ_button_press_middle_2 = {}
SJ_button_press_left_move = {}
SJ_cursor_enter = {}
SJ_cursor_leave = {}
SJ_get_key_focus = {}
SJ_lose_key_focus = {}
SJ_press_a_key = {}
SJ_press_enter_key = {}
SJ_when_control_change = {}
SJ_press_space_key = {}
SJ_shift_mouseWheel = {}
SJ_press_combinatorial_key = {}
# 当前控件名
DangQian_KJ_name = ''
# Menu 参数
flag_Menu_Kai = FALSE
D_ZhuMenu = {}
zi_menu1_sum = 0
DQ_ZhuMenu_ZiXiang_Num_i = 0
DQ_Zong_Len = 0
AnXia_Menu_Btn_Num = 0
# Hua_Radiobutton 参数
Radiobutton_i = 0 # 每一组当前的 Radiobutton 编号
flag_RadBtn_Zu = FALSE
# 编译 Text 参数
flag_BianYi_Text = FALSE
flag_Canva_Hide = FALSE
# Canvas 项目处理参数
# 选择参数
background_XiangMu_XuanDing = 'red'
foreground_XiangMu_XuanDing = 'white'
XuanZhong = {}
XuanZhong_sum = 0
# 属性框参数
flag_ShuXing_Tan = FALSE
# 部件编辑参数
flag_ZuJian_Move = TRUE
# 右键编辑选择
each_YouJian = ''
flag_TanChuan_BianJian = FALSE
# 完成时选框
XuanKuang_X0 = 0
XuanKuang_Y0 = 0
XuanKuang_X1 = 0
XuanKuang_Y1 = 0
# 窗口位置
win_X = 0
win_Y = 0
# 属性面板全局参数
lab_ControlType = ''
ent_ControlName = ''
ent_X0 = 0
ent_Y0 = 0
ent_width = 0
ent_height = 0
ent_length = 0
ent_fontSize = 0
combt_fontType = ''
combt_foreground = ''
combt_background = ''
combt_anchor = ''
combt_justify = ''
ent_text = ''
combt_state = ''
combt_relief = ''
combt_highlightcolor = ''
combt_highlightbackground = ''
combt_bitmap = ''
ent_image = ''
combt_padx = 0
combt_pady = 0
combt_takefocus = ''
combt_cursor = ''
ent_container = ''
ent_command = ''
# 窗口设置窗口变量
ck_name = ''
ck_init_x = ''
ck_init_y = ''
ck_is_width_not_change = 1
ck_is_height_not_change = 1
ck_is_minsize = 1
ck_init_minsize_w = 0
ck_init_minsize_h = 0
ck_is_maxsize = 1
ck_init_maxsize_w = 0
ck_init_maxsize_h = 0
ck_is_toolwindow = 0
ck_is_topmost = 1
ck_is_zoomed = 1
ck_set_icon = ''
ck_set_grid = 0
ck_is_transparency = 1
ck_scal_transparency = 1
ck_is_son_win = 1
Str_BianYi = ''
Str_BianYi_End = ''
Str_Menu = ''
# 定义空格tap
tap = " "
# 窗口重要参数
bar_W = 30
bar_menu_W = 30
Distance = 0
# class of Main interface
class PyDraw(Tk):
# Main interface Define
def __init__(self):
super().__init__()
# Main interface parameter setting
w = 1000
h = 700
self.minsize(w, h) # 最小化固定
S_width = self.winfo_screenwidth()
S_height = self.winfo_screenheight()
size = '%dx%d+%d+%d' % (w, h, (S_width - w) / 2, (S_height - h) / 2 - 30)
self.geometry(size)
self.state('zoomed')
self.title('PyDraw')
self.BiaoTi_Text = 'PyDraw'
self.BiaoTi_Text_YanSe = 'black'
self.ChuangKou_JiXia_YanSe = 'black'
self.ChuangKou_BianTiLan_YanSe = 'white'
self.ChuangKou_BeiJing_YanSe = 'white'
# Scale setting
self.Sca_JiZhi_X = 1000
self.Sca_JiZhi_Y = 1000
# parameter setting
self.ChuangKou_BianYan_YanSe = 'black'
self.ChuangKou_BiaoTiLan_YanSe = 'green'
# Control component initial parameter setting
# Button parameter
self.Button_H = 50
self.Button_W = 100
self.Button_NO = 0
self.Button_YanSe = 'gray'
self.Button_Text_YanSe = 'white'
# Boolean value setting
global flag_CK_GuDing
flag_CK_GuDing = FALSE
self.flag_WangGe = FALSE
self.flag_SongKai = FALSE
self.flag_BuJian_YinCang = FALSE
# Original canvas parameter
self.Yuan_canva_H = 600 # height 对应 Y
self.Yuan_canva_W = 800 # width 对应 X
# Canvas parameter
global canva_H
global canva_W
canva_H = self.Yuan_canva_H
canva_W = self.Yuan_canva_W
self.x1 = 0
self.y1 = 0
self.x2 = 0
self.y2 = 0
# Canvas position
global canva_X
global canva_Y
global GL_Yuan_canva_X
global GL_Yuan_canva_Y
global bar_W
canva_X = 60
canva_Y = 50
GL_Yuan_canva_X = 60
GL_Yuan_canva_Y = 50
# Frame parameter
self.fram_H = canva_H # height 对应 Y
self.fram_W = canva_W # width 对应 X
# Menu bar width
self.bar_W = bar_W
# Grid width parameter
global WangGe_KuanDu
WangGe_KuanDu = 20
self.WangGe_YanSe = 'gray'
# 编译 Text 参数初始化
global flag_BianYi_Text
global flag_Canva_Hide
global XuanZhong_sum
XuanZhong_sum = 0
flag_Canva_Hide = FALSE
flag_BianYi_Text = FALSE
# 属性框参数
global flag_ShuXing_Tan
flag_ShuXing_Tan = FALSE
self.V_Scal_Y1 = StringVar()
self.V_Scal_Y2 = StringVar()
# 设置画布的放大调节及参数定义设置
self.vy = StringVar()
self.vx = StringVar()
self.vx_Text_font = StringVar()
self.ent_y = StringVar()
self.ent_x = StringVar()
self.GuDing_Text = StringVar()
self.GuDing_Text.set('Lock')
self.Btn_WG_Text = StringVar()
self.Btn_WG_Text.set('Grid')
self.Btn_YinCang_Text = StringVar()
self.Btn_YinCang_Text.set('Hide')
self.Btn_ShuXing_Text = StringVar()
self.Btn_ShuXing_Text.set('<=')
self.Tv_BianYi_Text = StringVar()
self.Tv_BianYi_Text.set('Text')
self.Tv_Canva_Hide = StringVar()
self.Tv_Canva_Hide.set('Paint')
# 网格参数设定
global WangGe_ShuMu_X
global WangGe_ShuMu_Y
WangGe_ShuMu_X = (canva_H - self.bar_W) / WangGe_KuanDu
WangGe_ShuMu_Y = canva_W / WangGe_KuanDu
# 全局屏幕坐标
global Event_GunLun_x
global Event_GunLun_y
Event_GunLun_x = 0
Event_GunLun_y = 0
# Switch to the main interface UI setting
self.Set_UI()
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
def Set_UI(self):
global canva_X
global canva_Y
global canva_W
global canva_H
# Set Canvas
self.canva = Canvas(bg='white', width=canva_W, height=canva_H) # scrollregion=(0, 0, 1000, 1000)) # 创建canva
self.canva.place(x=canva_X, y=canva_Y) # 放置canva的位置
# 画 Menu
self.it_Menu = self.canva.create_rectangle(0, 0, 0, 0)
# 画外边框
self.it1 = self.canva.create_rectangle(2, canva_H - 1, canva_W - 1, 2,
fil=self.ChuangKou_BeiJing_YanSe)
# 画标题栏
self.it2 = self.canva.create_rectangle(2, self.bar_W, canva_W - 1, self.bar_W,
fil=self.ChuangKou_BiaoTiLan_YanSe)
# 画标题
self.it_BiaoTi = self.canva.create_text(43, 16, text=self.BiaoTi_Text,
font=('Consol', 11),
fill=self.BiaoTi_Text_YanSe)
# 画标题栏按钮
self.it_BiaoTi_AnNiu_ZuiXiao = self.canva.create_text(canva_W - 116, 16, text='—',
font=('Consol', 11),
fill=self.BiaoTi_Text_YanSe)
self.it_BiaoTi_AnNiu_ZuiDa = self.canva.create_text(canva_W - 70, 16, text='□',
font=('Consol', 11),
fill=self.BiaoTi_Text_YanSe)
self.it_BiaoTi_AnNiu_GuanBi = self.canva.create_text(canva_W - 28, 16, text='X',
font=('Helvetica', 11),
fill=self.BiaoTi_Text_YanSe)
self.Menubar = Menu(self)
# 定义下拉菜单栏
FileMenu = Menu(self.Menubar, tearoff=0)
FileMenu.add_command(label='Compile', command=self.BianYi)
FileMenu.add_command(label='Generate', command=self.BianYi)
FileMenu.add_command(label='Copy', command=self.BianYi)
FileMenu.add_separator()
FileMenu.add_command(label='Quit', command=self.quit)
self.Menubar.add_cascade(label='File', menu=FileMenu)
# 定义控件菜单栏
KongJianMenu = Menu(self.Menubar, tearoff=0)
KongJianMenu.add_command(label='Button', command=self.Hua_Button)
KongJianMenu.add_command(label='Canvas', command=self.Hua_Canvas)
KongJianMenu.add_command(label='Checkbutton', command=self.Hua_Checkbutton)
KongJianMenu.add_command(label='Combobox', command=self.Hua_Combobox)
KongJianMenu.add_command(label='Entry', command=self.Hua_Entry)
KongJianMenu.add_command(label='Frame', command=self.Hua_Frame)
KongJianMenu.add_command(label='Label', command=self.Hua_Label)
KongJianMenu.add_command(label='LabelFrame', command=self.Hua_LabelFrame)
KongJianMenu.add_command(label='Listbox', command=self.Hua_Listbox)
KongJianMenu.add_command(label='Menu', command=self.Hua_Menu)
KongJianMenu.add_command(label='Message', command=self.Hua_Message)
KongJianMenu.add_command(label='PanedWindow', command=self.Hua_PanedWindow)
KongJianMenu.add_command(label='Radiobutton', command=self.Hua_Radiobutton)
KongJianMenu.add_command(label='Scale_X', command=self.Hua_Scale_X)
KongJianMenu.add_command(label='Scale_Y', command=self.Hua_Scale_Y)
KongJianMenu.add_command(label='Spinbox', command=self.Hua_Spinbox)
KongJianMenu.add_command(label='Text', command=self.Hua_Text)
self.Menubar.add_cascade(label='Control', menu=KongJianMenu)
# 定义自画控件菜单栏
SheZhiMenu = Menu(self.Menubar, tearoff=0)
SheZhiMenu.add_command(label='System Setup', command=HS.hello)
self.Menubar.add_cascade(label='Setup', menu=SheZhiMenu)
# 定义窗口菜单栏
ChuangKouMenu = Menu(self.Menubar, tearoff=0)
ChuangKouMenu.add_command(label='New son_win', command=HS.hello)
ChuangKouMenu.add_command(label='Current win set', command=HS.hello)
ChuangKouMenu.add_command(label='Win control information', command=HS.hello)
self.Menubar.add_cascade(label='Win', menu=ChuangKouMenu)
# 定义对话框菜单栏
DuiHuaKuangMenu = Menu(self.Menubar, tearoff=0)
DuiHuaKuangMenu.add_command(label='New news dialog', command=HS.hello)
DuiHuaKuangMenu.add_command(label='New flie dialog', command=HS.hello)
DuiHuaKuangMenu.add_command(label='New colour dialog', command=HS.hello)
self.Menubar.add_cascade(label='Dialog', menu=DuiHuaKuangMenu)
# 定义帮助菜单栏
BangZhuMenu = Menu(self.Menubar, tearoff=0)
BangZhuMenu.add_command(label='About', command=HS.hello)
self.Menubar.add_cascade(label='Help', menu=BangZhuMenu)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# 定义右键菜单
# 新建控件右键菜单
self.New_kj_menu = Menu(self.Menubar, tearoff=0)
self.New_kj_menu.add_command(label='Button', command=self.Hua_Button)
self.New_kj_menu.add_command(label='Canvas', command=self.Hua_Canvas)
self.New_kj_menu.add_command(label='Checkbutton', command=self.Hua_Checkbutton)
self.New_kj_menu.add_command(label='Combobox', command=self.Hua_Combobox)
self.New_kj_menu.add_command(label='Entry', command=self.Hua_Entry)
self.New_kj_menu.add_command(label='Frame', command=self.Hua_Frame)
self.New_kj_menu.add_command(label='Label', command=self.Hua_Label)
self.New_kj_menu.add_command(label='LabelFrame', command=self.Hua_LabelFrame)
self.New_kj_menu.add_command(label='Listbox', command=self.Hua_Listbox)
self.New_kj_menu.add_command(label='Menu', command=self.Hua_Menu)
self.New_kj_menu.add_command(label='Message', command=self.Hua_Message)
self.New_kj_menu.add_command(label='PanedWindow', command=self.Hua_PanedWindow)
self.New_kj_menu.add_command(label='Radiobutton', command=self.Hua_Radiobutton)
self.New_kj_menu.add_command(label='Scale_X', command=self.Hua_Scale_X)
self.New_kj_menu.add_command(label='Scale_Y', command=self.Hua_Scale_Y)
self.New_kj_menu.add_command(label='Spinbox', command=self.Hua_Spinbox)
self.New_kj_menu.add_command(label='Text', command=self.Hua_Text)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# 编辑控件右键菜单
self.BianJi_kj_menu = Menu(self.Menubar, tearoff=0)
self.BianJi_kj_menu.add_command(label='OK', command=self.BianJi_OK)
self.BianJi_kj_menu.add_command(label='Move', command=self.BianJi_Move)
self.BianJi_kj_menu.add_command(label='Design', command=self.BianJi_Design)
self.BianJi_kj_menu.add_command(label='Delete', command=self.BianJi_Delete)
self.BianJi_kj_menu.add_command(label='Cancel', command=self.BianJi_Cancel)
# 展示主菜单
self.config(menu=self.Menubar)
# X:横向 Y:纵向 设置部件
self.Lab1 = Label(text='Y:', font=('Consol', '26', 'bold'), foreground='DarkBlue')
self.Lab1.place(x=0, y=0)
self.Lab2 = Label(text='X:', font=('Consol', '26', 'bold'), foreground='DarkBlue')
self.Lab2.place(x=60, y=0)
self.Lab_CK_X_len = Label(text='X length', font=('Consol', '12'), foreground='DarkBlue')
self.Lab_CK_X_len.place(x=623, y=0)
self.Lab_CK_Y_len = Label(text='Y length', font=('Consol', '12'), foreground='DarkBlue')
self.Lab_CK_Y_len.place(x=623, y=26)
self.Lab_font_size = Label(text='font size', font=('Consol', '12'), foreground='DarkBlue')
self.Lab_font_size.place(x=1250, y=760)
self.Lab_font_size.lower()
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
self.Btn_CK_ZhuanDao = Button(text='To win', font=('Consol', 9), foreground='DarkBlue', width=8, height=1,
command=self.ChuangKouZhuan)
self.Btn_CK_ZhuanDao.place(x=762, y=0) # 要想以后修改Btn_CK_ZhuanDao,必须先定义后摆放!
self.Btn_CK_FuWei = Button(text='Reset win', font=('Consol', 9), foreground='DarkBlue', width=8, height=1,
command=self.FuWeiKouZhuan)
self.Btn_CK_FuWei.place(x=762, y=26)
self.Btn_CK_Set = Button(text='Win_Set', font=('Consol', 9), foreground='DarkBlue', width=8, height=1,
command=self.Set_KouZhuan)
self.Btn_CK_Set.place(x=826, y=26)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Hide or Show 键
self.Btn_YinCang = Button(textvariable=self.Btn_YinCang_Text, font=('Consol', 10), foreground='DarkBlue', width=6, height=1,
command=self.YinCang)
self.Btn_YinCang.place(x=1482, y=0)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Update 键
self.Btn_Update = Button(text='Update', font=('Consol', 10), foreground='DarkBlue',
width=6, height=1,
command=self.UI_Ban_Btn_OK)
self.Btn_Update.place(x=2000, y=26)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# 属性键
self.Btn_ShuXing = Button(textvariable=self.Btn_ShuXing_Text, font=('Consol', 10), foreground='DarkBlue',
width=6, height=1,
command=self.ShuXing_Zhan)
self.Btn_ShuXing.place(x=1482, y=26)
self.Btn_BianYi = Button(text='Compi', font=('Consol', 10), foreground='black', width=5, height=2,
command=self.BianYi)
self.Btn_BianYi.place(x=6, y=600)
self.Btn_BianYi.lower()
self.Btn_BianYi_FuZhi = Button(text='Copy', font=('Consol', 10), foreground='black', width=5, height=2,
command=self.BianYi_Color_Green)
self.Btn_BianYi_FuZhi.place(x=6, y=650)
self.Btn_BianYi_FuZhi.lower()
self.Btn_BianYi_ShengCheng = Button(text='Gener', font=('Consol', 10), foreground='black', width=5, height=2,
command=self.BianYi_Color_Green)
self.Btn_BianYi_ShengCheng.place(x=6, y=700)
self.Btn_BianYi_ShengCheng.lower()
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# 下排按钮
self.Btn_BianYi_Text = Button(textvariable=self.Tv_BianYi_Text, font=('华文行楷', 12), foreground='red', width=5, height=1,
command=self.BianYi_Text)
self.Btn_BianYi_Text.place(x=60, y=746)
self.Btn_BianYi_Text.lower()
self.Btn_Canva_Hide = Button(textvariable=self.Tv_Canva_Hide, font=('华文行楷', 12), foreground='DarkBlue', width=5,
height=1,
command=self.Canva_Hide)
self.Btn_Canva_Hide.place(x=120, y=746)
self.Btn_Canva_Hide.lower()
self.Btn_BianYi_Color_White = Button(text='Color', font=('华文行楷', 12), foreground='black', background='white', width=5, height=1,
command=self.BianYi_Color_White)
self.Btn_BianYi_Color_White.place(x=180, y=746)
self.Btn_BianYi_Color_White.lower()
self.Btn_BianYi_Color_Black = Button(text='Color', font=('华文行楷', 12), foreground='white', background='black', width=5, height=1,
command=self.BianYi_Color_Black)
self.Btn_BianYi_Color_Black.place(x=240, y=746)
self.Btn_BianYi_Color_Black.lower()
self.Btn_BianYi_Color_YangPiZhi = Button(text='Color', font=('华文行楷', 12), foreground='black', background='LemonChiffon', width=5, height=1,
command=self.BianYi_Color_YangPiZhi)
self.Btn_BianYi_Color_YangPiZhi.place(x=300, y=746)
self.Btn_BianYi_Color_YangPiZhi.lower()
self.Btn_BianYi_Color_Green = Button(text='Color', font=('华文行楷', 12), foreground='white', background='green', width=5, height=1,
command=self.BianYi_Color_Green)
self.Btn_BianYi_Color_Green.place(x=360, y=746)
self.Btn_BianYi_Color_Green.lower()
self.Btn_WangGe = Button(textvariable=self.Btn_WG_Text, font=('华文行楷', 13), foreground='DarkBlue',
width=5, height=1, command=self.QiYong_WangGe)
self.Btn_WangGe.place(x=420, y=746)
self.Btn_WangGe.lower()
self.GuDing = Button(textvariable=self.GuDing_Text, font=('华文行楷', 13),foreground='DarkBlue', width=5, height=1,
command=self.GuDingChuangKou)
self.GuDing.place(x=0, y=746)
self.GuDing.lower()
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
self.Ent_X = Entry(textvariable=self.ent_x, width=5, font=('Consol', '12', 'bold'), foreground='Darkblue')
self.Ent_X.place(x=703, y=0)
self.Ent_Y = Entry(textvariable=self.ent_y, width=5, font=('Consol', '12', 'bold'), foreground='Darkblue')
self.Ent_Y.place(x=703, y=26)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
self.Sca_Y = Scale(from_=0, to=self.Sca_JiZhi_Y, orient=VERTICAL, variable=self.vy, length=500,
resolution=1, command=self.HuaBuFangDa_Y)
self.Sca_Y.place(x=0, y=40)
self.Sca_X = Scale(from_=0, to=self.Sca_JiZhi_X, orient=HORIZONTAL, variable=self.vx, length=500,
resolution=1, command=self.HuaBuFangDa_X)
self.Sca_X.place(x=100, y=0)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# 字体调节滚动条
self.Sca_Text_front = Scale(from_=8, to=50, orient=HORIZONTAL, variable=self.vx_Text_font, length=200,
resolution=1, command=self.Text_font)
self.Sca_Text_front.set(16)
self.Sca_Text_front.place(x=1328, y=739)
self.Sca_Text_front.lower()
self.ent_x.set(canva_W)
self.ent_y.set(canva_H)
self.PanedWin_X1 = PanedWindow(width=1480, height=690, sashwidth=6, sashrelief=SUNKEN)
self.PanedWin_X1.place(x=2000, y=50)
self.PanedWin_X1.lower()
self.Text_BianYi = ScrolledText(self.PanedWin_X1, width=74, height=22, font=('Consolas', '20'), insertbackground='black')
self.PanedWin_X1.add(self.Text_BianYi)
self.Text_BianYi.lower()
self.PanedWin_Y1 = PanedWindow(self.PanedWin_X1, orient=VERTICAL, sashwidth=6, sashrelief=SUNKEN)
self.PanedWin_X1.add(self.PanedWin_Y1)
self.Paned_Frame_Y1 = Frame(self.PanedWin_Y1, width=300, height=380, bg='red')
self.PanedWin_Y1.add(self.Paned_Frame_Y1)
self.Paned_Frame_Y2 = Frame(self.PanedWin_Y1, width=330, height=300, bg='green')
self.PanedWin_Y1.add(self.Paned_Frame_Y2)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
self.PanedF_Canvas_Y1 = Canvas(self.Paned_Frame_Y1, bg='white', width=300, height=1700)
self.PanedF_Canvas_Y1.place(x=48, y=0)
self.Scal_Y1 = Scale(self.Paned_Frame_Y1, from_=0, to=100, fg='white', bg='white', resolution=2, length=380,
variable=self.V_Scal_Y1, command=self.V_P_Scal_Y1)
self.Scal_Y1.pack(side=LEFT, fill=Y)
self.PanedF_Canvas_Y2 = Canvas(self.Paned_Frame_Y2, bg='white', width=300, height=1700)
self.PanedF_Canvas_Y2.place(x=48, y=0)
self.Scal_Y2 = Scale(self.Paned_Frame_Y2, from_=0, to=100, fg='white', bg='white', resolution=2, length=380,
variable=self.V_Scal_Y2, command=self.V_P_Scal_Y2)
self.Scal_Y2.pack(side=LEFT, fill=Y)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# 上属性框部件设置
self.lab_ControlType = StringVar()
self.ent_ControlName = StringVar()
self.ent_X0 = IntVar()
self.ent_Y0 = IntVar()
self.ent_width = IntVar()
self.ent_height = IntVar()
self.ent_length = IntVar()
self.ent_fontSize = IntVar()
self.combt_fontType = StringVar()
self.combt_foreground = StringVar()
self.combt_background = StringVar()
self.combt_anchor = StringVar()
self.combt_justify = StringVar()
self.ent_text = StringVar()
self.combt_state = StringVar()
self.combt_relief = StringVar()
self.combt_highlightcolor = StringVar()
self.combt_highlightbackground = StringVar()
self.combt_bitmap = StringVar()
self.ent_image = StringVar()
self.combt_padx = IntVar()
self.combt_pady = IntVar()
self.combt_takefocus = StringVar()
self.combt_cursor = StringVar()
self.ent_container = StringVar()
self.ent_command = StringVar()
global lab_ControlType
global ent_ControlName
global ent_X0
global ent_Y0
global ent_width
global ent_height
global ent_length
global ent_fontSize
global combt_fontType
global combt_foreground
global combt_background
global combt_anchor
global combt_justify
global ent_text
global combt_state
global combt_relief
global combt_highlightcolor
global combt_highlightbackground
global combt_bitmap
global ent_image
global combt_padx
global combt_pady
global combt_takefocus
global combt_cursor
global ent_container
global ent_command
# 上属性框部件设置
self.lab_ControlType.set(lab_ControlType)
self.ent_ControlName.set(ent_ControlName)
self.ent_X0.set(ent_X0)
self.ent_Y0.set(ent_Y0)
self.ent_width.set(ent_width)
self.ent_height.set(ent_height)
self.ent_length.set(ent_length)
self.ent_fontSize.set(ent_fontSize)
self.combt_fontType.set(combt_fontType)
self.combt_foreground.set(combt_foreground)
self.combt_background.set(combt_background)
self.combt_anchor.set(combt_anchor)
self.combt_justify.set(combt_justify)
self.ent_text.set(ent_text)
self.combt_state.set(combt_state)
self.combt_relief.set(combt_relief)
self.combt_highlightcolor.set(combt_highlightcolor)
self.combt_highlightbackground.set(combt_highlightbackground)
self.combt_bitmap.set(combt_bitmap)
self.ent_image.set(ent_image)
self.combt_padx.set(combt_padx)
self.combt_pady.set(combt_pady)
self.combt_takefocus.set(combt_takefocus)
self.combt_cursor.set(combt_cursor)
self.ent_container.set(ent_container)
self.ent_command.set(ent_command)
self.JG_Y=70
self.JG_X=6
self.FuDong=6
self.FuDong_Scal_Y=30
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Control Type
self.l = Label(self.PanedF_Canvas_Y1, text='control type', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 0 + self.FuDong)
self.Ent_ControlType = Label(self.PanedF_Canvas_Y1, textvariable=self.lab_ControlType, width=20, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_ControlType.place(x=self.JG_X + 120, y=self.JG_Y * 0 + self.FuDong)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Control Name
self.l = Label(self.PanedF_Canvas_Y1, text='control name', bg='white')
self.l.place(x=self.JG_X, y=40)
self.Ent_ControlName = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_ControlName, width=16, bg='LightGreen',
foreground='black')
self.Ent_ControlName.place(x=self.JG_X + 120, y=40)
self.Btn_Ok_ControlName = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_ControlName.place(x=self.JG_X + 241, y=40)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# X0
self.l = Label(self.PanedF_Canvas_Y1, text='X0', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y*1 + self.FuDong)
self.Ent_X0 = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_X0, width=16, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_X0.place(x=self.JG_X + 120, y=self.JG_Y*1 + self.FuDong)
self.Btn_Ok_X0 = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_X0.place(x=self.JG_X + 241, y=self.JG_Y*1 + self.FuDong)
self.Sca_X0 = Scale(self.PanedF_Canvas_Y1, from_=0, to=1800, orient=HORIZONTAL, variable=self.ent_X0,
length=260, width=10, resolution=1, bg='white', command=self.UI_Ban)
self.Sca_X0.place(x=self.JG_X, y=self.JG_Y*1 + self.FuDong_Scal_Y)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Y0
self.l = Label(self.PanedF_Canvas_Y1, text='Y0', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 2 + self.FuDong)
self.Ent_Y0 = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_Y0, width=16, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_Y0.place(x=self.JG_X + 120, y=self.JG_Y * 2 + self.FuDong)
self.Btn_Ok_Y0 = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_Y0.place(x=self.JG_X + 241, y=self.JG_Y * 2 + self.FuDong)
self.Sca_Y0 = Scale(self.PanedF_Canvas_Y1, from_=0, to=1600, orient=HORIZONTAL, variable=self.ent_Y0,
length=260, width=10, resolution=1, bg='white', command=self.UI_Ban)
self.Sca_Y0.place(x=self.JG_X, y=self.JG_Y * 2 + self.FuDong_Scal_Y)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# width
self.l = Label(self.PanedF_Canvas_Y1, text='width', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 3 + self.FuDong)
self.Ent_width = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_width, width=16, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_width.place(x=self.JG_X + 120, y=self.JG_Y * 3 + self.FuDong)
self.Btn_Ok_width = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_width.place(x=self.JG_X + 241, y=self.JG_Y * 3 + self.FuDong)
self.Sca_width = Scale(self.PanedF_Canvas_Y1, from_=0, to=300, orient=HORIZONTAL, variable=self.ent_width,
length=260, width=10, resolution=1, bg='white', command=self.UI_Ban)
self.Sca_width.place(x=self.JG_X, y=self.JG_Y * 3 + self.FuDong_Scal_Y)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# height
self.l = Label(self.PanedF_Canvas_Y1, text='height', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 4 + self.FuDong)
self.Ent_height = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_height, width=16, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_height.place(x=self.JG_X + 120, y=self.JG_Y * 4 + self.FuDong)
self.Btn_Ok_height = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_height.place(x=self.JG_X + 241, y=self.JG_Y * 4 + self.FuDong)
self.Sca_height = Scale(self.PanedF_Canvas_Y1, from_=0, to=100, orient=HORIZONTAL, variable=self.ent_height,
length=260, width=10, resolution=1, bg='white', command=self.UI_Ban)
self.Sca_height.place(x=self.JG_X, y=self.JG_Y * 4 + self.FuDong_Scal_Y)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# length
len_scal = 16
D = 18
self.l = Label(self.PanedF_Canvas_Y1, text='length', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * len_scal - D)
self.Ent_length = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_length, width=16, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_length.place(x=self.JG_X + 120, y=self.JG_Y * len_scal - D)
self.Btn_Ok_length = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_length.place(x=self.JG_X + 241, y=self.JG_Y * len_scal - D)
self.Sca_length = Scale(self.PanedF_Canvas_Y1, from_=0, to=2000, orient=HORIZONTAL, variable=self.ent_length,
length=260, width=10, resolution=1, bg='white', command=self.UI_Ban)
self.Sca_length.place(x=self.JG_X, y=self.JG_Y * len_scal + self.FuDong_Scal_Y - 6 - D)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# fontSize
self.l = Label(self.PanedF_Canvas_Y1, text='fontSize', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 5 + self.FuDong)
self.Ent_fontSize = Entry(self.PanedF_Canvas_Y1, textvariable=self.ent_fontSize, width=16, bg='DeepSkyBlue',
foreground='Darkblue')
self.Ent_fontSize.place(x=self.JG_X + 120, y=self.JG_Y * 5 + self.FuDong)
self.Btn_Ok_fontSize = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_fontSize.place(x=self.JG_X + 241, y=self.JG_Y * 5 + self.FuDong)
self.Sca_fontSize = Scale(self.PanedF_Canvas_Y1, from_=1, to=100, orient=HORIZONTAL, variable=self.ent_fontSize,
length=260, width=10, resolution=1, bg='white', command=self.UI_Ban)
self.Sca_fontSize.place(x=self.JG_X, y=self.JG_Y * 5 + self.FuDong_Scal_Y)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# fontType
self.l = Label(self.PanedF_Canvas_Y1, text='fontType', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 6 + self.FuDong)
self.comb_FontType_Chose = ttk.Combobox(self.PanedF_Canvas_Y1, width=19, textvariable=self.combt_fontType)
self.comb_FontType_Chose['values'] = \
(
'TkDefaultFont','Consolas', 'Arial', 'Algerian', 'Arial Rounded MT Bold', 'Bell MT', 'Bauhaus 93', 'BankGothic Md BT'
, 'Bradley Hand ITC', 'CASTELLAR', 'Elephant', 'French Script MT', 'Helvetica', 'Palace Script MT'
, 'MS UI Gothic', 'MingLiU_HKSCS-ExtB', 'Vineta BT', 'Swis721 BlkEx BT', '微软雅黑', '华文宋体'
, '华文行楷', '华文隶书', '华文新魏', '华文楷体', '华文细黑', '华文中宋', '华文彩云', '华文琥珀'
, '方正舒体', '方正姚体', '楷体', '宋体', '隶书', '幼圆', '新宋体'
)
self.comb_FontType_Chose.place(x=self.JG_X + 80, y=self.JG_Y * 6 + self.FuDong)
self.comb_FontType_Chose.current(0)
self.Btn_Ok_fontSize = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_fontSize.place(x=self.JG_X + 241, y=self.JG_Y * 6 + self.FuDong)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# foreground
self.l = Label(self.PanedF_Canvas_Y1, text='foreground', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 7 - 20)
self.Btn_foreground = Button(self.PanedF_Canvas_Y1, text='...', width=2, height=1, font=('Consol', '9'),
command=self.More_foreground)
self.Btn_foreground.place(x=self.JG_X+215, y=self.JG_Y * 7 - 20)
self.Btn_Ok_foreground = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_foreground.place(x=self.JG_X + 241, y=self.JG_Y * 7 - 20)
self.comb_foreground_Chose = ttk.Combobox(self.PanedF_Canvas_Y1, width=15, textvariable=self.combt_foreground)
self.comb_foreground_Chose['values'] = \
(
'SystemButtonText','black', 'white', 'blue', 'red', 'green', 'yellow', 'gray', 'DarkBlue', 'DeepSkyBlue'
, 'LightGreen', 'Pink', 'LightPink', 'DeepPink', 'Purple', 'Violet', 'BLueViolet','Beige'
, 'GreenYellow', 'Ivory', 'LightYellow', 'LightCyan', 'LightBlue', 'LightSkyBlue','Aqua'
, 'Lime', 'LawnGreen', 'ForestGreen', 'Olive', 'Azure', 'SpringGreen', 'PaleGreen'
, 'SlateGray', 'LightSlateGray', 'CadetBlue','DodgerBlue'
)
self.comb_foreground_Chose.place(x=self.JG_X + 80, y=self.JG_Y * 7 - 20)
self.comb_foreground_Chose.current(0)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# background
self.l = Label(self.PanedF_Canvas_Y1, text='background', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 7 + 20)
self.Btn_background = Button(self.PanedF_Canvas_Y1, text='...', width=2, height=1, font=('Consol', '9'),
command=self.More_background)
self.Btn_background.place(x=self.JG_X + 215, y=self.JG_Y * 7 + 20)
self.Btn_Ok_background = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_background.place(x=self.JG_X + 241, y=self.JG_Y * 7 + 20)
self.comb_background_Chose = ttk.Combobox(self.PanedF_Canvas_Y1, width=15, textvariable=self.combt_background)
self.comb_background_Chose['values'] = \
(
'SystemButtonFace','black', 'white', 'blue', 'red', 'green', 'yellow', 'gray', 'DarkBlue', 'DeepSkyBlue'
, 'LightGreen', 'Pink', 'LightPink', 'DeepPink', 'Purple', 'Violet', 'BLueViolet', 'Beige'
, 'GreenYellow', 'Ivory', 'LightYellow', 'LightCyan', 'LightBlue', 'LightSkyBlue', 'Aqua'
, 'Lime', 'LawnGreen', 'ForestGreen', 'Olive', 'Azure', 'SpringGreen', 'PaleGreen'
, 'SlateGray', 'LightSlateGray', 'CadetBlue', 'DodgerBlue'
)
self.comb_background_Chose.place(x=self.JG_X + 80, y=self.JG_Y * 7 + 20)
self.comb_background_Chose.current(0)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# anchor
self.l = Label(self.PanedF_Canvas_Y1, text='anchor', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 7 + 60)
self.combt_anchor_Chose = ttk.Combobox(self.PanedF_Canvas_Y1, width=19, textvariable=self.combt_anchor)
self.combt_anchor_Chose['values'] = \
(
'center', 'n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw'
)
self.combt_anchor_Chose.place(x=self.JG_X + 80, y=self.JG_Y * 7 + 60)
self.combt_anchor_Chose.current(0)
self.Btn_Ok_anchor = Button(self.PanedF_Canvas_Y1, text='=>', width=2, height=1, font=('Consol', '9')
, command=self.UI_Ban_Btn_OK)
self.Btn_Ok_anchor.place(x=self.JG_X + 241, y=self.JG_Y * 7 + 60)
# $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# justify
self.l = Label(self.PanedF_Canvas_Y1, text='justify', bg='white')
self.l.place(x=self.JG_X, y=self.JG_Y * 7 + 100) # y 方向每 40一间隔
self.combt_justify_Chose = ttk.Combobox(self.PanedF_Canvas_Y1, width=19, textvariable=self.combt_justify)
self.combt_justify_Chose['values'] = \
(
'center', 'left', 'right'
)