-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.html
More file actions
2746 lines (2119 loc) · 231 KB
/
App.html
File metadata and controls
2746 lines (2119 loc) · 231 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module App</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>App</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cmacwo%5Cdesktop%5Cpythoncoopproj%5Capp.py">c:\users\macwo\desktop\pythoncoopproj\app.py</a></font></td></tr></table>
<p><tt>Файл с классом приложения и необходимыми для него классами</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="tkinter.html#Tk">tkinter.Tk</a>(<a href="tkinter.html#Misc">tkinter.Misc</a>, <a href="tkinter.html#Wm">tkinter.Wm</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="App.html#App">App</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="tkinter.html#Toplevel">tkinter.Toplevel</a>(<a href="tkinter.html#BaseWidget">tkinter.BaseWidget</a>, <a href="tkinter.html#Wm">tkinter.Wm</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="App.html#FigSizer">FigSizer</a>
</font></dt><dt><font face="helvetica, arial"><a href="App.html#NumSymmetry">NumSymmetry</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="App">class <strong>App</strong></a>(<a href="tkinter.html#Tk">tkinter.Tk</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Главный класс приложения.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="App.html#App">App</a></dd>
<dd><a href="tkinter.html#Tk">tkinter.Tk</a></dd>
<dd><a href="tkinter.html#Misc">tkinter.Misc</a></dd>
<dd><a href="tkinter.html#Wm">tkinter.Wm</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="App-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Создание холста и запуск цикла отрисовки</tt></dd></dl>
<dl><dt><a name="App-select_fig_size"><strong>select_fig_size</strong></a>(self)</dt><dd><tt>Установка размера фигуры</tt></dd></dl>
<dl><dt><a name="App-select_num_symm"><strong>select_num_symm</strong></a>(self)</dt><dd><tt>Установка числа симметричных отражений</tt></dd></dl>
<hr>
Methods inherited from <a href="tkinter.html#Tk">tkinter.Tk</a>:<br>
<dl><dt><a name="App-__getattr__"><strong>__getattr__</strong></a>(self, attr)</dt><dd><tt>Delegate attribute access to the interpreter object</tt></dd></dl>
<dl><dt><a name="App-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Destroy this and all descendants widgets. This will<br>
end the application of this Tcl interpreter.</tt></dd></dl>
<dl><dt><a name="App-loadtk"><strong>loadtk</strong></a>(self)</dt></dl>
<dl><dt><a name="App-readprofile"><strong>readprofile</strong></a>(self, baseName, className)</dt><dd><tt>Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into<br>
the Tcl Interpreter and calls exec on the contents of BASENAME.py and<br>
CLASSNAME.py if such a file exists in the home directory.</tt></dd></dl>
<dl><dt><a name="App-report_callback_exception"><strong>report_callback_exception</strong></a>(self, exc, val, tb)</dt><dd><tt>Report callback exception on sys.stderr.<br>
<br>
Applications may want to override this internal function, and<br>
should when sys.stderr is None.</tt></dd></dl>
<hr>
Methods inherited from <a href="tkinter.html#Misc">tkinter.Misc</a>:<br>
<dl><dt><a name="App-__getitem__"><strong>__getitem__</strong></a> = cget(self, key)</dt><dd><tt>Return the resource value for a KEY given as string.</tt></dd></dl>
<dl><dt><a name="App-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="App-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt></dl>
<dl><dt><a name="App-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return the window path name of this widget.</tt></dd></dl>
<dl><dt><a name="App-after"><strong>after</strong></a>(self, ms, func=None, *args)</dt><dd><tt>Call function once after given time.<br>
<br>
MS specifies the time in milliseconds. FUNC gives the<br>
function which shall be called. Additional parameters<br>
are given as parameters to the function call. Return<br>
identifier to cancel scheduling with after_cancel.</tt></dd></dl>
<dl><dt><a name="App-after_cancel"><strong>after_cancel</strong></a>(self, id)</dt><dd><tt>Cancel scheduling of function identified with ID.<br>
<br>
Identifier returned by after or after_idle must be<br>
given as first parameter.</tt></dd></dl>
<dl><dt><a name="App-after_idle"><strong>after_idle</strong></a>(self, func, *args)</dt><dd><tt>Call FUNC once if the Tcl main loop has no event to<br>
process.<br>
<br>
Return an identifier to cancel the scheduling with<br>
after_cancel.</tt></dd></dl>
<dl><dt><a name="App-anchor"><strong>anchor</strong></a> = grid_anchor(self, anchor=None)</dt><dd><tt>The anchor value controls how to place the grid within the<br>
master when no row/column has any weight.<br>
<br>
The default anchor is nw.</tt></dd></dl>
<dl><dt><a name="App-bbox"><strong>bbox</strong></a> = grid_bbox(self, column=None, row=None, col2=None, row2=None)</dt><dd><tt>Return a tuple of integer coordinates for the bounding<br>
box of this widget controlled by the geometry manager grid.<br>
<br>
If COLUMN, ROW is given the bounding box applies from<br>
the cell with row and column 0 to the specified<br>
cell. If COL2 and ROW2 are given the bounding box<br>
starts at that cell.<br>
<br>
The returned integers specify the offset of the upper left<br>
corner in the master widget and the width and height.</tt></dd></dl>
<dl><dt><a name="App-bell"><strong>bell</strong></a>(self, displayof=0)</dt><dd><tt>Ring a display's bell.</tt></dd></dl>
<dl><dt><a name="App-bind"><strong>bind</strong></a>(self, sequence=None, func=None, add=None)</dt><dd><tt>Bind to this widget at event SEQUENCE a call to function FUNC.<br>
<br>
SEQUENCE is a string of concatenated event<br>
patterns. An event pattern is of the form<br>
<MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one<br>
of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,<br>
Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,<br>
B3, Alt, Button4, B4, Double, Button5, B5 Triple,<br>
Mod1, M1. TYPE is one of Activate, Enter, Map,<br>
ButtonPress, Button, Expose, Motion, ButtonRelease<br>
FocusIn, MouseWheel, Circulate, FocusOut, Property,<br>
Colormap, Gravity Reparent, Configure, KeyPress, Key,<br>
Unmap, Deactivate, KeyRelease Visibility, Destroy,<br>
Leave and DETAIL is the button number for ButtonPress,<br>
ButtonRelease and DETAIL is the Keysym for KeyPress and<br>
KeyRelease. Examples are<br>
<Control-Button-1> for pressing Control and mouse button 1 or<br>
<Alt-A> for pressing A and the Alt key (KeyPress can be omitted).<br>
An event pattern can also be a virtual event of the form<br>
<<AString>> where AString can be arbitrary. This<br>
event can be generated by event_generate.<br>
If events are concatenated they must appear shortly<br>
after each other.<br>
<br>
FUNC will be called if the event sequence occurs with an<br>
instance of Event as argument. If the return value of FUNC is<br>
"break" no further bound function is invoked.<br>
<br>
An additional boolean parameter ADD specifies whether FUNC will<br>
be called additionally to the other bound function or whether<br>
it will replace the previous function.<br>
<br>
Bind will return an identifier to allow deletion of the bound function with<br>
unbind without memory leak.<br>
<br>
If FUNC or SEQUENCE is omitted the bound function or list<br>
of bound events are returned.</tt></dd></dl>
<dl><dt><a name="App-bind_all"><strong>bind_all</strong></a>(self, sequence=None, func=None, add=None)</dt><dd><tt>Bind to all widgets at an event SEQUENCE a call to function FUNC.<br>
An additional boolean parameter ADD specifies whether FUNC will<br>
be called additionally to the other bound function or whether<br>
it will replace the previous function. See bind for the return value.</tt></dd></dl>
<dl><dt><a name="App-bind_class"><strong>bind_class</strong></a>(self, className, sequence=None, func=None, add=None)</dt><dd><tt>Bind to widgets with bindtag CLASSNAME at event<br>
SEQUENCE a call of function FUNC. An additional<br>
boolean parameter ADD specifies whether FUNC will be<br>
called additionally to the other bound function or<br>
whether it will replace the previous function. See bind for<br>
the return value.</tt></dd></dl>
<dl><dt><a name="App-bindtags"><strong>bindtags</strong></a>(self, tagList=None)</dt><dd><tt>Set or get the list of bindtags for this widget.<br>
<br>
With no argument return the list of all bindtags associated with<br>
this widget. With a list of strings as argument the bindtags are<br>
set to this list. The bindtags determine in which order events are<br>
processed (see bind).</tt></dd></dl>
<dl><dt><a name="App-cget"><strong>cget</strong></a>(self, key)</dt><dd><tt>Return the resource value for a KEY given as string.</tt></dd></dl>
<dl><dt><a name="App-clipboard_append"><strong>clipboard_append</strong></a>(self, string, **kw)</dt><dd><tt>Append STRING to the <a href="tkinter.html#Tk">Tk</a> clipboard.<br>
<br>
A widget specified at the optional displayof keyword<br>
argument specifies the target display. The clipboard<br>
can be retrieved with selection_get.</tt></dd></dl>
<dl><dt><a name="App-clipboard_clear"><strong>clipboard_clear</strong></a>(self, **kw)</dt><dd><tt>Clear the data in the <a href="tkinter.html#Tk">Tk</a> clipboard.<br>
<br>
A widget specified for the optional displayof keyword<br>
argument specifies the target display.</tt></dd></dl>
<dl><dt><a name="App-clipboard_get"><strong>clipboard_get</strong></a>(self, **kw)</dt><dd><tt>Retrieve data from the clipboard on window's display.<br>
<br>
The window keyword defaults to the root window of the Tkinter<br>
application.<br>
<br>
The type keyword specifies the form in which the data is<br>
to be returned and should be an atom name such as STRING<br>
or FILE_NAME. Type defaults to STRING, except on X11, where the default<br>
is to try UTF8_STRING and fall back to STRING.<br>
<br>
This command is equivalent to:<br>
<br>
<a href="#App-selection_get">selection_get</a>(CLIPBOARD)</tt></dd></dl>
<dl><dt><a name="App-columnconfigure"><strong>columnconfigure</strong></a> = grid_columnconfigure(self, index, cnf={}, **kw)</dt><dd><tt>Configure column INDEX of a grid.<br>
<br>
Valid resources are minsize (minimum size of the column),<br>
weight (how much does additional space propagate to this column)<br>
and pad (how much space to let additionally).</tt></dd></dl>
<dl><dt><a name="App-config"><strong>config</strong></a> = configure(self, cnf=None, **kw)</dt><dd><tt>Configure resources of a widget.<br>
<br>
The values for resources are specified as keyword<br>
arguments. To get an overview about<br>
the allowed keyword arguments call the method keys.</tt></dd></dl>
<dl><dt><a name="App-configure"><strong>configure</strong></a>(self, cnf=None, **kw)</dt><dd><tt>Configure resources of a widget.<br>
<br>
The values for resources are specified as keyword<br>
arguments. To get an overview about<br>
the allowed keyword arguments call the method keys.</tt></dd></dl>
<dl><dt><a name="App-deletecommand"><strong>deletecommand</strong></a>(self, name)</dt><dd><tt>Internal function.<br>
<br>
Delete the Tcl command provided in NAME.</tt></dd></dl>
<dl><dt><a name="App-event_add"><strong>event_add</strong></a>(self, virtual, *sequences)</dt><dd><tt>Bind a virtual event VIRTUAL (of the form <<Name>>)<br>
to an event SEQUENCE such that the virtual event is triggered<br>
whenever SEQUENCE occurs.</tt></dd></dl>
<dl><dt><a name="App-event_delete"><strong>event_delete</strong></a>(self, virtual, *sequences)</dt><dd><tt>Unbind a virtual event VIRTUAL from SEQUENCE.</tt></dd></dl>
<dl><dt><a name="App-event_generate"><strong>event_generate</strong></a>(self, sequence, **kw)</dt><dd><tt>Generate an event SEQUENCE. Additional<br>
keyword arguments specify parameter of the event<br>
(e.g. x, y, rootx, rooty).</tt></dd></dl>
<dl><dt><a name="App-event_info"><strong>event_info</strong></a>(self, virtual=None)</dt><dd><tt>Return a list of all virtual events or the information<br>
about the SEQUENCE bound to the virtual event VIRTUAL.</tt></dd></dl>
<dl><dt><a name="App-focus"><strong>focus</strong></a> = focus_set(self)</dt><dd><tt>Direct input focus to this widget.<br>
<br>
If the application currently does not have the focus<br>
this widget will get the focus if the application gets<br>
the focus through the window manager.</tt></dd></dl>
<dl><dt><a name="App-focus_displayof"><strong>focus_displayof</strong></a>(self)</dt><dd><tt>Return the widget which has currently the focus on the<br>
display where this widget is located.<br>
<br>
Return None if the application does not have the focus.</tt></dd></dl>
<dl><dt><a name="App-focus_force"><strong>focus_force</strong></a>(self)</dt><dd><tt>Direct input focus to this widget even if the<br>
application does not have the focus. Use with<br>
caution!</tt></dd></dl>
<dl><dt><a name="App-focus_get"><strong>focus_get</strong></a>(self)</dt><dd><tt>Return the widget which has currently the focus in the<br>
application.<br>
<br>
Use focus_displayof to allow working with several<br>
displays. Return None if application does not have<br>
the focus.</tt></dd></dl>
<dl><dt><a name="App-focus_lastfor"><strong>focus_lastfor</strong></a>(self)</dt><dd><tt>Return the widget which would have the focus if top level<br>
for this widget gets the focus from the window manager.</tt></dd></dl>
<dl><dt><a name="App-focus_set"><strong>focus_set</strong></a>(self)</dt><dd><tt>Direct input focus to this widget.<br>
<br>
If the application currently does not have the focus<br>
this widget will get the focus if the application gets<br>
the focus through the window manager.</tt></dd></dl>
<dl><dt><a name="App-getboolean"><strong>getboolean</strong></a>(self, s)</dt><dd><tt>Return a boolean value for Tcl boolean values true and false given as parameter.</tt></dd></dl>
<dl><dt><a name="App-getdouble"><strong>getdouble</strong></a>(self, s)</dt></dl>
<dl><dt><a name="App-getint"><strong>getint</strong></a>(self, s)</dt></dl>
<dl><dt><a name="App-getvar"><strong>getvar</strong></a>(self, name='PY_VAR')</dt><dd><tt>Return value of Tcl variable NAME.</tt></dd></dl>
<dl><dt><a name="App-grab_current"><strong>grab_current</strong></a>(self)</dt><dd><tt>Return widget which has currently the grab in this application<br>
or None.</tt></dd></dl>
<dl><dt><a name="App-grab_release"><strong>grab_release</strong></a>(self)</dt><dd><tt>Release grab for this widget if currently set.</tt></dd></dl>
<dl><dt><a name="App-grab_set"><strong>grab_set</strong></a>(self)</dt><dd><tt>Set grab for this widget.<br>
<br>
A grab directs all events to this and descendant<br>
widgets in the application.</tt></dd></dl>
<dl><dt><a name="App-grab_set_global"><strong>grab_set_global</strong></a>(self)</dt><dd><tt>Set global grab for this widget.<br>
<br>
A global grab directs all events to this and<br>
descendant widgets on the display. Use with caution -<br>
other applications do not get events anymore.</tt></dd></dl>
<dl><dt><a name="App-grab_status"><strong>grab_status</strong></a>(self)</dt><dd><tt>Return None, "local" or "global" if this widget has<br>
no, a local or a global grab.</tt></dd></dl>
<dl><dt><a name="App-grid_anchor"><strong>grid_anchor</strong></a>(self, anchor=None)</dt><dd><tt>The anchor value controls how to place the grid within the<br>
master when no row/column has any weight.<br>
<br>
The default anchor is nw.</tt></dd></dl>
<dl><dt><a name="App-grid_bbox"><strong>grid_bbox</strong></a>(self, column=None, row=None, col2=None, row2=None)</dt><dd><tt>Return a tuple of integer coordinates for the bounding<br>
box of this widget controlled by the geometry manager grid.<br>
<br>
If COLUMN, ROW is given the bounding box applies from<br>
the cell with row and column 0 to the specified<br>
cell. If COL2 and ROW2 are given the bounding box<br>
starts at that cell.<br>
<br>
The returned integers specify the offset of the upper left<br>
corner in the master widget and the width and height.</tt></dd></dl>
<dl><dt><a name="App-grid_columnconfigure"><strong>grid_columnconfigure</strong></a>(self, index, cnf={}, **kw)</dt><dd><tt>Configure column INDEX of a grid.<br>
<br>
Valid resources are minsize (minimum size of the column),<br>
weight (how much does additional space propagate to this column)<br>
and pad (how much space to let additionally).</tt></dd></dl>
<dl><dt><a name="App-grid_location"><strong>grid_location</strong></a>(self, x, y)</dt><dd><tt>Return a tuple of column and row which identify the cell<br>
at which the pixel at position X and Y inside the master<br>
widget is located.</tt></dd></dl>
<dl><dt><a name="App-grid_propagate"><strong>grid_propagate</strong></a>(self, flag=['_noarg_'])</dt><dd><tt>Set or get the status for propagation of geometry information.<br>
<br>
A boolean argument specifies whether the geometry information<br>
of the slaves will determine the size of this widget. If no argument<br>
is given, the current setting will be returned.</tt></dd></dl>
<dl><dt><a name="App-grid_rowconfigure"><strong>grid_rowconfigure</strong></a>(self, index, cnf={}, **kw)</dt><dd><tt>Configure row INDEX of a grid.<br>
<br>
Valid resources are minsize (minimum size of the row),<br>
weight (how much does additional space propagate to this row)<br>
and pad (how much space to let additionally).</tt></dd></dl>
<dl><dt><a name="App-grid_size"><strong>grid_size</strong></a>(self)</dt><dd><tt>Return a tuple of the number of column and rows in the grid.</tt></dd></dl>
<dl><dt><a name="App-grid_slaves"><strong>grid_slaves</strong></a>(self, row=None, column=None)</dt><dd><tt>Return a list of all slaves of this widget<br>
in its packing order.</tt></dd></dl>
<dl><dt><a name="App-image_names"><strong>image_names</strong></a>(self)</dt><dd><tt>Return a list of all existing image names.</tt></dd></dl>
<dl><dt><a name="App-image_types"><strong>image_types</strong></a>(self)</dt><dd><tt>Return a list of all available image types (e.g. photo bitmap).</tt></dd></dl>
<dl><dt><a name="App-keys"><strong>keys</strong></a>(self)</dt><dd><tt>Return a list of all resource names of this widget.</tt></dd></dl>
<dl><dt><a name="App-lift"><strong>lift</strong></a> = tkraise(self, aboveThis=None)</dt><dd><tt>Raise this widget in the stacking order.</tt></dd></dl>
<dl><dt><a name="App-lower"><strong>lower</strong></a>(self, belowThis=None)</dt><dd><tt>Lower this widget in the stacking order.</tt></dd></dl>
<dl><dt><a name="App-mainloop"><strong>mainloop</strong></a>(self, n=0)</dt><dd><tt>Call the mainloop of <a href="tkinter.html#Tk">Tk</a>.</tt></dd></dl>
<dl><dt><a name="App-nametowidget"><strong>nametowidget</strong></a>(self, name)</dt><dd><tt>Return the Tkinter instance of a widget identified by<br>
its Tcl name NAME.</tt></dd></dl>
<dl><dt><a name="App-option_add"><strong>option_add</strong></a>(self, pattern, value, priority=None)</dt><dd><tt>Set a VALUE (second parameter) for an option<br>
PATTERN (first parameter).<br>
<br>
An optional third parameter gives the numeric priority<br>
(defaults to 80).</tt></dd></dl>
<dl><dt><a name="App-option_clear"><strong>option_clear</strong></a>(self)</dt><dd><tt>Clear the option database.<br>
<br>
It will be reloaded if option_add is called.</tt></dd></dl>
<dl><dt><a name="App-option_get"><strong>option_get</strong></a>(self, name, className)</dt><dd><tt>Return the value for an option NAME for this widget<br>
with CLASSNAME.<br>
<br>
Values with higher priority override lower values.</tt></dd></dl>
<dl><dt><a name="App-option_readfile"><strong>option_readfile</strong></a>(self, fileName, priority=None)</dt><dd><tt>Read file FILENAME into the option database.<br>
<br>
An optional second parameter gives the numeric<br>
priority.</tt></dd></dl>
<dl><dt><a name="App-pack_propagate"><strong>pack_propagate</strong></a>(self, flag=['_noarg_'])</dt><dd><tt>Set or get the status for propagation of geometry information.<br>
<br>
A boolean argument specifies whether the geometry information<br>
of the slaves will determine the size of this widget. If no argument<br>
is given the current setting will be returned.</tt></dd></dl>
<dl><dt><a name="App-pack_slaves"><strong>pack_slaves</strong></a>(self)</dt><dd><tt>Return a list of all slaves of this widget<br>
in its packing order.</tt></dd></dl>
<dl><dt><a name="App-place_slaves"><strong>place_slaves</strong></a>(self)</dt><dd><tt>Return a list of all slaves of this widget<br>
in its packing order.</tt></dd></dl>
<dl><dt><a name="App-propagate"><strong>propagate</strong></a> = pack_propagate(self, flag=['_noarg_'])</dt><dd><tt>Set or get the status for propagation of geometry information.<br>
<br>
A boolean argument specifies whether the geometry information<br>
of the slaves will determine the size of this widget. If no argument<br>
is given the current setting will be returned.</tt></dd></dl>
<dl><dt><a name="App-quit"><strong>quit</strong></a>(self)</dt><dd><tt>Quit the Tcl interpreter. All widgets will be destroyed.</tt></dd></dl>
<dl><dt><a name="App-register"><strong>register</strong></a> = _register(self, func, subst=None, needcleanup=1)</dt><dd><tt>Return a newly created Tcl function. If this<br>
function is called, the Python function FUNC will<br>
be executed. An optional function SUBST can<br>
be given which will be executed before FUNC.</tt></dd></dl>
<dl><dt><a name="App-rowconfigure"><strong>rowconfigure</strong></a> = grid_rowconfigure(self, index, cnf={}, **kw)</dt><dd><tt>Configure row INDEX of a grid.<br>
<br>
Valid resources are minsize (minimum size of the row),<br>
weight (how much does additional space propagate to this row)<br>
and pad (how much space to let additionally).</tt></dd></dl>
<dl><dt><a name="App-selection_clear"><strong>selection_clear</strong></a>(self, **kw)</dt><dd><tt>Clear the current X selection.</tt></dd></dl>
<dl><dt><a name="App-selection_get"><strong>selection_get</strong></a>(self, **kw)</dt><dd><tt>Return the contents of the current X selection.<br>
<br>
A keyword parameter selection specifies the name of<br>
the selection and defaults to PRIMARY. A keyword<br>
parameter displayof specifies a widget on the display<br>
to use. A keyword parameter type specifies the form of data to be<br>
fetched, defaulting to STRING except on X11, where UTF8_STRING is tried<br>
before STRING.</tt></dd></dl>
<dl><dt><a name="App-selection_handle"><strong>selection_handle</strong></a>(self, command, **kw)</dt><dd><tt>Specify a function COMMAND to call if the X<br>
selection owned by this widget is queried by another<br>
application.<br>
<br>
This function must return the contents of the<br>
selection. The function will be called with the<br>
arguments OFFSET and LENGTH which allows the chunking<br>
of very long selections. The following keyword<br>
parameters can be provided:<br>
selection - name of the selection (default PRIMARY),<br>
type - type of the selection (e.g. STRING, FILE_NAME).</tt></dd></dl>
<dl><dt><a name="App-selection_own"><strong>selection_own</strong></a>(self, **kw)</dt><dd><tt>Become owner of X selection.<br>
<br>
A keyword parameter selection specifies the name of<br>
the selection (default PRIMARY).</tt></dd></dl>
<dl><dt><a name="App-selection_own_get"><strong>selection_own_get</strong></a>(self, **kw)</dt><dd><tt>Return owner of X selection.<br>
<br>
The following keyword parameter can<br>
be provided:<br>
selection - name of the selection (default PRIMARY),<br>
type - type of the selection (e.g. STRING, FILE_NAME).</tt></dd></dl>
<dl><dt><a name="App-send"><strong>send</strong></a>(self, interp, cmd, *args)</dt><dd><tt>Send Tcl command CMD to different interpreter INTERP to be executed.</tt></dd></dl>
<dl><dt><a name="App-setvar"><strong>setvar</strong></a>(self, name='PY_VAR', value='1')</dt><dd><tt>Set Tcl variable NAME to VALUE.</tt></dd></dl>
<dl><dt><a name="App-size"><strong>size</strong></a> = grid_size(self)</dt><dd><tt>Return a tuple of the number of column and rows in the grid.</tt></dd></dl>
<dl><dt><a name="App-slaves"><strong>slaves</strong></a> = pack_slaves(self)</dt><dd><tt>Return a list of all slaves of this widget<br>
in its packing order.</tt></dd></dl>
<dl><dt><a name="App-tk_bisque"><strong>tk_bisque</strong></a>(self)</dt><dd><tt>Change the color scheme to light brown as used in <a href="tkinter.html#Tk">Tk</a> 3.6 and before.</tt></dd></dl>
<dl><dt><a name="App-tk_focusFollowsMouse"><strong>tk_focusFollowsMouse</strong></a>(self)</dt><dd><tt>The widget under mouse will get automatically focus. Can not<br>
be disabled easily.</tt></dd></dl>
<dl><dt><a name="App-tk_focusNext"><strong>tk_focusNext</strong></a>(self)</dt><dd><tt>Return the next widget in the focus order which follows<br>
widget which has currently the focus.<br>
<br>
The focus order first goes to the next child, then to<br>
the children of the child recursively and then to the<br>
next sibling which is higher in the stacking order. A<br>
widget is omitted if it has the takefocus resource set<br>
to 0.</tt></dd></dl>
<dl><dt><a name="App-tk_focusPrev"><strong>tk_focusPrev</strong></a>(self)</dt><dd><tt>Return previous widget in the focus order. See tk_focusNext for details.</tt></dd></dl>
<dl><dt><a name="App-tk_setPalette"><strong>tk_setPalette</strong></a>(self, *args, **kw)</dt><dd><tt>Set a new color scheme for all widget elements.<br>
<br>
A single color as argument will cause that all colors of <a href="tkinter.html#Tk">Tk</a><br>
widget elements are derived from this.<br>
Alternatively several keyword parameters and its associated<br>
colors can be given. The following keywords are valid:<br>
activeBackground, foreground, selectColor,<br>
activeForeground, highlightBackground, selectBackground,<br>
background, highlightColor, selectForeground,<br>
disabledForeground, insertBackground, troughColor.</tt></dd></dl>
<dl><dt><a name="App-tk_strictMotif"><strong>tk_strictMotif</strong></a>(self, boolean=None)</dt><dd><tt>Set Tcl internal variable, whether the look and feel<br>
should adhere to Motif.<br>
<br>
A parameter of 1 means adhere to Motif (e.g. no color<br>
change if mouse passes over slider).<br>
Returns the set value.</tt></dd></dl>
<dl><dt><a name="App-tkraise"><strong>tkraise</strong></a>(self, aboveThis=None)</dt><dd><tt>Raise this widget in the stacking order.</tt></dd></dl>
<dl><dt><a name="App-unbind"><strong>unbind</strong></a>(self, sequence, funcid=None)</dt><dd><tt>Unbind for this widget for event SEQUENCE the<br>
function identified with FUNCID.</tt></dd></dl>
<dl><dt><a name="App-unbind_all"><strong>unbind_all</strong></a>(self, sequence)</dt><dd><tt>Unbind for all widgets for event SEQUENCE all functions.</tt></dd></dl>
<dl><dt><a name="App-unbind_class"><strong>unbind_class</strong></a>(self, className, sequence)</dt><dd><tt>Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE<br>
all functions.</tt></dd></dl>
<dl><dt><a name="App-update"><strong>update</strong></a>(self)</dt><dd><tt>Enter event loop until all pending events have been processed by Tcl.</tt></dd></dl>
<dl><dt><a name="App-update_idletasks"><strong>update_idletasks</strong></a>(self)</dt><dd><tt>Enter event loop until all idle callbacks have been called. This<br>
will update the display of windows but not process events caused by<br>
the user.</tt></dd></dl>
<dl><dt><a name="App-wait_variable"><strong>wait_variable</strong></a>(self, name='PY_VAR')</dt><dd><tt>Wait until the variable is modified.<br>
<br>
A parameter of type IntVar, StringVar, DoubleVar or<br>
BooleanVar must be given.</tt></dd></dl>
<dl><dt><a name="App-wait_visibility"><strong>wait_visibility</strong></a>(self, window=None)</dt><dd><tt>Wait until the visibility of a WIDGET changes<br>
(e.g. it appears).<br>
<br>
If no parameter is given self is used.</tt></dd></dl>
<dl><dt><a name="App-wait_window"><strong>wait_window</strong></a>(self, window=None)</dt><dd><tt>Wait until a WIDGET is destroyed.<br>
<br>
If no parameter is given self is used.</tt></dd></dl>
<dl><dt><a name="App-waitvar"><strong>waitvar</strong></a> = wait_variable(self, name='PY_VAR')</dt><dd><tt>Wait until the variable is modified.<br>
<br>
A parameter of type IntVar, StringVar, DoubleVar or<br>
BooleanVar must be given.</tt></dd></dl>
<dl><dt><a name="App-winfo_atom"><strong>winfo_atom</strong></a>(self, name, displayof=0)</dt><dd><tt>Return integer which represents atom NAME.</tt></dd></dl>
<dl><dt><a name="App-winfo_atomname"><strong>winfo_atomname</strong></a>(self, id, displayof=0)</dt><dd><tt>Return name of atom with identifier ID.</tt></dd></dl>
<dl><dt><a name="App-winfo_cells"><strong>winfo_cells</strong></a>(self)</dt><dd><tt>Return number of cells in the colormap for this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_children"><strong>winfo_children</strong></a>(self)</dt><dd><tt>Return a list of all widgets which are children of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_class"><strong>winfo_class</strong></a>(self)</dt><dd><tt>Return window class name of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_colormapfull"><strong>winfo_colormapfull</strong></a>(self)</dt><dd><tt>Return true if at the last color request the colormap was full.</tt></dd></dl>
<dl><dt><a name="App-winfo_containing"><strong>winfo_containing</strong></a>(self, rootX, rootY, displayof=0)</dt><dd><tt>Return the widget which is at the root coordinates ROOTX, ROOTY.</tt></dd></dl>
<dl><dt><a name="App-winfo_depth"><strong>winfo_depth</strong></a>(self)</dt><dd><tt>Return the number of bits per pixel.</tt></dd></dl>
<dl><dt><a name="App-winfo_exists"><strong>winfo_exists</strong></a>(self)</dt><dd><tt>Return true if this widget exists.</tt></dd></dl>
<dl><dt><a name="App-winfo_fpixels"><strong>winfo_fpixels</strong></a>(self, number)</dt><dd><tt>Return the number of pixels for the given distance NUMBER<br>
(e.g. "3c") as float.</tt></dd></dl>
<dl><dt><a name="App-winfo_geometry"><strong>winfo_geometry</strong></a>(self)</dt><dd><tt>Return geometry string for this widget in the form "widthxheight+X+Y".</tt></dd></dl>
<dl><dt><a name="App-winfo_height"><strong>winfo_height</strong></a>(self)</dt><dd><tt>Return height of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_id"><strong>winfo_id</strong></a>(self)</dt><dd><tt>Return identifier ID for this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_interps"><strong>winfo_interps</strong></a>(self, displayof=0)</dt><dd><tt>Return the name of all Tcl interpreters for this display.</tt></dd></dl>
<dl><dt><a name="App-winfo_ismapped"><strong>winfo_ismapped</strong></a>(self)</dt><dd><tt>Return true if this widget is mapped.</tt></dd></dl>
<dl><dt><a name="App-winfo_manager"><strong>winfo_manager</strong></a>(self)</dt><dd><tt>Return the window manager name for this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_name"><strong>winfo_name</strong></a>(self)</dt><dd><tt>Return the name of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_parent"><strong>winfo_parent</strong></a>(self)</dt><dd><tt>Return the name of the parent of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_pathname"><strong>winfo_pathname</strong></a>(self, id, displayof=0)</dt><dd><tt>Return the pathname of the widget given by ID.</tt></dd></dl>
<dl><dt><a name="App-winfo_pixels"><strong>winfo_pixels</strong></a>(self, number)</dt><dd><tt>Rounded integer value of winfo_fpixels.</tt></dd></dl>
<dl><dt><a name="App-winfo_pointerx"><strong>winfo_pointerx</strong></a>(self)</dt><dd><tt>Return the x coordinate of the pointer on the root window.</tt></dd></dl>
<dl><dt><a name="App-winfo_pointerxy"><strong>winfo_pointerxy</strong></a>(self)</dt><dd><tt>Return a tuple of x and y coordinates of the pointer on the root window.</tt></dd></dl>
<dl><dt><a name="App-winfo_pointery"><strong>winfo_pointery</strong></a>(self)</dt><dd><tt>Return the y coordinate of the pointer on the root window.</tt></dd></dl>
<dl><dt><a name="App-winfo_reqheight"><strong>winfo_reqheight</strong></a>(self)</dt><dd><tt>Return requested height of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_reqwidth"><strong>winfo_reqwidth</strong></a>(self)</dt><dd><tt>Return requested width of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_rgb"><strong>winfo_rgb</strong></a>(self, color)</dt><dd><tt>Return tuple of decimal values for red, green, blue for<br>
COLOR in this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_rootx"><strong>winfo_rootx</strong></a>(self)</dt><dd><tt>Return x coordinate of upper left corner of this widget on the<br>
root window.</tt></dd></dl>
<dl><dt><a name="App-winfo_rooty"><strong>winfo_rooty</strong></a>(self)</dt><dd><tt>Return y coordinate of upper left corner of this widget on the<br>
root window.</tt></dd></dl>
<dl><dt><a name="App-winfo_screen"><strong>winfo_screen</strong></a>(self)</dt><dd><tt>Return the screen name of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_screencells"><strong>winfo_screencells</strong></a>(self)</dt><dd><tt>Return the number of the cells in the colormap of the screen<br>
of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_screendepth"><strong>winfo_screendepth</strong></a>(self)</dt><dd><tt>Return the number of bits per pixel of the root window of the<br>
screen of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_screenheight"><strong>winfo_screenheight</strong></a>(self)</dt><dd><tt>Return the number of pixels of the height of the screen of this widget<br>
in pixel.</tt></dd></dl>
<dl><dt><a name="App-winfo_screenmmheight"><strong>winfo_screenmmheight</strong></a>(self)</dt><dd><tt>Return the number of pixels of the height of the screen of<br>
this widget in mm.</tt></dd></dl>
<dl><dt><a name="App-winfo_screenmmwidth"><strong>winfo_screenmmwidth</strong></a>(self)</dt><dd><tt>Return the number of pixels of the width of the screen of<br>
this widget in mm.</tt></dd></dl>
<dl><dt><a name="App-winfo_screenvisual"><strong>winfo_screenvisual</strong></a>(self)</dt><dd><tt>Return one of the strings directcolor, grayscale, pseudocolor,<br>
staticcolor, staticgray, or truecolor for the default<br>
colormodel of this screen.</tt></dd></dl>
<dl><dt><a name="App-winfo_screenwidth"><strong>winfo_screenwidth</strong></a>(self)</dt><dd><tt>Return the number of pixels of the width of the screen of<br>
this widget in pixel.</tt></dd></dl>
<dl><dt><a name="App-winfo_server"><strong>winfo_server</strong></a>(self)</dt><dd><tt>Return information of the X-Server of the screen of this widget in<br>
the form "XmajorRminor vendor vendorVersion".</tt></dd></dl>
<dl><dt><a name="App-winfo_toplevel"><strong>winfo_toplevel</strong></a>(self)</dt><dd><tt>Return the toplevel widget of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_viewable"><strong>winfo_viewable</strong></a>(self)</dt><dd><tt>Return true if the widget and all its higher ancestors are mapped.</tt></dd></dl>
<dl><dt><a name="App-winfo_visual"><strong>winfo_visual</strong></a>(self)</dt><dd><tt>Return one of the strings directcolor, grayscale, pseudocolor,<br>
staticcolor, staticgray, or truecolor for the<br>
colormodel of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_visualid"><strong>winfo_visualid</strong></a>(self)</dt><dd><tt>Return the X identifier for the visual for this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_visualsavailable"><strong>winfo_visualsavailable</strong></a>(self, includeids=False)</dt><dd><tt>Return a list of all visuals available for the screen<br>
of this widget.<br>
<br>
Each item in the list consists of a visual name (see winfo_visual), a<br>
depth and if includeids is true is given also the X identifier.</tt></dd></dl>
<dl><dt><a name="App-winfo_vrootheight"><strong>winfo_vrootheight</strong></a>(self)</dt><dd><tt>Return the height of the virtual root window associated with this<br>
widget in pixels. If there is no virtual root window return the<br>
height of the screen.</tt></dd></dl>
<dl><dt><a name="App-winfo_vrootwidth"><strong>winfo_vrootwidth</strong></a>(self)</dt><dd><tt>Return the width of the virtual root window associated with this<br>
widget in pixel. If there is no virtual root window return the<br>
width of the screen.</tt></dd></dl>
<dl><dt><a name="App-winfo_vrootx"><strong>winfo_vrootx</strong></a>(self)</dt><dd><tt>Return the x offset of the virtual root relative to the root<br>
window of the screen of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_vrooty"><strong>winfo_vrooty</strong></a>(self)</dt><dd><tt>Return the y offset of the virtual root relative to the root<br>
window of the screen of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_width"><strong>winfo_width</strong></a>(self)</dt><dd><tt>Return the width of this widget.</tt></dd></dl>
<dl><dt><a name="App-winfo_x"><strong>winfo_x</strong></a>(self)</dt><dd><tt>Return the x coordinate of the upper left corner of this widget<br>
in the parent.</tt></dd></dl>
<dl><dt><a name="App-winfo_y"><strong>winfo_y</strong></a>(self)</dt><dd><tt>Return the y coordinate of the upper left corner of this widget<br>
in the parent.</tt></dd></dl>
<hr>
Data descriptors inherited from <a href="tkinter.html#Misc">tkinter.Misc</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="tkinter.html#Wm">tkinter.Wm</a>:<br>
<dl><dt><a name="App-aspect"><strong>aspect</strong></a> = wm_aspect(self, minNumer=None, minDenom=None, maxNumer=None, maxDenom=None)</dt><dd><tt>Instruct the window manager to set the aspect ratio (width/height)<br>
of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple<br>
of the actual values if no argument is given.</tt></dd></dl>
<dl><dt><a name="App-attributes"><strong>attributes</strong></a> = wm_attributes(self, *args)</dt><dd><tt>This subcommand returns or sets platform specific attributes<br>
<br>
The first form returns a list of the platform specific flags and<br>
their values. The second form returns the value for the specific<br>
option. The third form sets one or more of the values. The values<br>
are as follows:<br>
<br>
On Windows, -disabled gets or sets whether the window is in a<br>
disabled state. -toolwindow gets or sets the style of the window<br>
to toolwindow (as defined in the MSDN). -topmost gets or sets<br>
whether this is a topmost window (displays above all other<br>
windows).<br>
<br>
On Macintosh, XXXXX<br>
<br>
On Unix, there are currently no special attribute values.</tt></dd></dl>
<dl><dt><a name="App-client"><strong>client</strong></a> = wm_client(self, name=None)</dt><dd><tt>Store NAME in WM_CLIENT_MACHINE property of this widget. Return<br>
current value.</tt></dd></dl>
<dl><dt><a name="App-colormapwindows"><strong>colormapwindows</strong></a> = wm_colormapwindows(self, *wlist)</dt><dd><tt>Store list of window names (WLIST) into WM_COLORMAPWINDOWS property<br>
of this widget. This list contains windows whose colormaps differ from their<br>
parents. Return current list of widgets if WLIST is empty.</tt></dd></dl>
<dl><dt><a name="App-command"><strong>command</strong></a> = wm_command(self, value=None)</dt><dd><tt>Store VALUE in WM_COMMAND property. It is the command<br>
which shall be used to invoke the application. Return current<br>
command if VALUE is None.</tt></dd></dl>
<dl><dt><a name="App-deiconify"><strong>deiconify</strong></a> = wm_deiconify(self)</dt><dd><tt>Deiconify this widget. If it was never mapped it will not be mapped.<br>
On Windows it will raise this widget and give it the focus.</tt></dd></dl>
<dl><dt><a name="App-focusmodel"><strong>focusmodel</strong></a> = wm_focusmodel(self, model=None)</dt><dd><tt>Set focus model to MODEL. "active" means that this widget will claim<br>
the focus itself, "passive" means that the window manager shall give<br>
the focus. Return current focus model if MODEL is None.</tt></dd></dl>
<dl><dt><a name="App-forget"><strong>forget</strong></a> = wm_forget(self, window)</dt><dd><tt>The window will be unmapped from the screen and will no longer<br>
be managed by wm. toplevel windows will be treated like frame<br>
windows once they are no longer managed by wm, however, the menu<br>
option configuration will be remembered and the menus will return<br>
once the widget is managed again.</tt></dd></dl>
<dl><dt><a name="App-frame"><strong>frame</strong></a> = wm_frame(self)</dt><dd><tt>Return identifier for decorative frame of this widget if present.</tt></dd></dl>
<dl><dt><a name="App-geometry"><strong>geometry</strong></a> = wm_geometry(self, newGeometry=None)</dt><dd><tt>Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return<br>
current value if None is given.</tt></dd></dl>
<dl><dt><a name="App-grid"><strong>grid</strong></a> = wm_grid(self, baseWidth=None, baseHeight=None, widthInc=None, heightInc=None)</dt><dd><tt>Instruct the window manager that this widget shall only be<br>
resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and<br>
height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the<br>
number of grid units requested in Tk_GeometryRequest.</tt></dd></dl>
<dl><dt><a name="App-group"><strong>group</strong></a> = wm_group(self, pathName=None)</dt><dd><tt>Set the group leader widgets for related widgets to PATHNAME. Return<br>
the group leader of this widget if None is given.</tt></dd></dl>
<dl><dt><a name="App-iconbitmap"><strong>iconbitmap</strong></a> = wm_iconbitmap(self, bitmap=None, default=None)</dt><dd><tt>Set bitmap for the iconified widget to BITMAP. Return<br>
the bitmap if None is given.<br>
<br>
Under Windows, the DEFAULT parameter can be used to set the icon<br>
for the widget and any descendents that don't have an icon set<br>
explicitly. DEFAULT can be the relative path to a .ico file<br>
(example: root.<a href="#App-iconbitmap">iconbitmap</a>(default='myicon.ico') ). See <a href="tkinter.html#Tk">Tk</a><br>
documentation for more information.</tt></dd></dl>
<dl><dt><a name="App-iconify"><strong>iconify</strong></a> = wm_iconify(self)</dt><dd><tt>Display widget as icon.</tt></dd></dl>
<dl><dt><a name="App-iconmask"><strong>iconmask</strong></a> = wm_iconmask(self, bitmap=None)</dt><dd><tt>Set mask for the icon bitmap of this widget. Return the<br>
mask if None is given.</tt></dd></dl>
<dl><dt><a name="App-iconname"><strong>iconname</strong></a> = wm_iconname(self, newName=None)</dt><dd><tt>Set the name of the icon for this widget. Return the name if<br>
None is given.</tt></dd></dl>
<dl><dt><a name="App-iconphoto"><strong>iconphoto</strong></a> = wm_iconphoto(self, default=False, *args)</dt><dd><tt>Sets the titlebar icon for this window based on the named photo<br>
images passed through args. If default is True, this is applied to<br>
all future created toplevels as well.<br>
<br>
The data in the images is taken as a snapshot at the time of<br>
invocation. If the images are later changed, this is not reflected<br>
to the titlebar icons. Multiple images are accepted to allow<br>
different images sizes to be provided. The window manager may scale<br>
provided icons to an appropriate size.<br>
<br>
On Windows, the images are packed into a Windows icon structure.<br>
This will override an icon specified to wm_iconbitmap, and vice<br>
versa.<br>
<br>
On X, the images are arranged into the _NET_WM_ICON X property,<br>
which most modern window managers support. An icon specified by<br>
wm_iconbitmap may exist simultaneously.<br>
<br>
On Macintosh, this currently does nothing.</tt></dd></dl>
<dl><dt><a name="App-iconposition"><strong>iconposition</strong></a> = wm_iconposition(self, x=None, y=None)</dt><dd><tt>Set the position of the icon of this widget to X and Y. Return<br>
a tuple of the current values of X and X if None is given.</tt></dd></dl>
<dl><dt><a name="App-iconwindow"><strong>iconwindow</strong></a> = wm_iconwindow(self, pathName=None)</dt><dd><tt>Set widget PATHNAME to be displayed instead of icon. Return the current<br>
value if None is given.</tt></dd></dl>
<dl><dt><a name="App-manage"><strong>manage</strong></a> = wm_manage(self, widget)</dt><dd><tt>The widget specified will become a stand alone top-level window.<br>
The window will be decorated with the window managers title bar,<br>
etc.</tt></dd></dl>
<dl><dt><a name="App-maxsize"><strong>maxsize</strong></a> = wm_maxsize(self, width=None, height=None)</dt><dd><tt>Set max WIDTH and HEIGHT for this widget. If the window is gridded<br>
the values are given in grid units. Return the current values if None<br>
is given.</tt></dd></dl>
<dl><dt><a name="App-minsize"><strong>minsize</strong></a> = wm_minsize(self, width=None, height=None)</dt><dd><tt>Set min WIDTH and HEIGHT for this widget. If the window is gridded<br>
the values are given in grid units. Return the current values if None<br>
is given.</tt></dd></dl>
<dl><dt><a name="App-overrideredirect"><strong>overrideredirect</strong></a> = wm_overrideredirect(self, boolean=None)</dt><dd><tt>Instruct the window manager to ignore this widget<br>
if BOOLEAN is given with 1. Return the current value if None<br>
is given.</tt></dd></dl>
<dl><dt><a name="App-positionfrom"><strong>positionfrom</strong></a> = wm_positionfrom(self, who=None)</dt><dd><tt>Instruct the window manager that the position of this widget shall<br>
be defined by the user if WHO is "user", and by its own policy if WHO is<br>
"program".</tt></dd></dl>
<dl><dt><a name="App-protocol"><strong>protocol</strong></a> = wm_protocol(self, name=None, func=None)</dt><dd><tt>Bind function FUNC to command NAME for this widget.<br>
Return the function bound to NAME if None is given. NAME could be<br>
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".</tt></dd></dl>
<dl><dt><a name="App-resizable"><strong>resizable</strong></a> = wm_resizable(self, width=None, height=None)</dt><dd><tt>Instruct the window manager whether this width can be resized<br>
in WIDTH or HEIGHT. Both values are boolean values.</tt></dd></dl>
<dl><dt><a name="App-sizefrom"><strong>sizefrom</strong></a> = wm_sizefrom(self, who=None)</dt><dd><tt>Instruct the window manager that the size of this widget shall<br>
be defined by the user if WHO is "user", and by its own policy if WHO is<br>
"program".</tt></dd></dl>
<dl><dt><a name="App-state"><strong>state</strong></a> = wm_state(self, newstate=None)</dt><dd><tt>Query or set the state of this widget as one of normal, icon,<br>
iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).</tt></dd></dl>
<dl><dt><a name="App-title"><strong>title</strong></a> = wm_title(self, string=None)</dt><dd><tt>Set the title of this widget.</tt></dd></dl>
<dl><dt><a name="App-transient"><strong>transient</strong></a> = wm_transient(self, master=None)</dt><dd><tt>Instruct the window manager that this widget is transient<br>
with regard to widget MASTER.</tt></dd></dl>
<dl><dt><a name="App-withdraw"><strong>withdraw</strong></a> = wm_withdraw(self)</dt><dd><tt>Withdraw this widget from the screen such that it is unmapped<br>
and forgotten by the window manager. Re-draw it with wm_deiconify.</tt></dd></dl>
<dl><dt><a name="App-wm_aspect"><strong>wm_aspect</strong></a>(self, minNumer=None, minDenom=None, maxNumer=None, maxDenom=None)</dt><dd><tt>Instruct the window manager to set the aspect ratio (width/height)<br>
of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple<br>
of the actual values if no argument is given.</tt></dd></dl>
<dl><dt><a name="App-wm_attributes"><strong>wm_attributes</strong></a>(self, *args)</dt><dd><tt>This subcommand returns or sets platform specific attributes<br>
<br>
The first form returns a list of the platform specific flags and<br>
their values. The second form returns the value for the specific<br>
option. The third form sets one or more of the values. The values<br>
are as follows:<br>
<br>
On Windows, -disabled gets or sets whether the window is in a<br>
disabled state. -toolwindow gets or sets the style of the window<br>
to toolwindow (as defined in the MSDN). -topmost gets or sets<br>
whether this is a topmost window (displays above all other<br>
windows).<br>
<br>
On Macintosh, XXXXX<br>
<br>
On Unix, there are currently no special attribute values.</tt></dd></dl>
<dl><dt><a name="App-wm_client"><strong>wm_client</strong></a>(self, name=None)</dt><dd><tt>Store NAME in WM_CLIENT_MACHINE property of this widget. Return<br>
current value.</tt></dd></dl>
<dl><dt><a name="App-wm_colormapwindows"><strong>wm_colormapwindows</strong></a>(self, *wlist)</dt><dd><tt>Store list of window names (WLIST) into WM_COLORMAPWINDOWS property<br>
of this widget. This list contains windows whose colormaps differ from their<br>
parents. Return current list of widgets if WLIST is empty.</tt></dd></dl>
<dl><dt><a name="App-wm_command"><strong>wm_command</strong></a>(self, value=None)</dt><dd><tt>Store VALUE in WM_COMMAND property. It is the command<br>
which shall be used to invoke the application. Return current<br>
command if VALUE is None.</tt></dd></dl>
<dl><dt><a name="App-wm_deiconify"><strong>wm_deiconify</strong></a>(self)</dt><dd><tt>Deiconify this widget. If it was never mapped it will not be mapped.<br>
On Windows it will raise this widget and give it the focus.</tt></dd></dl>
<dl><dt><a name="App-wm_focusmodel"><strong>wm_focusmodel</strong></a>(self, model=None)</dt><dd><tt>Set focus model to MODEL. "active" means that this widget will claim<br>
the focus itself, "passive" means that the window manager shall give<br>
the focus. Return current focus model if MODEL is None.</tt></dd></dl>
<dl><dt><a name="App-wm_forget"><strong>wm_forget</strong></a>(self, window)</dt><dd><tt>The window will be unmapped from the screen and will no longer<br>
be managed by wm. toplevel windows will be treated like frame<br>
windows once they are no longer managed by wm, however, the menu<br>
option configuration will be remembered and the menus will return<br>
once the widget is managed again.</tt></dd></dl>
<dl><dt><a name="App-wm_frame"><strong>wm_frame</strong></a>(self)</dt><dd><tt>Return identifier for decorative frame of this widget if present.</tt></dd></dl>
<dl><dt><a name="App-wm_geometry"><strong>wm_geometry</strong></a>(self, newGeometry=None)</dt><dd><tt>Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return<br>
current value if None is given.</tt></dd></dl>
<dl><dt><a name="App-wm_grid"><strong>wm_grid</strong></a>(self, baseWidth=None, baseHeight=None, widthInc=None, heightInc=None)</dt><dd><tt>Instruct the window manager that this widget shall only be<br>
resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and<br>
height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the<br>
number of grid units requested in Tk_GeometryRequest.</tt></dd></dl>
<dl><dt><a name="App-wm_group"><strong>wm_group</strong></a>(self, pathName=None)</dt><dd><tt>Set the group leader widgets for related widgets to PATHNAME. Return<br>
the group leader of this widget if None is given.</tt></dd></dl>
<dl><dt><a name="App-wm_iconbitmap"><strong>wm_iconbitmap</strong></a>(self, bitmap=None, default=None)</dt><dd><tt>Set bitmap for the iconified widget to BITMAP. Return<br>
the bitmap if None is given.<br>
<br>
Under Windows, the DEFAULT parameter can be used to set the icon<br>
for the widget and any descendents that don't have an icon set<br>
explicitly. DEFAULT can be the relative path to a .ico file<br>
(example: root.<a href="#App-iconbitmap">iconbitmap</a>(default='myicon.ico') ). See <a href="tkinter.html#Tk">Tk</a><br>
documentation for more information.</tt></dd></dl>
<dl><dt><a name="App-wm_iconify"><strong>wm_iconify</strong></a>(self)</dt><dd><tt>Display widget as icon.</tt></dd></dl>
<dl><dt><a name="App-wm_iconmask"><strong>wm_iconmask</strong></a>(self, bitmap=None)</dt><dd><tt>Set mask for the icon bitmap of this widget. Return the<br>
mask if None is given.</tt></dd></dl>
<dl><dt><a name="App-wm_iconname"><strong>wm_iconname</strong></a>(self, newName=None)</dt><dd><tt>Set the name of the icon for this widget. Return the name if<br>
None is given.</tt></dd></dl>
<dl><dt><a name="App-wm_iconphoto"><strong>wm_iconphoto</strong></a>(self, default=False, *args)</dt><dd><tt>Sets the titlebar icon for this window based on the named photo<br>
images passed through args. If default is True, this is applied to<br>
all future created toplevels as well.<br>
<br>
The data in the images is taken as a snapshot at the time of<br>
invocation. If the images are later changed, this is not reflected<br>
to the titlebar icons. Multiple images are accepted to allow<br>
different images sizes to be provided. The window manager may scale<br>
provided icons to an appropriate size.<br>
<br>
On Windows, the images are packed into a Windows icon structure.<br>
This will override an icon specified to wm_iconbitmap, and vice<br>
versa.<br>
<br>
On X, the images are arranged into the _NET_WM_ICON X property,<br>
which most modern window managers support. An icon specified by<br>
wm_iconbitmap may exist simultaneously.<br>
<br>
On Macintosh, this currently does nothing.</tt></dd></dl>
<dl><dt><a name="App-wm_iconposition"><strong>wm_iconposition</strong></a>(self, x=None, y=None)</dt><dd><tt>Set the position of the icon of this widget to X and Y. Return<br>
a tuple of the current values of X and X if None is given.</tt></dd></dl>
<dl><dt><a name="App-wm_iconwindow"><strong>wm_iconwindow</strong></a>(self, pathName=None)</dt><dd><tt>Set widget PATHNAME to be displayed instead of icon. Return the current<br>
value if None is given.</tt></dd></dl>
<dl><dt><a name="App-wm_manage"><strong>wm_manage</strong></a>(self, widget)</dt><dd><tt>The widget specified will become a stand alone top-level window.<br>
The window will be decorated with the window managers title bar,<br>
etc.</tt></dd></dl>
<dl><dt><a name="App-wm_maxsize"><strong>wm_maxsize</strong></a>(self, width=None, height=None)</dt><dd><tt>Set max WIDTH and HEIGHT for this widget. If the window is gridded<br>
the values are given in grid units. Return the current values if None<br>
is given.</tt></dd></dl>
<dl><dt><a name="App-wm_minsize"><strong>wm_minsize</strong></a>(self, width=None, height=None)</dt><dd><tt>Set min WIDTH and HEIGHT for this widget. If the window is gridded<br>
the values are given in grid units. Return the current values if None<br>
is given.</tt></dd></dl>
<dl><dt><a name="App-wm_overrideredirect"><strong>wm_overrideredirect</strong></a>(self, boolean=None)</dt><dd><tt>Instruct the window manager to ignore this widget<br>
if BOOLEAN is given with 1. Return the current value if None<br>
is given.</tt></dd></dl>
<dl><dt><a name="App-wm_positionfrom"><strong>wm_positionfrom</strong></a>(self, who=None)</dt><dd><tt>Instruct the window manager that the position of this widget shall<br>
be defined by the user if WHO is "user", and by its own policy if WHO is<br>
"program".</tt></dd></dl>
<dl><dt><a name="App-wm_protocol"><strong>wm_protocol</strong></a>(self, name=None, func=None)</dt><dd><tt>Bind function FUNC to command NAME for this widget.<br>
Return the function bound to NAME if None is given. NAME could be<br>
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".</tt></dd></dl>
<dl><dt><a name="App-wm_resizable"><strong>wm_resizable</strong></a>(self, width=None, height=None)</dt><dd><tt>Instruct the window manager whether this width can be resized<br>
in WIDTH or HEIGHT. Both values are boolean values.</tt></dd></dl>
<dl><dt><a name="App-wm_sizefrom"><strong>wm_sizefrom</strong></a>(self, who=None)</dt><dd><tt>Instruct the window manager that the size of this widget shall<br>
be defined by the user if WHO is "user", and by its own policy if WHO is<br>
"program".</tt></dd></dl>
<dl><dt><a name="App-wm_state"><strong>wm_state</strong></a>(self, newstate=None)</dt><dd><tt>Query or set the state of this widget as one of normal, icon,<br>
iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).</tt></dd></dl>
<dl><dt><a name="App-wm_title"><strong>wm_title</strong></a>(self, string=None)</dt><dd><tt>Set the title of this widget.</tt></dd></dl>
<dl><dt><a name="App-wm_transient"><strong>wm_transient</strong></a>(self, master=None)</dt><dd><tt>Instruct the window manager that this widget is transient<br>
with regard to widget MASTER.</tt></dd></dl>
<dl><dt><a name="App-wm_withdraw"><strong>wm_withdraw</strong></a>(self)</dt><dd><tt>Withdraw this widget from the screen such that it is unmapped<br>
and forgotten by the window manager. Re-draw it with wm_deiconify.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="FigSizer">class <strong>FigSizer</strong></a>(<a href="tkinter.html#Toplevel">tkinter.Toplevel</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Окно, которое открывается для выбора размера фигуры<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="App.html#FigSizer">FigSizer</a></dd>
<dd><a href="tkinter.html#Toplevel">tkinter.Toplevel</a></dd>
<dd><a href="tkinter.html#BaseWidget">tkinter.BaseWidget</a></dd>
<dd><a href="tkinter.html#Misc">tkinter.Misc</a></dd>
<dd><a href="tkinter.html#Wm">tkinter.Wm</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="FigSizer-__init__"><strong>__init__</strong></a>(self, default_size=10)</dt><dd><tt>Construct a toplevel widget with the parent MASTER.<br>
<br>
Valid resource names: background, bd, bg, borderwidth, class,<br>
colormap, container, cursor, height, highlightbackground,<br>
highlightcolor, highlightthickness, menu, relief, screen, takefocus,<br>
use, visual, width.</tt></dd></dl>
<hr>
Methods inherited from <a href="tkinter.html#BaseWidget">tkinter.BaseWidget</a>:<br>
<dl><dt><a name="FigSizer-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Destroy this and all descendants widgets.</tt></dd></dl>
<hr>
Methods inherited from <a href="tkinter.html#Misc">tkinter.Misc</a>:<br>
<dl><dt><a name="FigSizer-__getitem__"><strong>__getitem__</strong></a> = cget(self, key)</dt><dd><tt>Return the resource value for a KEY given as string.</tt></dd></dl>
<dl><dt><a name="FigSizer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
<dl><dt><a name="FigSizer-__setitem__"><strong>__setitem__</strong></a>(self, key, value)</dt></dl>
<dl><dt><a name="FigSizer-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return the window path name of this widget.</tt></dd></dl>
<dl><dt><a name="FigSizer-after"><strong>after</strong></a>(self, ms, func=None, *args)</dt><dd><tt>Call function once after given time.<br>
<br>
MS specifies the time in milliseconds. FUNC gives the<br>
function which shall be called. Additional parameters<br>
are given as parameters to the function call. Return<br>
identifier to cancel scheduling with after_cancel.</tt></dd></dl>
<dl><dt><a name="FigSizer-after_cancel"><strong>after_cancel</strong></a>(self, id)</dt><dd><tt>Cancel scheduling of function identified with ID.<br>
<br>
Identifier returned by after or after_idle must be<br>
given as first parameter.</tt></dd></dl>
<dl><dt><a name="FigSizer-after_idle"><strong>after_idle</strong></a>(self, func, *args)</dt><dd><tt>Call FUNC once if the Tcl main loop has no event to<br>
process.<br>
<br>
Return an identifier to cancel the scheduling with<br>
after_cancel.</tt></dd></dl>