forked from the-pythonist/python-gui-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyGuiMaker.py
7524 lines (6849 loc) · 391 KB
/
pyGuiMaker.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
__author__ = "Samuel Amogbonjaye"
from tkinter import *
from tkinter import ttk
from tkinter import colorchooser
from tkinter import filedialog
from tkinter import font
# from fontTopLevel import *
class pyPROApp:
def __init__(self, master):
global dictDesignWindowPropCollect
dictDesignWindowPropCollect = {} #### Dictionary to collect properties of the design window
self.implementFont_determine = 0 ### Variable that works in conjunction with implementFont command
self.dictCountFont = {} ### Dicitonary to store font instances for design window widgets
self.implementImage_determine = 0 ### Variable that works in conjunction with implementImage command
self.dictCountImage = {} ### Dictionary to store PhotoImage instances for design window
self.count_image_instances = 1
self.commands_all = {} ### Dictionary to store commands for all widgets
self.styleWidgetConfigLabel = ttk.Style() ###ttk.Style for Main and WidgetToplevel widgets
self.clickWidgetConfig = 0 # Variable that determines if WidgetConfig Window has been opened earlier
self.numberFont_2 = 1 ###### Variable for New Font Name
self.isFontToplevel = 0 #### Variable to determine whether FontToplevel is opened
self.iswinConfigToplevel = 0 ### Variable to determine wheter winConfigToplevel is opned earlier
global screen_width, screen_height
self.master = master
screen_width = windowPRO.winfo_screenwidth()
screen_height = windowPRO.winfo_screenheight()
### Parameters for Title of Design Window
dictDesignWindowPropCollect["title"] = f"windowDesign.title('Design Window')"
### Parameters for Geometry of Design Window
global new_value_width
new_value_width = int(screen_width / 2)
global new_value_height
new_value_height = int(screen_height / 1.57)
global new_value_position_x
new_value_position_x = int(screen_width / 4.5)
global new_value_position_y
new_value_position_y = int(screen_height / 3.36)
dictDesignWindowPropCollect["geometry"] = f"windowDesign.geometry('{new_value_width}x{new_value_height}+" \
f"{new_value_position_x}+{new_value_position_y}')"
######## Main Window
windowPRO.title("BuildIt")
windowPRO.geometry(
"%dx%d+%d+%d" % (screen_width / 2, screen_height / 8, screen_width / 4.5, (screen_height / 20) - 20))
####### Main Menu Widget
Menu_main = Menu(master)
### comms for Code Gen
def comm4compile_text():
codeGen = CodeGenerate()
codeGen.compile2Text()
def comm4compile_python():
codeGen2 = CodeGenerate()
codeGen2.compile2PythonFile()
command4Code_Gen = Menu()
command4Code_Gen.add_command(label = "To Python File", command = comm4compile_python)
command4Code_Gen.add_command(label="To pyPRO's NotePad", command = comm4compile_text)
### comms for Beautify
cascade_change_theme = Menu()
cascade_change_theme.add_command(label="alt", command=lambda: self.styleWidgetConfigLabel.theme_use("alt"))
cascade_change_theme.add_command(label="clam", command=lambda: self.styleWidgetConfigLabel.theme_use("clam"))
cascade_change_theme.add_command(label = "classic", command = lambda: self.styleWidgetConfigLabel.theme_use("classic"))
cascade_change_theme.add_command(label = "default", command = lambda: self.styleWidgetConfigLabel.theme_use("default"))
cascade_change_theme.add_command(label="vista", command=lambda: self.styleWidgetConfigLabel.theme_use("vista"))
cascade_change_theme.add_command(label="winnative", command=lambda: self.styleWidgetConfigLabel.theme_use("winnative"))
cascade_change_theme.add_command(label="xpnative", command=lambda: self.styleWidgetConfigLabel.theme_use("xpnative"))
command4Beautify = Menu()
command4Beautify.add_separator()
command4Beautify.add_command(label = "Default Theme", command=lambda: self.styleWidgetConfigLabel.theme_use("vista"))
command4Beautify.add_cascade(label = "Change Theme", menu = cascade_change_theme)
command4Beautify.add_separator()
### comms for Window Setup
def command4winConfig():
global winsetupObject
winsetupObject = DesignWindowSetup()
command4Window = Menu()
command4Window.add_command(label = "Window Setup", command = command4winConfig)
Menu_main.add_cascade(label="Code Gen", menu=command4Code_Gen) ### CodeGen cass
Menu_main.add_cascade(label="Beautify", menu = command4Beautify) ### Beautify cass
Menu_main.add_cascade(label="Edit")
Menu_main.add_cascade(label="Window", menu = command4Window)
master.config(menu=Menu_main) ##### Configure main menu widget to window
self.toplevel4WidgetToolkit() #####Run Widget Toolkit Toplevel
def toplevel4WidgetToolkit(self): ####### Creates Wigets Toolkit Window and All Inside It
####### Top level for Widget Toolkit
toplevelWidgetToolkit = Toplevel(self.master)
toplevelWidgetToolkit.transient(self.master)
toplevelWidgetToolkit.geometry("%dx%d+%d+%d" % (207, screen_height/1.105, screen_width/168, screen_height/35))
toplevelWidgetToolkit.title("Widgets Toolkit")
toplevelWidgetToolkit.resizable(False, True)
print(toplevelWidgetToolkit.winfo_screenwidth())
####### Scrollbar for Main Widgets
scrollbarWidgetToolkit = ttk.Scrollbar(toplevelWidgetToolkit, )
scrollbarWidgetToolkit.pack(side=RIGHT, fill=Y)
####### Canvas for Widget Toolkit
canvasWidgetToolkit = Canvas(toplevelWidgetToolkit, highlightthickness=0,
yscrollcommand=scrollbarWidgetToolkit.set, width=207,
height=screen_height/1.105)
canvasWidgetToolkit.pack(side=LEFT, )
####### Frame to contain all Main Widgets
frameWidgetToolkit = ttk.Frame(canvasWidgetToolkit)
frameWidgetToolkit.pack()
# n, ne, e, se, s, sw, w, nw, or center
canvasWidgetToolkit.create_window((0, 0), window=frameWidgetToolkit, anchor=NW)
scrollbarWidgetToolkit.config(
command=canvasWidgetToolkit.yview) #### Set scrollbarWidgetToolkit for canvasWidgetToolkit
toplevelWidgetToolkit.bind("<Configure>", lambda event: canvasWidgetToolkit.config(
scrollregion=canvasWidgetToolkit.bbox(ALL))) #### Bind Scroll region to Configure Event
######### Widgets Placement for the Widget Toolkit
### All Main Widgets Here
# Label for Tk Widgets
label_tk_widgets = ttk.Label(frameWidgetToolkit, text="tk Widgets", font=("Onyx", 15, "bold"))
label_tk_widgets.pack(anchor=N, pady=5)
# Main Button Widget
self.widget_button = ttk.Button(frameWidgetToolkit, text="Button", style="main.TButton",
command=lambda: self.determineButton("button"))
self.widget_button.pack(anchor=W, )
# Main Checkbutton Widget
widget_checkbutton = ttk.Button(frameWidgetToolkit, text="Checkbutton", style="main.TButton",
command=lambda: self.determineCheckbutton("checkbutton"))
widget_checkbutton.pack(anchor=W, )
# Main Entry Widget
widget_entry = ttk.Button(frameWidgetToolkit, text="Entry", style="main.TButton",
command=lambda: self.determineEntry("entry"))
widget_entry.pack(anchor=W, )
# Main Label Widget
widget_label = ttk.Button(frameWidgetToolkit, text="Label", style="main.TButton",
command=lambda: self.determineLabel("label"))
widget_label.pack(anchor=W, )
# Main Listbox Widget
widget_listbox = ttk.Button(frameWidgetToolkit, text="Listbox", style="main.TButton",
command=lambda: self.determineListbox("listbox"))
widget_listbox.pack(anchor=W)
# Main Menu Widget
widget_menu = ttk.Button(frameWidgetToolkit, text="Menu", style="main.TButton", command=self.mainMenu)
widget_menu.pack(anchor=W)
# Main Menubutton Widget
widget_menubutton = ttk.Button(frameWidgetToolkit, text="Menubutton", style="main.TButton",
command=lambda: self.determineMenubutton("menubutton"))
widget_menubutton.pack(anchor=W)
# Main Message Widget
widget_message = ttk.Button(frameWidgetToolkit, text="Message", style="main.TButton",
command=lambda: self.determineMessage("message"))
widget_message.pack(anchor=W)
# Main OptionMenu Widget
widget_optionmenu = ttk.Button(frameWidgetToolkit, text="OptionMenu", style="main.TButton",
command=lambda: self.mainOptionMenu("optionmenu"))
widget_optionmenu.pack(anchor=W)
# Main Radiobutton Widget
widget_radiobutton = ttk.Button(frameWidgetToolkit, text="Radiobutton", style="main.TButton",
command=lambda: self.determineRadiobutton("radiobutton"))
widget_radiobutton.pack(anchor=W, )
# Main Scale - Horizontal
widget_scalehorizontal = ttk.Button(frameWidgetToolkit, text="Scale - Horizontal", style="main.TButton",
command=lambda: self.determineScale("scale_horizontal"))
widget_scalehorizontal.pack(anchor=W, )
# Main Scale - Vertical
widget_scalevertical = ttk.Button(frameWidgetToolkit, text="Scale - Vertical", style="main.TButton",
command=lambda: self.determineScale("scale_vertical"))
widget_scalevertical.pack(anchor=W, )
# Main Scrollbar - Horizontal
widget_scrollbar = ttk.Button(frameWidgetToolkit, text="Scrollbar - Horizontal", style="main.TButton",
command=lambda: self.determineScrollbar("scrollbar"))
widget_scrollbar.pack(anchor=W)
# Main Scrollbar - Vertical
widget_scrollbar = ttk.Button(frameWidgetToolkit, text="Scrollbar - Vertical", style="main.TButton",
command=lambda: self.determineScrollbar("scrollbar"))
widget_scrollbar.pack(anchor=W)
# Main Spinbox Widget
widget_spinbox = ttk.Button(frameWidgetToolkit, text="Spinbox", style="main.TButton",
command=lambda: self.determineSpinbox("spinbox"))
widget_spinbox.pack(anchor=W, )
# Main Text Widget
widget_text = ttk.Button(frameWidgetToolkit, text="Text", style="main.TButton",
command=lambda: self.determineText("text"))
widget_text.pack(anchor=W, )
# Label for Tk Containers
label_tk_containers = ttk.Label(frameWidgetToolkit, text="tk Containers", font=("Onyx", 15, "bold"))
label_tk_containers.pack(anchor=N, pady=5)
# Main Frame Contain
widget_frame = ttk.Button(frameWidgetToolkit, text="Frame", style="main.TButton",
command=lambda: self.determineFrame("frame"))
widget_frame.pack(anchor=W, )
# Main LabelFrame Contain
widget_labelframe = ttk.Button(frameWidgetToolkit, text="LabelFrame", style="main.TButton",
command=lambda: self.determineLabelFrame("labelframe"))
widget_labelframe.pack(anchor=W, )
# Main PanedWindow Contain
widget_panedwindow = ttk.Button(frameWidgetToolkit, text="PanedWindow", style="main.TButton",
command=lambda: self.determinePanedWindow("panedwindow"))
widget_panedwindow.pack(anchor=W, )
# Main Toplevel Contain
widget_toplevel = ttk.Button(frameWidgetToolkit, text="Toplevel", style="main.TButton",
command=lambda: self.determineToplevel("toplevel"))
widget_toplevel.pack(anchor=W, )
# Styling for Main Buttons
style_main_buttons = ttk.Style()
style_main_buttons.configure("main.TButton", width=30, anchor=W, )
def toplevel4WidgetConfig(self): ############ Contains Attributes available in all Widgets Classes
self.clickWidgetConfig = 1 #### Variable that determines if WidgetConfig Window has been opened earlier
###### Top level for Widgets Config toplevel
self.toplevelWidgetConfig = Toplevel(self.master, name = "!toplevel_attr_editor")
self.toplevelWidgetConfig.transient(self.master)
self.toplevelWidgetConfig.title("Widgets Config")
self.toplevelWidgetConfig.geometry(
"%dx%d+%d+%d" % (280, screen_height/1.105, screen_width-300, screen_height/35))
self.toplevelWidgetConfig.resizable(False, True)
### Canvas for Widget Config Toplevel
canvasWidgetConfig = Canvas(self.toplevelWidgetConfig, width=265, height=screen_height/1.1052,
highlightthickness=0)
canvasWidgetConfig.pack(side=LEFT)
### Frame to host All Widgets in Widget Config Toplevel
self.frameWidgetConfig = ttk.Frame(canvasWidgetConfig)
self.frameWidgetConfig.pack(fill = BOTH, expand = 1)
### Scrollbar to scroll Frame and hence all Widgets inside it
scrollbarWidgetConfig = ttk.Scrollbar(self.toplevelWidgetConfig, orient=VERTICAL, command=canvasWidgetConfig.yview)
scrollbarWidgetConfig.pack(side=RIGHT, fill=Y)
canvasWidgetConfig.create_window((0, 0), window=self.frameWidgetConfig,
anchor=NW) ### Canvas Window to host self.frameWidgetConfig
canvasWidgetConfig.config(
yscrollcommand=scrollbarWidgetConfig.set) ###### Set scrollbarWidgetConfig to canvasWidgetConfig
self.toplevelWidgetConfig.bind("<Configure>", lambda event: canvasWidgetConfig.config(
scrollregion=canvasWidgetConfig.bbox(ALL))) #### Bind Scroll region to Configure Event
# ATTRIBUTES DISPLAY AND EDIT
### Edit Attributes Label section
label4edit_attributes = ttk.Label(self.frameWidgetConfig, text="Edit Attributes", font=("Onyx", 15, "bold"))
label4edit_attributes.grid(row=100, column=1, sticky=N, columnspan=2, pady=5)
### Widget Variable Section
label4widget_variable = ttk.Label(self.frameWidgetConfig, text="Widget\nVariable", style="widgetconfig.TLabel")
label4widget_variable.grid(row=101, column=1, sticky=W)
frame4widget_variable = ttk.Frame(self.frameWidgetConfig)
frame4widget_variable.grid(row=101, column=2)
self.entry4widget_variable = Entry(frame4widget_variable, relief=FLAT, disabledbackground = "white")
self.entry4widget_variable.pack(side=LEFT, padx=3)
blank_label4command = ttk.Label(frame4widget_variable, text="", anchor=W, width=3)
blank_label4command.pack(side=LEFT)
### activebackground Sec
def color4activebackground():
color = colorchooser.askcolor()[1]
windowObject.entry4activebackground.delete(0, END)
windowObject.entry4activebackground.insert(END, color)
self.label4activebackground = ttk.Label(self.frameWidgetConfig, text="active\nbackground",
style="widgetconfig.TLabel")
self.label4activebackground.grid(sticky=W, row=105, column=1)
self.frame4activebackground = ttk.Frame(self.frameWidgetConfig)
self.frame4activebackground.grid(row=105, column=2)
self.entry4activebackground = Entry(self.frame4activebackground, relief=FLAT)
self.entry4activebackground.pack(side=LEFT, padx=3)
button4activebackground = ttk.Button(self.frame4activebackground, text=">>", style="moreOptions.TButton",
command = color4activebackground)
button4activebackground.pack(side=LEFT)
### activeforeground Sec
def color4activeforeground():
color = colorchooser.askcolor()[1]
windowObject.entry4activeforeground.delete(0, END)
windowObject.entry4activeforeground.insert(END, color)
self.label4activeforeground = ttk.Label(self.frameWidgetConfig, text="active\nforeground",
style="widgetconfig.TLabel")
self.label4activeforeground.grid(sticky=W, row=110, column=1)
self.frame4activeforeground = ttk.Frame(self.frameWidgetConfig)
self.frame4activeforeground.grid(row=110, column=2)
self.entry4activeforeground = Entry(self.frame4activeforeground, )
self.entry4activeforeground.pack(side=LEFT, padx=3)
button4activeforeground = ttk.Button(self.frame4activeforeground, text=">>", style="moreOptions.TButton",
command = color4activeforeground)
button4activeforeground.pack(side=LEFT)
### activestyle Sec
activestyles = ("dotbox", "none", "underline")
self.label4activestyle = ttk.Label(self.frameWidgetConfig, text="active\nstyle", style="widgetconfig.TLabel")
self.label4activestyle.grid(sticky=W, row=120, column=1)
self.combo4activestyle = ttk.Combobox(self.frameWidgetConfig, values=activestyles)
self.combo4activestyle.grid(row=120, column=2, ipadx=5)
### anchor Sec
anchors = ("nw", "n", "ne", "w", "center", "e", "sw", "s", "se")
self.label4anchor = ttk.Label(self.frameWidgetConfig, text="anchor", style="widgetconfig.TLabel")
self.label4anchor.grid(sticky=W, row=200, column=1)
self.combo4anchor = ttk.Combobox(self.frameWidgetConfig, values = anchors)
self.combo4anchor.grid(row=200, column=2, ipadx=5)
### aspect Sec
def command4aspect(new_value):
new_value = self.int_aspect.get()
windowObject.int_aspect.set(new_value)
self.int_aspect = IntVar(value = 100)
self.label4aspect = ttk.Label(self.frameWidgetConfig, text = "aspect", style = "widgetconfig.TLabel")
self.label4aspect.grid(sticky = W, row = 250, column = 1)
self.frame4aspect = Frame(self.frameWidgetConfig, )
self.frame4aspect.grid(sticky = W, row = 250, column = 2, padx = 25)
self.label24aspect = Label(self.frame4aspect, text = self.int_aspect.get(), textvariable = self.int_aspect)
self.label24aspect.pack()
self.scale4aspect = ttk.Scale(self.frame4aspect, from_ = 1, to = 1000, orient = HORIZONTAL,
variable = self.int_aspect, command = command4aspect)
self.scale4aspect.pack()
### autoseparators
self.bool_autoseparators = BooleanVar()
self.bool_autoseparators.set(True)
self.label4autoseparators = ttk.Label(self.frameWidgetConfig, text="auto\nseparators",
style="widgetconfig.TLabel")
self.label4autoseparators.grid(sticky=W, row=260, column=1)
self.frame4autoseparators = ttk.Frame(self.frameWidgetConfig)
self.frame4autoseparators.grid(row=260, column=2)
radioTrue4autoseparators = ttk.Radiobutton(self.frame4autoseparators, text="True",
variable=self.bool_autoseparators, value=True)
radioTrue4autoseparators.grid(sticky=W, row=1, column=1, padx=20)
radioFalse4autoseparators = ttk.Radiobutton(self.frame4autoseparators, text="False",
variable=self.bool_autoseparators, value=False)
radioFalse4autoseparators.grid(sticky=E, row=1, column=2, padx=20)
### background Sec
def color4background():
color = colorchooser.askcolor()[1]
windowObject.entry4background.delete(0, END)
windowObject.entry4background.insert(END, color)
self.label4background = ttk.Label(self.frameWidgetConfig, text="background", style="widgetconfig.TLabel")
self.label4background.grid(sticky=W, row=300, column=1)
self.frame4background = ttk.Frame(self.frameWidgetConfig)
self.frame4background.grid(row=300, column=2)
self.entry4background = Entry(self.frame4background, relief=FLAT)
self.entry4background.pack(side=LEFT, padx=3)
button4background = ttk.Button(self.frame4background, text=">>", style="moreOptions.TButton",
command = color4background)
button4background.pack(side=LEFT)
### bitmap Sec
bitmaps = ("error", "gray75", "gray50", "gray25", "gray12", "hourglass", "info", "questhead", "question",
"warning")
self.label4bitmap = ttk.Label(self.frameWidgetConfig, text="bitmap", style="widgetconfig.TLabel")
self.label4bitmap.grid(sticky=W, row=400, column=1)
self.combo4bitmap = ttk.Combobox(self.frameWidgetConfig, values = bitmaps)
self.combo4bitmap.grid(row=400, column=2, ipadx=5)
### blockcursor Sec
self.bool_blockcursor = BooleanVar()
self.bool_blockcursor.set(True)
self.label4blockcursor = ttk.Label(self.frameWidgetConfig, text="blockcursor",
style="widgetconfig.TLabel")
self.label4blockcursor.grid(sticky=W, row=410, column=1)
self.frame4blockcursor = ttk.Frame(self.frameWidgetConfig)
self.frame4blockcursor.grid(row=410, column=2)
radioTrue4blockcursor = ttk.Radiobutton(self.frame4blockcursor, text="True",
variable=self.bool_blockcursor, value=True)
radioTrue4blockcursor.grid(sticky=W, row=1, column=1, padx=20)
radioFalse4blockcursor = ttk.Radiobutton(self.frame4blockcursor, text="False",
variable=self.bool_blockcursor, value=False)
radioFalse4blockcursor.grid(sticky=E, row=1, column=2, padx=20)
### borderwidth Sec
# self.int_borderwidth = IntVar()
# self.int_borderwidth.set("")
self.label4borderwidth = ttk.Label(self.frameWidgetConfig, text="borderwidth", style="widgetconfig.TLabel")
self.label4borderwidth.grid(sticky=W, row=500, column=1)
self.spinbox4borderwidth = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=200, increment=2, width=10, wrap=True)
# textvariable = self.int_borderwidth)
self.spinbox4borderwidth.grid(row=500, column=2)
### buttonbackground Sec
def color4buttonbackground():
color = colorchooser.askcolor()[1]
windowObject.entry4buttonbackground.delete(0, END)
windowObject.entry4buttonbackground.insert(END, color)
self.label4buttonbackground = ttk.Label(self.frameWidgetConfig, text="button\nbackground", style="widgetconfig.TLabel")
self.label4buttonbackground.grid(sticky=W, row=505, column=1)
self.frame4buttonbackground = ttk.Frame(self.frameWidgetConfig)
self.frame4buttonbackground.grid(row=505, column=2)
self.entry4buttonbackground = Entry(self.frame4buttonbackground, relief=FLAT)
self.entry4buttonbackground.pack(side=LEFT, padx=3)
button4buttonbackground = ttk.Button(self.frame4buttonbackground, text=">>", style="moreOptions.TButton",
command = color4buttonbackground)
button4buttonbackground.pack(side=LEFT)
### buttoncursor Sec
buttoncursors = ( "arrow", "based_arrow_down", "based_arrow_up", "boat", "bogosity", "bottom_left_corner",
"bottom_right_corner", "bottom_side", "bottom_tee", "box_spiral", "center_ptr", "circle",
"clock", "coffee_mug", "cross",
"cross_reverse", "crosshair", "diamond_cross", "dot", "dotbox", "double_arrow", "draft_large", "draft_small",
"draped_box", "exchange", "fleur", "gobbler", "gumby", "hand1", "hand2", "heart", "icon", "iron_cross",
"left_ptr", "left_side", "left_tee", "leftbutton", "ll_angle", "lr_angle", "man", "middlebutton", "mouse",
"pencil", "pirate", "plus", "question_arrow", "right_ptr", "right_side", "right_tee", "rightbutton",
"rtl_logo", "sailboat", "sb_down_arrow", "sb_h_double_arrow", "sb_left_arrow", "sb_right_arrow", "sb_up_arrow",
"sb_v_double_arrow", "shuttle", "sizing", "spider", "spraycan", "star", "target", "tcross", "top_left_arrow",
"top_left_corner", "top_right_corner", "top_side", "top_tee", "trek", "ul_angle", "umbrella", "ur_angle",
"watch", "xterm", "X_cursor")
self.label4buttoncursor = ttk.Label(self.frameWidgetConfig, text="button\ncursor", style="widgetconfig.TLabel")
self.label4buttoncursor.grid(sticky=W, row=510, column=1)
self.combo4buttoncursor = ttk.Combobox(self.frameWidgetConfig, values=buttoncursors)
self.combo4buttoncursor.grid(row=510, column=2, ipadx=5)
### buttondownrelief Sec
buttondownreliefs = ("flat", "raised", "sunken", "groove", "ridge", "solid")
self.label4buttondownrelief = ttk.Label(self.frameWidgetConfig, text="buttondown\nrelief", style="widgetconfig.TLabel")
self.label4buttondownrelief.grid(sticky=W, row=515, column=1)
self.combo4buttondownrelief = ttk.Combobox(self.frameWidgetConfig, values=buttondownreliefs)
self.combo4buttondownrelief.grid(row=515, column=2, ipadx=5)
### buttonuprelief Sec
buttonupreliefs = ("flat", "raised", "sunken", "groove", "ridge", "solid")
self.label4buttonuprelief = ttk.Label(self.frameWidgetConfig, text="buttonup\nrelief", style="widgetconfig.TLabel")
self.label4buttonuprelief.grid(sticky=W, row=520, column=1)
self.combo4buttonuprelief = ttk.Combobox(self.frameWidgetConfig, values=buttonupreliefs)
self.combo4buttonuprelief.grid(row=520, column=2, ipadx=5)
### command Sec
self.label4command = ttk.Label(self.frameWidgetConfig, text="command", style="widgetconfig.TLabel")
self.label4command.grid(sticky=W, row=600, column=1)
self.frame4command = ttk.Frame(self.frameWidgetConfig)
self.frame4command.grid(row=600, column=2)
self.entry4command = Entry(self.frame4command, relief=FLAT, )
self.entry4command.pack(side=LEFT, padx=3)
blank_label4command = ttk.Label(self.frame4command, text="", anchor=W, width=3)
blank_label4command.pack(side=LEFT)
### compound Sec
compounds = ("bottom", "center", "left", "right", "top")
self.label4compound = ttk.Label(self.frameWidgetConfig, text="compound", style="widgetconfig.TLabel")
self.label4compound.grid(sticky=W, row=610, column=1)
self.combo4compound = ttk.Combobox(self.frameWidgetConfig, values = compounds)
self.combo4compound.grid(row=610, column=2, ipadx=5)
### Cursor Sec
cursors = ("arrow", "based_arrow_down", "based_arrow_up", "boat", "bogosity", "bottom_left_corner", "bottom_right_corner",
"bottom_side", "bottom_tee", "box_spiral", "center_ptr", "circle", "clock", "coffee_mug", "cross",
"cross_reverse", "crosshair", "diamond_cross", "dot", "dotbox", "double_arrow", "draft_large", "draft_small",
"draped_box", "exchange", "fleur", "gobbler", "gumby", "hand1", "hand2", "heart", "icon", "iron_cross",
"left_ptr", "left_side", "left_tee", "leftbutton", "ll_angle", "lr_angle", "man", "middlebutton", "mouse",
"pencil", "pirate", "plus", "question_arrow", "right_ptr", "right_side", "right_tee", "rightbutton",
"rtl_logo", "sailboat", "sb_down_arrow", "sb_h_double_arrow", "sb_left_arrow", "sb_right_arrow", "sb_up_arrow",
"sb_v_double_arrow", "shuttle", "sizing", "spider", "spraycan", "star", "target", "tcross", "top_left_arrow",
"top_left_corner", "top_right_corner", "top_side", "top_tee", "trek", "ul_angle", "umbrella", "ur_angle",
"watch", "xterm", "X_cursor")
self.label4cursor = ttk.Label(self.frameWidgetConfig, text="cursor", style="widgetconfig.TLabel")
self.label4cursor.grid(sticky=W, row=700, column=1)
self.combo4cursor = ttk.Combobox(self.frameWidgetConfig, values = cursors)
self.combo4cursor.grid(row=700, column=2, ipadx=5)
### digits Sec
# self.int_digits = IntVar(value = "")
self.label4digits = ttk.Label(self.frameWidgetConfig, text="digits",
style="widgetconfig.TLabel")
self.label4digits.grid(sticky=W, row=701, column=1)
self.spinbox4digits = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=17, increment=1, width=10, wrap=True)
# textvariable = self.int_digits)
self.spinbox4digits.grid(row=701, column=2)
### direction Sec
directions = ("above", "below", "left", "right")
self.label4direction = ttk.Label(self.frameWidgetConfig, text="direction", style="widgetconfig.TLabel")
self.label4direction.grid(sticky=W, row=705, column=1)
self.combo4direction = ttk.Combobox(self.frameWidgetConfig, values=directions)
self.combo4direction.grid(row=705, column=2, ipadx=5)
### disabledbackground Sec
def color4disabledbackground():
color = colorchooser.askcolor()[1]
windowObject.entry4disabledbackground.delete(0, END)
windowObject.entry4disabledbackground.insert(END, color)
self.label4disabledbackground = ttk.Label(self.frameWidgetConfig, text="disabled\nbackground",
style="widgetconfig.TLabel")
self.label4disabledbackground.grid(sticky=W, row=710, column=1)
self.frame4disabledbackground = ttk.Frame(self.frameWidgetConfig)
self.frame4disabledbackground.grid(row=710, column=2)
self.entry4disabledbackground = Entry(self.frame4disabledbackground, relief=FLAT)
self.entry4disabledbackground.pack(side=LEFT, padx=3)
button4disabledbackground = ttk.Button(self.frame4disabledbackground, text=">>", style="moreOptions.TButton",
command = color4disabledbackground)
button4disabledbackground.pack(side=LEFT)
### disabledforeground
def color4disabledforeground():
color = colorchooser.askcolor()[1]
windowObject.entry4disabledforeground.delete(0, END)
windowObject.entry4disabledforeground.insert(END,color)
self.label4disabledforeground = ttk.Label(self.frameWidgetConfig, text="disabled\nforeground",
style="widgetconfig.TLabel")
self.label4disabledforeground.grid(sticky=W, row=800, column=1)
self.frame4disabledforeground = ttk.Frame(self.frameWidgetConfig)
self.frame4disabledforeground.grid(row=800, column=2)
self.entry4disabledforeground = Entry(self.frame4disabledforeground, relief=FLAT)
self.entry4disabledforeground.pack(side=LEFT, padx=3)
button4disabledforeground = ttk.Button(self.frame4disabledforeground, text=">>", style="moreOptions.TButton",
command = color4disabledforeground)
button4disabledforeground.pack(side=LEFT)
### exportselection
self.bool_exportselection = BooleanVar()
self.bool_exportselection.set(1)
self.label4exportselection = ttk.Label(self.frameWidgetConfig, text="export\nselection",
style="widgetconfig.TLabel")
self.label4exportselection.grid(sticky=W, row=810, column=1)
self.frame4exportselection = ttk.Frame(self.frameWidgetConfig)
self.frame4exportselection.grid(row=810, column=2)
radioTrue4exportselection = ttk.Radiobutton(self.frame4exportselection, text="True",
variable=self.bool_exportselection, value=True)
radioTrue4exportselection.grid(sticky=W, row=1, column=1, padx=20)
radioFalse4exportselection = ttk.Radiobutton(self.frame4exportselection, text="False",
variable=self.bool_exportselection, value=False)
radioFalse4exportselection.grid(sticky=E, row=1, column=2, padx=20)
### font Sec
self.label4font = ttk.Label(self.frameWidgetConfig, text="font", style="widgetconfig.TLabel")
self.label4font.grid(sticky=W, row=900, column=1)
self.frame4font = ttk.Frame(self.frameWidgetConfig)
self.frame4font.grid(row=900, column=2, )
self.entry4font = Entry(self.frame4font, relief=FLAT)
self.entry4font.pack(side=LEFT, padx=3)
button4font = ttk.Button(self.frame4font, text=">>", style="moreOptions.TButton",
command=self.executeFontToplevel)
button4font.pack(side=LEFT)
### foreground Sec
def color4foreground():
color = colorchooser.askcolor()[1]
windowObject.entry4foreground.delete(0, END)
windowObject.entry4foreground.insert(END,color)
self.label4foreground = ttk.Label(self.frameWidgetConfig, text="foreground", style="widgetconfig.TLabel")
self.label4foreground.grid(sticky=W, row=1000, column=1)
self.frame4foreground = ttk.Frame(self.frameWidgetConfig)
self.frame4foreground.grid(row=1000, column=2)
self.entry4foreground = Entry(self.frame4foreground, relief=FLAT)
self.entry4foreground.pack(side=LEFT, padx=3)
button4foreground = ttk.Button(self.frame4foreground, text=">>", style="moreOptions.TButton",
command = color4foreground)
button4foreground.pack(side=LEFT)
### format Sec
self.label4format = ttk.Label(self.frameWidgetConfig, text="format", style="widgetconfig.TLabel")
self.label4format.grid(sticky=W, row=1010, column=1)
self.frame4format = ttk.Frame(self.frameWidgetConfig)
self.frame4format.grid(row=1010, column=2)
self.entry4format = Entry(self.frame4format, relief=FLAT)
self.entry4format.pack(side=LEFT, padx=3)
blank_label4format = ttk.Label(self.frame4format, text="", anchor=W, width=3)
blank_label4format.pack(side=LEFT)
### from_ Sec
# self.int_from_ = IntVar()
self.label4from_ = ttk.Label(self.frameWidgetConfig, text="from_", style="widgetconfig.TLabel")
self.label4from_.grid(sticky=W, row=1020, column=1)
self.frame4from_ = ttk.Frame(self.frameWidgetConfig)
self.frame4from_.grid(row=1020, column=2)
self.entry4from_ = Entry(self.frame4from_, relief=FLAT,)
# textvariable = self.int_from_)
self.entry4from_.pack(side=LEFT, padx=3)
blank_label4from_ = ttk.Label(self.frame4from_, text="", anchor=W, width=3)
blank_label4from_.pack(side=LEFT)
### handlepad
# self.int_handlepad = IntVar()
# self.int_handlepad.set(8)
self.label4handlepad = ttk.Label(self.frameWidgetConfig, text="handlepad", style="widgetconfig.TLabel")
self.label4handlepad.grid(sticky=W, row=1030, column=1)
self.spinbox4handlepad = ttk.Spinbox(self.frameWidgetConfig, from_=1, increment=1, to=50, width=10, wrap=True,)
# textvariable = self.int_handlepad)
self.spinbox4handlepad.insert(END, 8)
self.spinbox4handlepad.grid(row=1030, column=2)
### handlesize
# self.int_handlesize = IntVar(value = 8)
self.label4handlesize = ttk.Label(self.frameWidgetConfig, text="handlesize", style="widgetconfig.TLabel")
self.label4handlesize.grid(sticky=W, row=1040, column=1)
self.spinbox4handlesize = ttk.Spinbox(self.frameWidgetConfig, from_=1, increment=1, to=50, width=10, wrap=True,)
# textvariable = self.int_handlesize)
self.spinbox4handlesize.insert(END, 8)
self.spinbox4handlesize.grid(row=1040, column=2)
### height Sec
self.label4height = ttk.Label(self.frameWidgetConfig, text="height", style="widgetconfig.TLabel")
self.label4height.grid(sticky=W, row=1100, column=1)
self.spinbox4height = ttk.Spinbox(self.frameWidgetConfig, from_=1, increment = 5, to = self.label4height.winfo_screenheight(), width=10, wrap = True)
self.spinbox4height.grid(row=1100, column=2)
### highlightbackground Sec
def color4highlightbackground():
color = colorchooser.askcolor()[1]
windowObject.entry4highlightbackground.delete(0, END)
windowObject.entry4highlightbackground.insert(END,color)
self.label4highlightbackground = ttk.Label(self.frameWidgetConfig, text="highlight\nbackground",
style="widgetconfig.TLabel", )
self.label4highlightbackground.grid(sticky=W, row=1200, column=1)
self.frame4highlightbackground = ttk.Frame(self.frameWidgetConfig)
self.frame4highlightbackground.grid(row=1200, column=2)
self.entry4highlightbackground = Entry(self.frame4highlightbackground, relief=FLAT)
self.entry4highlightbackground.pack(side=LEFT, padx=3)
button4highlightbackground = ttk.Button(self.frame4highlightbackground, text=">>", style="moreOptions.TButton",
command = color4highlightbackground)
button4highlightbackground.pack(side=LEFT)
### highlightcolor Sec
def color4highlightcolor():
color = colorchooser.askcolor()[1]
windowObject.entry4highlightcolor.delete(0, END)
windowObject.entry4highlightcolor.insert(END,color)
self.label4highlightcolor = ttk.Label(self.frameWidgetConfig, text="highlight\ncolor",
style="widgetconfig.TLabel")
self.label4highlightcolor.grid(sticky=W, row=1300, column=1)
self.frame4highlightcolor = ttk.Frame(self.frameWidgetConfig)
self.frame4highlightcolor.grid(row=1300, column=2)
self.entry4highlightcolor = Entry(self.frame4highlightcolor, relief=FLAT)
self.entry4highlightcolor.pack(side=LEFT, padx=3)
button4highlightcolor = ttk.Button(self.frame4highlightcolor, text=">>", style="moreOptions.TButton",
command = color4highlightcolor)
button4highlightcolor.pack(side=LEFT)
### highlightthickness Sec
# self.int_highlightthickness = IntVar()
self.label4highlightthickness = ttk.Label(self.frameWidgetConfig, text="highlight\nthickness",
style="widgetconfig.TLabel")
self.label4highlightthickness.grid(sticky=W, row=1400, column=1)
self.spinbox4highlightthickness = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=50, increment=2, width=10,
wrap=True,)
# textvariable = self.int_highlightthickness)
self.spinbox4highlightthickness.grid(row=1400, column=2)
### image Sec
# def command4scale_imagewidth(value):
# value = float(value)
# value = int(value)
# windowObject.dictCountImage[f"Image{windowObject.count_image_instances-1}"].config(width = value, height = value)
# def command4scale_imageheight():
# pass
def filedialog4image():
file_get = filedialog.askopenfile(filetypes = [("Portable Network Graphics (PNG)", "*png")])
try:
file_get.name
# label_adjustimagewidth = ttk.Label(self.frameWidgetConfig, text = "adjust\nimage\nwidth",
# style = "widgetconfig.TLabel")
# label_adjustimagewidth.grid(row = 1406, column = 1)
# scale_imagewidth = ttk.Scale(self.frameWidgetConfig, from_ = 0, to = 999, command = command4scale_imagewidth)
# scale_imagewidth.grid(row = 1406, column = 2,)
#
# label_adjustimageheight = ttk.Label(self.frameWidgetConfig, text="adjust\nimage\nheight",
# style="widgetconfig.TLabel")
# label_adjustimageheight.grid(row=1407, column=1)
# scale_imageheight = ttk.Scale(self.frameWidgetConfig, from_ = 0, to = 999)
# scale_imageheight.grid(row = 1407, column = 2)
except:
pass
else:
windowObject.dictCountImage[f"Image{windowObject.count_image_instances}"] = PhotoImage(master = windowDesign,
file = file_get.name, name = f"image_{windowObject.count_image_instances}")
print(file_get.name)
windowObject.entry4image.delete(0, END)
windowObject.entry4image.insert(END, f"image_{windowObject.count_image_instances}")
windowObject.implementImage_determine = 22
# except:
# pass
# arrangeObject.refreshAttributes()
# windowObject.count_image_instances += 1
self.label4image = ttk.Label(self.frameWidgetConfig, text="image", style="widgetconfig.TLabel")
self.label4image.grid(sticky=W, row=1405, column=1)
self.frame4image = ttk.Frame(self.frameWidgetConfig)
self.frame4image.grid(row=1405, column=2)
self.entry4image = Entry(self.frame4image, relief=FLAT)
self.entry4image.pack(side=LEFT, padx=3)
button4image = ttk.Button(self.frame4image, text=">>", style="moreOptions.TButton", command = filedialog4image)
button4image.pack(side=LEFT)
### inactiveselectbackground Sec
def color4inactiveselectbackground():
color = colorchooser.askcolor()[1]
windowObject.entry4inactiveselectbackground.delete(0, END)
windowObject.entry4inactiveselectbackground.insert(END,color)
self.label4inactiveselectbackground = ttk.Label(self.frameWidgetConfig, text="inactive\nselect\nbackground",
style="widgetconfig.TLabel")
self.label4inactiveselectbackground.grid(sticky=W, row=1409, column=1)
self.frame4inactiveselectbackground = ttk.Frame(self.frameWidgetConfig)
self.frame4inactiveselectbackground.grid(row=1409, column=2)
self.entry4inactiveselectbackground = Entry(self.frame4inactiveselectbackground, relief=FLAT)
self.entry4inactiveselectbackground.pack(side=LEFT, padx=3)
button4inactiveselectbackground = ttk.Button(self.frame4inactiveselectbackground, text=">>",
style="moreOptions.TButton", command = color4inactiveselectbackground)
button4inactiveselectbackground.pack(side=LEFT)
### increment Sec
# self.int_increment = IntVar()
self.label4increment = ttk.Label(self.frameWidgetConfig, text="increment", style="widgetconfig.TLabel")
self.label4increment.grid(sticky=W, row=1411, column=1)
self.frame4increment = ttk.Frame(self.frameWidgetConfig)
self.frame4increment.grid(row=1411, column=2)
self.entry4increment = Entry(self.frame4increment, relief=FLAT, )
# textvariable = self.int_increment)
self.entry4increment.pack(side=LEFT, padx=3)
button4increment = ttk.Button(self.frame4increment, text=">>", style="moreOptions.TButton")
button4increment.pack(side=LEFT)
### indicatoron Sec
self.bool_indicatoron = BooleanVar()
self.bool_indicatoron.set(1)
self.label4indicatoron = ttk.Label(self.frameWidgetConfig, text="indicatoron", style="widgetconfig.TLabel")
self.label4indicatoron.grid(sticky=W, row=1412, column=1)
self.frame4indicatoron = ttk.Frame(self.frameWidgetConfig)
self.frame4indicatoron.grid(row=1412, column=2)
radioTrue4indicatoron = ttk.Radiobutton(self.frame4indicatoron, text="True", variable=self.bool_indicatoron,
value=True)
radioTrue4indicatoron.grid(sticky=W, row=1, column=1, padx=20)
radioFalse4indicatoron = ttk.Radiobutton(self.frame4indicatoron, text="False", variable=self.bool_indicatoron,
value=False)
radioFalse4indicatoron.grid(sticky=E, row=1, column=2, padx=20)
### insertbackground Sec
def color4insertbackground():
color = colorchooser.askcolor()[1]
windowObject.entry4insertbackground.delete(0, END)
windowObject.entry4insertbackground.insert(END, color)
self.label4insertbackground = ttk.Label(self.frameWidgetConfig, text="insert\nbackground",
style="widgetconfig.TLabel")
self.label4insertbackground.grid(sticky=W, row=1415, column=1)
self.frame4insertbackground = ttk.Frame(self.frameWidgetConfig)
self.frame4insertbackground.grid(row=1415, column=2)
self.entry4insertbackground = Entry(self.frame4insertbackground, relief=FLAT)
self.entry4insertbackground.pack(side=LEFT, padx=3)
button4insertbackground = ttk.Button(self.frame4insertbackground, text=">>", style="moreOptions.TButton",
command = color4insertbackground)
button4insertbackground.pack(side=LEFT)
### insertborderwidth Sec
# self.int_insertborderwidth = IntVar()
self.label4insertborderwidth = ttk.Label(self.frameWidgetConfig, text="insert\nborderwidth",
style="widgetconfig.TLabel")
self.label4insertborderwidth.grid(sticky=W, row=1420, column=1)
self.spinbox4insertborderwidth = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=50, increment=2, width=10,
wrap=True,)
# textvariable = self.int_insertborderwidth)
self.spinbox4insertborderwidth.grid(row=1420, column=2)
### insertofftime Sec
# self.int_insertofftime = IntVar()
self.label4insertofftime = ttk.Label(self.frameWidgetConfig, text="insert\nofftime",
style="widgetconfig.TLabel")
self.label4insertofftime.grid(sticky=W, row=1425, column=1)
self.spinbox4insertofftime = ttk.Spinbox(self.frameWidgetConfig, from_=0, to=3000, increment=100, width=10,
wrap=True,)
# textvariable = self.int_insertofftime)
self.spinbox4insertofftime.grid(row=1425, column=2)
### insertontime Sec
# self.int_insertontime = IntVar()
self.label4insertontime = ttk.Label(self.frameWidgetConfig, text="insert\nontime", style="widgetconfig.TLabel")
self.label4insertontime.grid(sticky=W, row=1430, column=1)
self.spinbox4insertontime = ttk.Spinbox(self.frameWidgetConfig, from_=0, to=3000, increment=100, width=10,
wrap=True,)
# textvariable = self.int_insertontime)
self.spinbox4insertontime.grid(row=1430, column=2)
### insertunfocussed
insertunfocusseds = ("hollow", "solid", "none")
self.label4insertunfoccussed = ttk.Label(self.frameWidgetConfig, text="insert\nunfocussed",
style="widgetconfig.TLabel")
self.label4insertunfoccussed.grid(sticky=W, row=1431, column=1)
self.combo4insertunfoccussed = ttk.Combobox(self.frameWidgetConfig, values=insertunfocusseds)
self.combo4insertunfoccussed.grid(row=1431, column=2, ipadx=5)
### insertwidth Sec
# self.int_insertwidth = IntVar()
self.label4insertwidth = ttk.Label(self.frameWidgetConfig, text="insert\nwidth", style="widgetconfig.TLabel")
self.label4insertwidth.grid(sticky=W, row=1435, column=1)
self.spinbox4insertwidth = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=50, increment=2, width=10, wrap=True)
# textvariable = self.int_insertwidth)
self.spinbox4insertwidth.grid(row=1435, column=2)
### invalidcommand Sec
self.label4invalidcommand = ttk.Label(self.frameWidgetConfig, text="invalid\ncommand",
style="widgetconfig.TLabel", )
self.label4invalidcommand.grid(sticky=W, row=1450, column=1)
self.frame4invalidcommand = ttk.Frame(self.frameWidgetConfig)
self.frame4invalidcommand.grid(row=1450, column=2)
self.entry4invalidcommand = Entry(self.frame4invalidcommand, relief=FLAT)
self.entry4invalidcommand.pack(side=LEFT, padx=3)
button4invalidcommand = ttk.Button(self.frame4invalidcommand, text=">>", style="moreOptions.TButton")
button4invalidcommand.pack(side=LEFT)
### Justify Sec
justifys = ("left", "center", "right")
self.label4justify = ttk.Label(self.frameWidgetConfig, text="justify", style="widgetconfig.TLabel")
self.label4justify.grid(sticky=W, row=1460, column=1)
self.combo4justify = ttk.Combobox(self.frameWidgetConfig, values = justifys)
self.combo4justify.grid(row=1460, column=2, ipadx=5)
### label Sec
self.label4label = ttk.Label(self.frameWidgetConfig, text="label", style="widgetconfig.TLabel")
self.label4label.grid(sticky=W, row=1470, column=1)
self.frame4label = ttk.Frame(self.frameWidgetConfig)
self.frame4label.grid(row=1470, column=2)
self.entry4label = Entry(self.frame4label, relief=FLAT)
self.entry4label.pack(side=LEFT, padx=3)
blank_label4label = ttk.Label(self.frame4label, text="", anchor=W, width=3)
blank_label4label.pack(side=LEFT)
### labelanchor Sec
labelanchors = ("nw", "n", "ne", "en", "e", "es", "wn", "w", "ws", "sw", "s", "se")
self.label4labelanchor = ttk.Label(self.frameWidgetConfig, text="labelanchor", style="widgetconfig.TLabel")
self.label4labelanchor.grid(sticky=W, row=1501, column=1)
self.combo4labelanchor = ttk.Combobox(self.frameWidgetConfig, values=labelanchors)
self.combo4labelanchor.grid(row=1501, column=2, ipadx=5)
### labelwidget Sec
self.label4labelwidget = ttk.Label(self.frameWidgetConfig, text="labelwidget", style="widgetconfig.TLabel")
self.label4labelwidget.grid(sticky=W, row=1502, column=1)
self.frame4labelwidget = ttk.Frame(self.frameWidgetConfig)
self.frame4labelwidget.grid(row=1502, column=2)
self.entry4labelwidget = Entry(self.frame4labelwidget, relief=FLAT)
self.entry4labelwidget.pack(side=LEFT, padx=3)
blank_label4labelwidget = ttk.Label(self.frame4labelwidget, text="", anchor=W, width=3)
blank_label4labelwidget.pack(side=LEFT)
### length Sec
self.label4length = ttk.Label(self.frameWidgetConfig, text="length", style="widgetconfig.TLabel")
self.label4length.grid(sticky=W, row=1503, column=1)
self.spinbox4length = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=300, increment=2, width=10, wrap=True)
self.spinbox4length.grid(row=1503, column=2)
### listvariable Sec
self.label4listvariable = ttk.Label(self.frameWidgetConfig, text="list\nvariable",
style="widgetconfig.TLabel", )
self.label4listvariable.grid(sticky=W, row=1504, column=1)
self.frame4listvariable = ttk.Frame(self.frameWidgetConfig)
self.frame4listvariable.grid(row=1504, column=2)
self.entry4listvariable = Entry(self.frame4listvariable, relief=FLAT)
self.entry4listvariable.pack(side=LEFT, padx=3)
button4listvariable = ttk.Button(self.frame4listvariable, text=">>", style="moreOptions.TButton")
button4listvariable.pack(side=LEFT)
### maxundo
# self.int_maxundo = IntVar()
self.label4maxundo = ttk.Label(self.frameWidgetConfig, text="maxundo", style="widgetconfig.TLabel")
self.label4maxundo.grid(sticky=W, row=1505, column=1)
self.frame4maxundo = ttk.Frame(self.frameWidgetConfig)
self.frame4maxundo.grid(row=1505, column=2)
self.entry4maxundo = Entry(self.frame4maxundo, relief=FLAT,)
# textvariable = self.int_maxundo)
self.entry4maxundo.pack(side=LEFT, padx=3)
blank_label4maxundo = ttk.Label(self.frame4maxundo, text="", anchor=W, width=3)
blank_label4maxundo.pack(side=LEFT)
### menu Sec
self.label4menu = ttk.Label(self.frameWidgetConfig, text="menu",
style="widgetconfig.TLabel", )
self.label4menu.grid(sticky=W, row=1506, column=1)
self.frame4menu = ttk.Frame(self.frameWidgetConfig)
self.frame4menu.grid(row=1506, column=2)
self.entry4menu = Entry(self.frame4menu, relief=FLAT)
self.entry4menu.pack(side=LEFT, padx=3)
button4menu = ttk.Button(self.frame4menu, text=">>", style="moreOptions.TButton")
button4menu.pack(side=LEFT)
### offrelief Sec
offreliefs = ("flat", "raised", "sunken", "groove", "ridge", "solid")
self.label4offrelief = ttk.Label(self.frameWidgetConfig, text="offrelief", style="widgetconfig.TLabel")
self.label4offrelief.grid(sticky=W, row=1507, column=1)
self.combo4offrelief = ttk.Combobox(self.frameWidgetConfig, values=offreliefs)
self.combo4offrelief.grid(row=1507, column=2, ipadx=5)
### opaqueresize Sec
self.bool_opaqueresize = BooleanVar()
self.bool_opaqueresize.set(1)
self.label4opaqueresize = ttk.Label(self.frameWidgetConfig, text="opaque\nresize", style="widgetconfig.TLabel")
self.label4opaqueresize.grid(sticky=W, row=1508, column=1)
self.frame4opaqueresize = ttk.Frame(self.frameWidgetConfig)
self.frame4opaqueresize.grid(row=1508, column=2)
radioTrue4opaqueresize = ttk.Radiobutton(self.frame4opaqueresize, text="True", variable=self.bool_opaqueresize,
value=True)
radioTrue4opaqueresize.grid(sticky=W, row=1, column=1, padx=20)
radioFalse4opaqueresize = ttk.Radiobutton(self.frame4opaqueresize, text="False", variable=self.bool_opaqueresize,
value=False)
radioFalse4opaqueresize.grid(sticky=E, row=1, column=2, padx=20)
### orient Sec
orient = ("horizontal", "vertical")
self.label4orient = label4cursor = ttk.Label(self.frameWidgetConfig, text="orient", style="widgetconfig.TLabel")
self.label4orient.grid(sticky=W, row=1510, column=1)
self.combo4orient = ttk.Combobox(self.frameWidgetConfig, values = orient)
self.combo4orient.grid(row=1510, column=2, ipadx=5)
### overrelief Sec
overreliefs = ("flat", "raised", "sunken", "groove", "ridge", "solid")
self.label4overrelief = ttk.Label(self.frameWidgetConfig, text="overrelief", style="widgetconfig.TLabel")
self.label4overrelief.grid(sticky=W, row=1515, column=1)
self.combo4overrelief = ttk.Combobox(self.frameWidgetConfig, values = overreliefs)
self.combo4overrelief.grid(row=1515, column=2, ipadx=5)
### padx Sec
# self.int_padx = IntVar()
self.label4padx = ttk.Label(self.frameWidgetConfig, text="padx", style="widgetconfig.TLabel")
self.label4padx.grid(sticky=W, row=1600, column=1)
self.spinbox4padx = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=50, increment=2, width=10, wrap=True)
# textvariable = self.int_padx)
self.spinbox4padx.grid(row=1600, column=2)
### pady Sec
# self.int_pady = IntVar()
self.label4pady = ttk.Label(self.frameWidgetConfig, text="pady", style="widgetconfig.TLabel")
self.label4pady.grid(sticky=W, row=1700, column=1)
self.spinbox4pady = ttk.Spinbox(self.frameWidgetConfig, from_=1, to=50, increment=2, width=10, wrap=True,)
# textvariable = self.int_pady)
self.spinbox4pady.grid(row=1700, column=2)
### readonlybackground
def color4readonlybackground():
color = colorchooser.askcolor()[1]
windowObject.entry4readonlybackground.delete(0, END)
windowObject.entry4readonlybackground.insert(END,color)
self.label4readonlybackground = ttk.Label(self.frameWidgetConfig, text="readonly\nbackground",
style="widgetconfig.TLabel")
self.label4readonlybackground.grid(sticky=W, row=1710, column=1)
self.frame4readonlybackground = ttk.Frame(self.frameWidgetConfig)
self.frame4readonlybackground.grid(row=1710, column=2)
self.entry4readonlybackground = Entry(self.frame4readonlybackground, relief=FLAT)
self.entry4readonlybackground.pack(side=LEFT, padx=3)
button4readonlybackground = ttk.Button(self.frame4readonlybackground, text=">>", style="moreOptions.TButton",
command = color4readonlybackground)
button4readonlybackground.pack(side=LEFT)
### relief Sec
reliefs = ("flat", "raised", "sunken", "groove", "ridge", "solid")