File: class-gtkwidget.html

package info (click to toggle)
python-gtk2-doc 2.5.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,304 kB
  • ctags: 3,741
  • sloc: makefile: 38
file content (1464 lines) | stat: -rw-r--r-- 411,321 bytes parent folder | download
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Widget</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkviewport.html" title="gtk.Viewport"><link rel="next" href="class-gtkwindow.html" title="gtk.Window"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.Widget</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkviewport.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkwindow.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkwidget"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.Widget</h2><p>gtk.Widget &#8212; the base class for all <tt class="literal">PyGTK</tt>
widgets</p></div><div class="refsect1" lang="en"><a name="id3620824"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Widget</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a></span></span>):
<code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-allocation" title="gtk.Widget.get_allocation">get_allocation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-check-threshold" title="gtk.Widget.drag_check_threshold">drag_check_threshold</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>start_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>start_y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>current_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>current_y</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-get-data" title="gtk.Widget.drag_get_data">drag_get_data</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>context</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>time</tt></b></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-highlight" title="gtk.Widget.drag_highlight">drag_highlight</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-unhighlight" title="gtk.Widget.drag_unhighlight">drag_unhighlight</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-set" title="gtk.Widget.drag_dest_set">drag_dest_set</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>flags</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>actions</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-set-proxy" title="gtk.Widget.drag_dest_set_proxy">drag_dest_set_proxy</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>proxy_window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>protocol</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>use_coordinates</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-unset" title="gtk.Widget.drag_dest_unset">drag_dest_unset</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-find-target" title="gtk.Widget.drag_dest_find_target">drag_dest_find_target</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>context</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target_list</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-get-target-list" title="gtk.Widget.drag_dest_get_target_list">drag_dest_get_target_list</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-set-target-list" title="gtk.Widget.drag_dest_set_target_list">drag_dest_set_target_list</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>target_list</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-add-image-targets" title="gtk.Widget.drag_dest_add_image_targets">drag_dest_add_image_targets</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-add-text-targets" title="gtk.Widget.drag_dest_add_text_targets">drag_dest_add_text_targets</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-dest-add-uri-targets" title="gtk.Widget.drag_dest_add_uri_targets">drag_dest_add_uri_targets</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-source-set" title="gtk.Widget.drag_source_set">drag_source_set</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>start_button_mask</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>actions</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-source-unset" title="gtk.Widget.drag_source_unset">drag_source_unset</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-source-set-icon" title="gtk.Widget.drag_source_set_icon">drag_source_set_icon</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>colormap</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>pixmap</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>mask</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-source-set-icon-pixbuf" title="gtk.Widget.drag_source_set_icon_pixbuf">drag_source_set_icon_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>pixbuf</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-source-set-icon-stock" title="gtk.Widget.drag_source_set_icon_stock">drag_source_set_icon_stock</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-source-add-text-targets" title="gtk.Widget.drag_source_add_text_targets">drag_source_add_text_targets</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--drag-begin" title="gtk.Widget.drag_begin">drag_begin</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>actions</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>button</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>event</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--grab-add" title="gtk.Widget.grab_add">grab_add</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--grab-remove" title="gtk.Widget.grab_remove">grab_remove</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--rc-get-style" title="gtk.Widget.rc_get_style">rc_get_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--selection-owner-set" title="gtk.Widget.selection_owner_set">selection_owner_set</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>time</tt></b></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--selection-add-target" title="gtk.Widget.selection_add_target">selection_add_target</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>info</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--selection-add-targets" title="gtk.Widget.selection_add_targets">selection_add_targets</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--selection-clear-targets" title="gtk.Widget.selection_clear_targets">selection_clear_targets</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--selection-convert" title="gtk.Widget.selection_convert">selection_convert</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>time</tt></b></span><span class="initializer">=0L</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--selection-remove-all" title="gtk.Widget.selection_remove_all">selection_remove_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--destroy" title="gtk.Widget.destroy">destroy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--unparent" title="gtk.Widget.unparent">unparent</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--show" title="gtk.Widget.show">show</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--show-now" title="gtk.Widget.show_now">show_now</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--hide" title="gtk.Widget.hide">hide</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--show-all" title="gtk.Widget.show_all">show_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--hide-all" title="gtk.Widget.hide_all">hide_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-no-show-all" title="gtk.Widget.set_no_show_all">set_no_show_all</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>no_show_all</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-no-show-all" title="gtk.Widget.get_no_show_all">get_no_show_all</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--map" title="gtk.Widget.map">map</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--unmap" title="gtk.Widget.unmap">unmap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--realize" title="gtk.Widget.realize">realize</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--unrealize" title="gtk.Widget.unrealize">unrealize</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--queue-draw" title="gtk.Widget.queue_draw">queue_draw</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--queue-draw-area" title="gtk.Widget.queue_draw_area">queue_draw_area</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--queue-resize" title="gtk.Widget.queue_resize">queue_resize</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--queue-resize-no-redraw" title="gtk.Widget.queue_resize_no_redraw">queue_resize_no_redraw</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--size-request" title="gtk.Widget.size_request">size_request</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--size-allocate" title="gtk.Widget.size_allocate">size_allocate</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>allocation</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-child-requisition" title="gtk.Widget.get_child_requisition">get_child_requisition</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>requisition</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--add-accelerator" title="gtk.Widget.add_accelerator">add_accelerator</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_signal</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_group</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_key</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_mods</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_flags</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--remove-accelerator" title="gtk.Widget.remove_accelerator">remove_accelerator</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_group</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_key</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_mods</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-accel-path" title="gtk.Widget.set_accel_path">set_accel_path</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_path</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_group</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--can-activate-accel" title="gtk.Widget.can_activate_accel">can_activate_accel</a></span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>signal_id</tt></i></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--mnemonic-activate" title="gtk.Widget.mnemonic_activate">mnemonic_activate</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>group_cycling</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--event" title="gtk.Widget.event">event</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>event</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--send-expose" title="gtk.Widget.send_expose">send_expose</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>event</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--activate" title="gtk.Widget.activate">activate</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-scroll-adjustments" title="gtk.Widget.set_scroll_adjustments">set_scroll_adjustments</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>hadjustment</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>vadjustment</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--reparent" title="gtk.Widget.reparent">reparent</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>new_parent</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--intersect" title="gtk.Widget.intersect">intersect</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--freeze-child-notify" title="gtk.Widget.freeze_child_notify">freeze_child_notify</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--child-notify" title="gtk.Widget.child_notify">child_notify</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>child_property</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--thaw-child-notify" title="gtk.Widget.thaw_child_notify">thaw_child_notify</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--is-focus" title="gtk.Widget.is_focus">is_focus</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--grab-focus" title="gtk.Widget.grab_focus">grab_focus</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--grab-default" title="gtk.Widget.grab_default">grab_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-name" title="gtk.Widget.set_name">set_name</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>name</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-name" title="gtk.Widget.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-state" title="gtk.Widget.set_state">set_state</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-sensitive" title="gtk.Widget.set_sensitive">set_sensitive</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>sensitive</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-app-paintable" title="gtk.Widget.set_app_paintable">set_app_paintable</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>app_paintable</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-double-buffered" title="gtk.Widget.set_double_buffered">set_double_buffered</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>double_buffered</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-redraw-on-allocate" title="gtk.Widget.set_redraw_on_allocate">set_redraw_on_allocate</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>redraw_on_allocate</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-parent" title="gtk.Widget.set_parent">set_parent</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>parent</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-parent-window" title="gtk.Widget.set_parent_window">set_parent_window</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>parent_window</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-child-visible" title="gtk.Widget.set_child_visible">set_child_visible</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>is_visible</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-child-visible" title="gtk.Widget.get_child_visible">get_child_visible</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-parent" title="gtk.Widget.get_parent">get_parent</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-parent-window" title="gtk.Widget.get_parent_window">get_parent_window</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--child-focus" title="gtk.Widget.child_focus">child_focus</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>direction</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-size-request" title="gtk.Widget.set_size_request">set_size_request</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-size-request" title="gtk.Widget.get_size_request">get_size_request</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-events" title="gtk.Widget.set_events">set_events</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>events</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--add-events" title="gtk.Widget.add_events">add_events</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>events</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-extension-events" title="gtk.Widget.set_extension_events">set_extension_events</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>mode</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-extension-events" title="gtk.Widget.get_extension_events">get_extension_events</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-toplevel" title="gtk.Widget.get_toplevel">get_toplevel</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-ancestor" title="gtk.Widget.get_ancestor">get_ancestor</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget_type</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-colormap" title="gtk.Widget.get_colormap">get_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-visual" title="gtk.Widget.get_visual">get_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-screen" title="gtk.Widget.get_screen">get_screen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--has-screen" title="gtk.Widget.has_screen">has_screen</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-display" title="gtk.Widget.get_display">get_display</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-root-window" title="gtk.Widget.get_root_window">get_root_window</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-settings" title="gtk.Widget.get_settings">get_settings</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-clipboard" title="gtk.Widget.get_clipboard">get_clipboard</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-colormap" title="gtk.Widget.set_colormap">set_colormap</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>colormap</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-events" title="gtk.Widget.get_events">get_events</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-pointer" title="gtk.Widget.get_pointer">get_pointer</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--is-ancestor" title="gtk.Widget.is_ancestor">is_ancestor</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>ancestor</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--translate-coordinates" title="gtk.Widget.translate_coordinates">translate_coordinates</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>dest_widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>src_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>src_y</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--hide-on-delete" title="gtk.Widget.hide_on_delete">hide_on_delete</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-style" title="gtk.Widget.set_style">set_style</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>style</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--ensure-style" title="gtk.Widget.ensure_style">ensure_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-style" title="gtk.Widget.get_style">get_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--modify-style" title="gtk.Widget.modify_style">modify_style</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>style</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-modifier-style" title="gtk.Widget.get_modifier_style">get_modifier_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--modify-fg" title="gtk.Widget.modify_fg">modify_fg</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--modify-bg" title="gtk.Widget.modify_bg">modify_bg</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--modify-text" title="gtk.Widget.modify_text">modify_text</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--modify-base" title="gtk.Widget.modify_base">modify_base</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--modify-font" title="gtk.Widget.modify_font">modify_font</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>font_desc</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--create-pango-context" title="gtk.Widget.create_pango_context">create_pango_context</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-pango-context" title="gtk.Widget.get_pango_context">get_pango_context</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--create-pango-layout" title="gtk.Widget.create_pango_layout">create_pango_layout</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>text</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--render-icon" title="gtk.Widget.render_icon">render_icon</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>size</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-composite-name" title="gtk.Widget.set_composite_name">set_composite_name</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>name</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-composite-name" title="gtk.Widget.get_composite_name">get_composite_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--reset-rc-styles" title="gtk.Widget.reset_rc_styles">reset_rc_styles</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--style-get-property" title="gtk.Widget.style_get_property">style_get_property</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>property_name</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--set-direction" title="gtk.Widget.set_direction">set_direction</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>dir</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--get-direction" title="gtk.Widget.get_direction">get_direction</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--shape-combine-mask" title="gtk.Widget.shape_combine_mask">shape_combine_mask</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>shape_mask</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>offset_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>offset_y</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--reset-shapes" title="gtk.Widget.reset_shapes">reset_shapes</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--path" title="gtk.Widget.path">path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--class-path" title="gtk.Widget.class_path">class_path</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--list-mnemonic-labels" title="gtk.Widget.list_mnemonic_labels">list_mnemonic_labels</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--add-mnemonic-label" title="gtk.Widget.add_mnemonic_label">add_mnemonic_label</a></span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>label</tt></i></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--remove-mnemonic-label" title="gtk.Widget.remove_mnemonic_label">remove_mnemonic_label</a></span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>label</tt></i></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#method-gtkwidget--menu-get-for-attach-widget" title="gtk.Widget.menu_get_for_attach_widget">menu_get_for_attach_widget</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
<span class="bold"><b>Functions</b></span>

<code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-push-colormap" title="gtk.widget_push_colormap">gtk.widget_push_colormap</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>cmap</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-push-composite-child" title="gtk.widget_push_composite_child">gtk.widget_push_composite_child</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-pop-composite-child" title="gtk.widget_pop_composite_child">gtk.widget_pop_composite_child</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-pop-colormap" title="gtk.widget_pop_colormap">gtk.widget_pop_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-get-default-style" title="gtk.widget_get_default_style">gtk.widget_get_default_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-set-default-colormap" title="gtk.widget_set_default_colormap">gtk.widget_set_default_colormap</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>colormap</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-get-default-colormap" title="gtk.widget_get_default_colormap">gtk.widget_get_default_colormap</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-get-default-visual" title="gtk.widget_get_default_visual">gtk.widget_get_default_visual</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-set-default-direction" title="gtk.widget_set_default_direction">gtk.widget_set_default_direction</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>dir</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-get-default-direction" title="gtk.widget_get_default_direction">gtk.widget_get_default_direction</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-list-style-properties" title="gtk.widget_list_style_properties">gtk.widget_list_style_properties</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>cmap</tt></b></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a href="class-gtkwidget.html#function-gtk--widget-class-install-style-property" title="gtk.widget_class_install_style_property">gtk.widget_class_install_style_property</a></span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>pspec</tt></b></span></span>)</code></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3623818"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
  +-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
    +-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3623848"></a><h2>Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"app-paintable"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the application will paint
directly on the widget</td></tr><tr valign="top"><td valign="top">"can-default"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget can be the
default widget</td></tr><tr valign="top"><td valign="top">"can-focus"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget can accept the
input focus</td></tr><tr valign="top"><td valign="top">"composite-child"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget is part of a
composite widget</td></tr><tr valign="top"><td valign="top">"events"</td><td valign="top">Read-Write</td><td valign="top">The event mask that decides what kind of <a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a> this
widget gets.</td></tr><tr valign="top"><td valign="top">"extension-events"</td><td valign="top">Read-Write</td><td valign="top">The mask that decides what kind of extension events
this widget gets.</td></tr><tr valign="top"><td valign="top">"has-default"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget is the default
widget</td></tr><tr valign="top"><td valign="top">"has-focus"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget has the input
focus</td></tr><tr valign="top"><td valign="top">"height-request"</td><td valign="top">Read-Write</td><td valign="top">The height request of the widget, or -1 if natural
request should be used.</td></tr><tr valign="top"><td valign="top">"is-focus"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget is the focus
widget within the toplevel</td></tr><tr valign="top"><td valign="top">"name"</td><td valign="top">Read-Write</td><td valign="top">The name of the widget</td></tr><tr valign="top"><td valign="top">"no-show-all"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt><a href="class-gtkwidget.html#method-gtkwidget--show-all" title="gtk.Widget.show_all"><tt class="methodname">show_all</tt>()</a>
should not affect this widget. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"parent"</td><td valign="top">Read-Write</td><td valign="top">The parent widget of this widget. Must be a <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>
widget.</td></tr><tr valign="top"><td valign="top">"receives-default"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget will receive the
default action when it is focused.</td></tr><tr valign="top"><td valign="top">"sensitive"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget responds to
input</td></tr><tr valign="top"><td valign="top">"style"</td><td valign="top">Read-Write</td><td valign="top">The style of the widget, which contains information
about how it will look (colors etc).</td></tr><tr valign="top"><td valign="top">"visible"</td><td valign="top">Read-Write</td><td valign="top">If <tt class="literal">TRUE</tt>, the widget is
visible</td></tr><tr valign="top"><td valign="top">"width-request"</td><td valign="top">Read-Write</td><td valign="top">The width request of the widget, or -1 if natural
request should be used.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3624288"></a><h2>Style Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"cursor-aspect-ratio"</td><td valign="top">Read</td><td valign="top">The aspect ratio with which to draw the insertion
cursor</td></tr><tr valign="top"><td valign="top">"cursor-color"</td><td valign="top">Read</td><td valign="top">The <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> with
which to draw insertion cursor</td></tr><tr valign="top"><td valign="top">"focus-line-pattern"</td><td valign="top">Read-Write</td><td valign="top">The dash pattern used to draw the focus
indicator.</td></tr><tr valign="top"><td valign="top">"focus-line-width"</td><td valign="top">Read-Write</td><td valign="top">The width, in pixels, of the focus indicator
line.</td></tr><tr valign="top"><td valign="top">"focus-padding"</td><td valign="top">Read-Write</td><td valign="top">The width, in pixels, between the focus indicator and
the widget 'box'.</td></tr><tr valign="top"><td valign="top">"interior-focus"</td><td valign="top">Read</td><td valign="top">If <tt class="literal">TRUE</tt>, draw the focus indicator
inside widgets.</td></tr><tr valign="top"><td valign="top">"secondary-cursor-color"</td><td valign="top">Read</td><td valign="top">The <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> with
which to draw the secondary insertion cursor when editing mixed
right-to-left and left-to-right text.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3624486"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"allocation"</td><td valign="top">Read-Write</td><td valign="top">The <a href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><tt class="classname">gtk.gdk.Rectangle</tt></a>
specifying the widget's space allocation. This attribute is writeable in
PyGTK 2.4.</td></tr><tr valign="top"><td valign="top">"name"</td><td valign="top">Read</td><td valign="top">The name of the widget</td></tr><tr valign="top"><td valign="top">"parent"</td><td valign="top">Read</td><td valign="top">The parent widget of this widget. Must be a <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>
widget.</td></tr><tr valign="top"><td valign="top">"saved_state"</td><td valign="top">Read</td><td valign="top">The widget's saved state.</td></tr><tr valign="top"><td valign="top">"state"</td><td valign="top">Read</td><td valign="top">The widget state: <tt class="literal">gtk.STATE_NORMAL</tt>,
<tt class="literal">gtk.STATE_ACTIVE</tt>, <tt class="literal">gtk.STATE_PRELIGHT</tt>,
<tt class="literal">gtk.STATE_SELECTED</tt> or
<tt class="literal">gtk.STATE_INSENSITIVE</tt></td></tr><tr valign="top"><td valign="top">"style"</td><td valign="top">Read</td><td valign="top">The style of the widget.</td></tr><tr valign="top"><td valign="top">"window"</td><td valign="top">Read-Write</td><td valign="top">The <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> used
by the widget. This attribute is writeable in PyGTK 2.4.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3624706"></a><h2>Signal Prototypes</h2><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--accel-closures-changed" title='The "accel-closures-changed" gtk.Widget Signal'>accel-closures-changed</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--button-press-event" title='The "button-press-event" gtk.Widget Signal'>button-press-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--button-release-event" title='The "button-release-event" gtk.Widget Signal'>button-release-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>signal_id</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--can-activate-accel" title='The "can-activate-accel" gtk.Widget Signal'>can-activate-accel</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--child-notify" title='The "child-notify" gtk.Widget Signal'>child-notify</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>child_property</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--client-event" title='The "client-event" gtk.Widget Signal'>client-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--configure-event" title='The "configure-event" gtk.Widget Signal'>configure-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--delete-event" title='The "delete-event" gtk.Widget Signal'>delete-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--destroy-event" title='The "destroy-event" gtk.Widget Signal'>destroy-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--direction-changed" title='The "direction-changed" gtk.Widget Signal'>direction-changed</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>direction</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-begin" title='The "drag-begin" gtk.Widget Signal'>drag-begin</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-data-delete" title='The "drag-data-delete" gtk.Widget Signal'>drag-data-delete</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-data-get" title='The "drag-data-get" gtk.Widget Signal'>drag-data-get</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>info</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-data-received" title='The "drag-data-received" gtk.Widget Signal'>drag-data-received</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>x</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>y</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>info</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-drop" title='The "drag-drop" gtk.Widget Signal'>drag-drop</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>x</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>y</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-end" title='The "drag-end" gtk.Widget Signal'>drag-end</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-leave" title='The "drag-leave" gtk.Widget Signal'>drag-leave</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--drag-motion" title='The "drag-motion" gtk.Widget Signal'>drag-motion</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>x</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>y</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--enter-notify-event" title='The "enter-notify-event" gtk.Widget Signal'>enter-notify-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--event" title='The "event" gtk.Widget Signal'>event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--event-after" title='The "event-after" gtk.Widget Signal'>event-after</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--expose-event" title='The "expose-event" gtk.Widget Signal'>expose-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--focus" title='The "focus" gtk.Widget Signal'>focus</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>direction</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--focus-in-event" title='The "focus-in-event" gtk.Widget Signal'>focus-in-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--focus-out-event" title='The "focus-out-event" gtk.Widget Signal'>focus-out-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--grab-focus" title='The "grab-focus" gtk.Widget Signal'>grab-focus</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--grab-notify" title='The "grab-notify" gtk.Widget Signal'>grab-notify</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>was_grabbed</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--hide" title='The "hide" gtk.Widget Signal'>hide</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--hierarchy-changed" title='The "hierarchy-changed" gtk.Widget Signal'>hierarchy-changed</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>previous_toplevel</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--key-press-event" title='The "key-press-event" gtk.Widget Signal'>key-press-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--key-release-event" title='The "key-release-event" gtk.Widget Signal'>key-release-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--leave-notify-event" title='The "leave-notify-event" gtk.Widget Signal'>leave-notify-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--map" title='The "map" gtk.Widget Signal'>map</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--map-event" title='The "map-event" gtk.Widget Signal'>map-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--mnemonic-activate" title='The "mnemonic-activate" gtk.Widget Signal'>mnemonic-activate</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>group_cycling</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--motion-notify-event" title='The "motion-notify-event" gtk.Widget Signal'>motion-notify-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--no-expose-event" title='The "no-expose-event" gtk.Widget Signal'>no-expose-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--parent-set" title='The "parent-set" gtk.Widget Signal'>parent-set</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>old_parent</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--popup-menu" title='The "popup-menu" gtk.Widget Signal'>popup-menu</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--property-notify-event" title='The "property-notify-event" gtk.Widget Signal'>property-notify-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--proximity-in-event" title='The "proximity-in-event" gtk.Widget Signal'>proximity-in-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--proximity-out-event" title='The "proximity-out-event" gtk.Widget Signal'>proximity-out-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--realize" title='The "realize" gtk.Widget Signal'>realize</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--screen-changed" title='The "screen-changed" gtk.Widget Signal'>screen-changed</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>screen</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--scroll-event" title='The "scroll-event" gtk.Widget Signal'>scroll-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--selection-clear-event" title='The "selection-clear-event" gtk.Widget Signal'>selection-clear-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--selection-get" title='The "selection-get" gtk.Widget Signal'>selection-get</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>info</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--selection-notify-event" title='The "selection-notify-event" gtk.Widget Signal'>selection-notify-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--selection-received" title='The "selection-received" gtk.Widget Signal'>selection-received</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--selection-request-event" title='The "selection-request-event" gtk.Widget Signal'>selection-request-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--show" title='The "show" gtk.Widget Signal'>show</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--show-help" title='The "show-help" gtk.Widget Signal'>show-help</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>help_type</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--size-allocate" title='The "size-allocate" gtk.Widget Signal'>size-allocate</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>allocation</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--size-request" title='The "size-request" gtk.Widget Signal'>size-request</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>requisition</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--state-changed" title='The "state-changed" gtk.Widget Signal'>state-changed</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>state</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--style-set" title='The "style-set" gtk.Widget Signal'>style-set</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>previous_style</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--unmap" title='The "unmap" gtk.Widget Signal'>unmap</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--unmap-event" title='The "unmap-event" gtk.Widget Signal'>unmap-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--unrealize" title='The "unrealize" gtk.Widget Signal'>unrealize</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--visibility-notify-event" title='The "visibility-notify-event" gtk.Widget Signal'>visibility-notify-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr><tr><td><span class="term">"<a href="class-gtkwidget.html#signal-gtkwidget--window-state-event" title='The "window-state-event" gtk.Widget Signal'>window-state-event</a>"</span></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" lang="en"><a name="id3627560"></a><h2>Description</h2><p>The <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a> class is
the base class for all <tt class="literal">PyGTK</tt> widgets. It provides the common set of method and signals for the widgets including:</p><div class="itemizedlist"><ul type="disc"><li>drag and drop setting and management methods</li><li>selection methods</li><li>methods to realize, map and show widgets</li><li>methods to manage size allocation and requests</li><li>methods to initiate widget redrawing</li><li>methods to deal with the widget's place in the widget hierarchy</li><li>event management methods</li><li>methods to modify the style settings</li><li>methods to access the default resources</li></ul></div><p><a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a>
introduces style properties - these are basically object properties that are
stored not on the object, but in the style object associated to the
widget. Style properties are set in resource files. This mechanism is used
for configuring such things as the location of the scrollbar arrows through
the theme, giving theme authors more control over the look of applications
without the need to write a theme engine in C.</p><p>Use the <a href="class-gtkwidget.html#function-gtk--widget-list-style-properties" title="gtk.widget_list_style_properties"><tt class="function">gtk.widget.list_style_properties</tt>()</a>
function to get information about existing style properties and the <a href="class-gtkwidget.html#method-gtkwidget--style-get-property" title="gtk.Widget.style_get_property"><tt class="methodname">style_get_property</tt>()</a>
method to obtain the value of a style property.</p></div><div class="refsect1" lang="en"><a name="id3627700"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkwidget--get-allocation"></a><h3>gtk.Widget.get_allocation</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_allocation</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a <a href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><tt class="classname">gtk.gdk.Rectangle</tt></a></td></tr></tbody></table><p>The <tt class="methodname">get_allocation</tt>() method returns a
<a href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><tt class="classname">gtk.gdk.Rectangle</tt></a> containing the bounds of the widget's allocation.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-check-threshold"></a><h3>gtk.Widget.drag_check_threshold</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_check_threshold</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>start_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>start_y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>current_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>current_y</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>start_x</tt></b>:</span></td><td>the X coordinate of start of
drag</td></tr><tr><td><span class="term"><b class="parameter"><tt>start_y</tt></b>:</span></td><td>the Y coordinate of start of
drag</td></tr><tr><td><span class="term"><b class="parameter"><tt>current_x</tt></b>:</span></td><td>the current X coordinate</td></tr><tr><td><span class="term"><b class="parameter"><tt>current_y</tt></b>:</span></td><td>the current Y coordinate</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the drag threshold
has been passed.</td></tr></tbody></table><p>The check_drag_threshold() method checks to see if a mouse drag
starting at (<i class="parameter"><tt>start_x</tt></i>, <i class="parameter"><tt>start_y</tt></i>)
and ending at (<i class="parameter"><tt>current_x</tt></i>,
<i class="parameter"><tt>current_y</tt></i>) has passed the+ drag threshhold distance,
and thus should trigger the beginning of a drag-and-drop operation.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-get-data"></a><h3>gtk.Widget.drag_get_data</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_get_data</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>context</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>time</tt></b></span><span class="initializer">=0L</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>context</tt></b>:</span></td><td>a <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>target</tt></b>:</span></td><td>an atom</td></tr><tr><td><span class="term"><b class="parameter"><tt>time</tt></b>:</span></td><td>a timestamp or 0L to specify the current
time</td></tr></tbody></table><p>The <tt class="methodname">drag_get_data</tt>() method gets the
data associated with a drag specified by <i class="parameter"><tt>drag_context</tt></i>
and <i class="parameter"><tt>target</tt></i>. When the data is received or the
retrieval fails, a "drag_data_received" signal will be emitted. Failure of
the retrieval is indicated by the length field of the <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a> 
being negative. However, when the <tt class="methodname">drag_get_data</tt>()
method is called implicitly because <tt class="literal">gtk.DRAG_DEFAULT_DROP</tt>
was set, the widget will not receive notification of failed drops.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-highlight"></a><h3>gtk.Widget.drag_highlight</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_highlight</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">drag_highlight</tt>() method draws a
highlight around a widget. This will attach handlers to "expose_event" and
"draw", so the highlight will continue to be displayed until the <a href="class-gtkwidget.html#method-gtkwidget--drag-unhighlight" title="gtk.Widget.drag_unhighlight"><tt class="methodname">drag_unhighlight</tt>()</a> 
method is called.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-unhighlight"></a><h3>gtk.Widget.drag_unhighlight</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_unhighlight</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">drag_unhighlight</tt>() method removes
the highlight that was set by the <a href="class-gtkwidget.html#method-gtkwidget--drag-highlight" title="gtk.Widget.drag_highlight"><tt class="methodname">drag_highlight</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-set"></a><h3>gtk.Widget.drag_dest_set</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_set</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>flags</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>actions</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>flags</tt></b>:</span></td><td>the flags that specify what actions should be
taken on behalf of a widget for drops onto that widget. The targets  and
actions fields only are used if <tt class="literal">gtk.DEST_DEFAULT_MOTION</tt>
or <tt class="literal">gtk.DEST_DEFAULT_DROP</tt> are given.</td></tr><tr><td><span class="term"><b class="parameter"><tt>targets</tt></b>:</span></td><td>a sequence of target
tuples</td></tr><tr><td><span class="term"><b class="parameter"><tt>actions</tt></b>:</span></td><td>a bitmask of possible actions for a drop onto
this widget.</td></tr></tbody></table><p>The <tt class="methodname">drag_dest_set</tt>() method sets up a
widget as a potential drag drop destination. The value of
<i class="parameter"><tt>flags</tt></i> is a combination of the <a href="gtk-constants.html#gtk-dest-defaults-constants">GTK Dest Defaults Constants</a>.</p><p><i class="parameter"><tt>targets</tt></i> is a sequence (list or tuple) of
3-tuples that contain information about the targets. The target data contains
a string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p><p>The value of <i class="parameter"><tt>actions</tt></i> is one of the <a href="gdk-constants.html#gdk-drag-action-constants">GDK Drag Action Constants</a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-set-proxy"></a><h3>gtk.Widget.drag_dest_set_proxy</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_set_proxy</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>proxy_window</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>protocol</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>use_coordinates</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>proxy_window</tt></b>:</span></td><td>the <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> to
forward drag events to</td></tr><tr><td><span class="term"><b class="parameter"><tt>protocol</tt></b>:</span></td><td>the drag protocol that
<i class="parameter"><tt>proxy_window</tt></i> accepts</td></tr><tr><td><span class="term"><b class="parameter"><tt>use_coordinates</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt>, send the same
coordinates to the destination, because it is an embedded
subwindow.</td></tr></tbody></table><p>The <tt class="methodname">drag_dest_set_proxy</tt>() method sets a
proxy <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>
specified by <i class="parameter"><tt>proxy_window</tt></i> that drag events are
forwarded to on behalf of the widget. The value of
<i class="parameter"><tt>protocol</tt></i> is one of the <a href="gdk-constants.html#gdk-drag-protocol-constants">GDK Drag Protocol Constants</a>.</p><p>If <i class="parameter"><tt>use_coordinates</tt></i> is
<tt class="literal">TRUE</tt>, the same coordinates are sent to the destination
because the widget's an embedded subwindow.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-unset"></a><h3>gtk.Widget.drag_dest_unset</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_unset</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">drag_dest_unset</tt>() method clears the
information about a drop destination set with the <a href="class-gtkwidget.html#method-gtkwidget--drag-dest-set" title="gtk.Widget.drag_dest_set"><tt class="methodname">drag_dest_set</tt>()</a> 
method. The widget will no longer receive notification of drags.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-find-target"></a><h3>gtk.Widget.drag_dest_find_target</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_find_target</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>context</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target_list</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>context</tt></b>:</span></td><td>the drag context</td></tr><tr><td><span class="term"><b class="parameter"><tt>target_list</tt></b>:</span></td><td>a list of droppable targets, or
<tt class="literal">None</tt>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the first target that the source offers and the
dest can accept, or <tt class="literal">None</tt></td></tr></tbody></table><p>The <tt class="methodname">dest_find_target</tt>() method looks for
a match between the targets in the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a> 
specified by <i class="parameter"><tt>context</tt></i> and the
<i class="parameter"><tt>target_list</tt></i>, returning the first matching target, or
<tt class="literal">NONE</tt> if no match is found. The list specified by
<i class="parameter"><tt>target_list</tt></i> should usually be the return value from
the <a href="class-gtkwidget.html#method-gtkwidget--drag-dest-get-target-list" title="gtk.Widget.drag_dest_get_target_list"><tt class="methodname">drag_dest_get_target_list</tt>()</a> 
method, but some widgets may have different valid targets for different
parts of the widget; in that case, they will have to implement a
"drag-motion" handler that passes the correct target list to this method.
<i class="parameter"><tt>target_list</tt></i> is a sequence (list or tuple) of 3-tuples
that contain information about the targets. The target data contains a
string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-get-target-list"></a><h3>gtk.Widget.drag_dest_get_target_list</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_get_target_list</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the list of targets or <tt class="literal">None</tt>
if no targets are set</td></tr></tbody></table><p>The <tt class="methodname">drag_dest_get_target_list</tt>() method
returns the list of targets this widget can accept from drag-and-drop. The
returned value is a sequence (list or tuple) of 3-tuples that contain
information about the targets. The target data contains a string
representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-set-target-list"></a><h3>gtk.Widget.drag_dest_set_target_list</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_set_target_list</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>target_list</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>target_list</tt></b>:</span></td><td>a list of droppable targets, or
<tt class="literal">None</tt></td></tr></tbody></table><p>The <tt class="methodname">drag_dest_set_target_list</tt>() method
sets the target types (that this widget can accept from drag-and-drop) to
the list specified by <i class="parameter"><tt>target_list</tt></i>. The widget must
first be made into a drag destination with the <a href="class-gtkwidget.html#method-gtkwidget--drag-dest-set" title="gtk.Widget.drag_dest_set"><tt class="methodname">drag_dest_set()</tt></a> 
method. <i class="parameter"><tt>target_list</tt></i> is a sequence (list or tuple) of
3-tuples that contain information about the targets. The target data contains
a string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-add-image-targets"></a><h3>gtk.Widget.drag_dest_add_image_targets</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_add_image_targets</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">drag_dest_add_image_targets</tt>()
method adds the image targets supported by <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a>
to the target list of the widget's drag destination using an info value of
0.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-add-text-targets"></a><h3>gtk.Widget.drag_dest_add_text_targets</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_add_text_targets</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">drag_dest_add_text_targets</tt>() method
adds the text targets supported by <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a>
to the target list of the widget's drag destination using an info value of
0.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-dest-add-uri-targets"></a><h3>gtk.Widget.drag_dest_add_uri_targets</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_dest_add_uri_targets</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">drag_dest_add_uri_targets</tt>() method adds the URI targets supported by <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a>
to the target list of the widget's drag destination using an info value of
0.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-set"></a><h3>gtk.Widget.drag_source_set</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_set</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>start_button_mask</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>actions</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>start_button_mask</tt></b>:</span></td><td>the bitmask of buttons that can start the drag</td></tr><tr><td><span class="term"><b class="parameter"><tt>targets</tt></b>:</span></td><td>a list of targets that the drag will support</td></tr><tr><td><span class="term"><b class="parameter"><tt>actions</tt></b>:</span></td><td>the possible actions for a drag from this widget.</td></tr></tbody></table><p>The <tt class="methodname">drag_source_set</tt>() method sets up
the widget to start a drag operation when the user clicks and drags on the
widget. The widget must have a window. The value of start_button_mask is a
combination of the <a href="gdk-constants.html#gdk-modifier-constants">GDK Modifier Constants</a>.</p><p><i class="parameter"><tt>targets</tt></i> is a sequence (list or tuple) of
3-tuples that contain information about the targets. The target data contains
a string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p><p>The value of <i class="parameter"><tt>actions</tt></i> is one of the <a href="gdk-constants.html#gdk-drag-action-constants">GDK Drag Action Constants</a>:</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-unset"></a><h3>gtk.Widget.drag_source_unset</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_unset</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">drag_source_unset</tt>() method unsets
the drag source for the widget that was set up by the <a href="class-gtkwidget.html#method-gtkwidget--drag-source-set" title="gtk.Widget.drag_source_set"><tt class="methodname">drag_source_set</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-set-icon"></a><h3>gtk.Widget.drag_source_set_icon</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_set_icon</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>colormap</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>pixmap</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>mask</tt></b></span><span class="initializer">=None</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>colormap</tt></b>:</span></td><td>the colormap of the icon</td></tr><tr><td><span class="term"><b class="parameter"><tt>pixmap</tt></b>:</span></td><td>the image data for the
icon</td></tr><tr><td><span class="term"><b class="parameter"><tt>mask</tt></b>:</span></td><td>the transparency mask for an
image.</td></tr></tbody></table><p>The <tt class="methodname">drag_source_set_icon</tt>() method sets
the icon that will be used for drags from the widget using the specified
<i class="parameter"><tt>pixmap</tt></i> and <i class="parameter"><tt>mask</tt></i>.
<i class="parameter"><tt>colormap</tt></i> specifies the colormap to be used to create
the icon. The <a href="class-gtkwidget.html#method-gtkwidget--drag-source-set-icon-pixbuf" title="gtk.Widget.drag_source_set_icon_pixbuf"><tt class="methodname">drag_source_set_icon_pixbuf</tt>()</a> 
method should be used instead of this method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-set-icon-pixbuf"></a><h3>gtk.Widget.drag_source_set_icon_pixbuf</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_set_icon_pixbuf</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>pixbuf</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>pixbuf</tt></b>:</span></td><td>the <a href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><tt class="classname">gtk.gdk.Pixbuf</tt></a> for
the drag icon</td></tr></tbody></table><p>The <tt class="methodname">drag_source_set_icon_pixbuf</tt>()
method sets the icon that will be used for drags from the widget from the
<a href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><tt class="classname">gtk.gdk.Pixbuf</tt></a>
specified by <i class="parameter"><tt>pixbuf</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-set-icon-stock"></a><h3>gtk.Widget.drag_source_set_icon_stock</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_set_icon_stock</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>stock_id</tt></b>:</span></td><td>the ID of the stock icon to
use</td></tr></tbody></table><p>The <tt class="methodname">drag_source_set_icon_stock</tt>() method
sets the icon that will be used for drags from a particular source using the
stock icon specified by <i class="parameter"><tt>stock_id</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-get-target-list"></a><h3>gtk.Widget.drag_source_get_target_list</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_get_target_list</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the list of targets or <tt class="literal">None</tt>
if no targets are set</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">drag_source_get_target_list</tt>() method
returns the list of targets this widget can provide for drag-and-drop. The
returned value is a sequence (list or tuple) of 3-tuples that contain
information about the targets. The target data contains a string
representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-set-target-list"></a><h3>gtk.Widget.drag_source_set_target_list</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_set_target_list</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>target_list</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>target_list</tt></b>:</span></td><td>a list of droppable targets, or
<tt class="literal">None</tt></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">drag_source_set_target_list</tt>()
method sets the target types (that this widget can provide for
drag-and-drop) to the list specified by
<i class="parameter"><tt>target_list</tt></i>. The widget must first be made into a
drag source with the <a href="class-gtkwidget.html#method-gtkwidget--drag-source-set" title="gtk.Widget.drag_source_set"><tt class="methodname">drag_source_set()</tt></a>
method. <i class="parameter"><tt>target_list</tt></i> is a sequence (list or tuple) of
3-tuples that contain information about the targets. The target data
contains a string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-source-add-text-targets"></a><h3>gtk.Widget.drag_source_add_text_targets</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_source_add_text_targets</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">drag_source_add_text_targets</tt>() method
adds the text targets supported by <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a>
to the target list of the widget's drag source using an info value of
0.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--drag-begin"></a><h3>gtk.Widget.drag_begin</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">drag_begin</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>actions</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>button</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>event</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>targets</tt></b>:</span></td><td>the list of targets supported by the widget
drag</td></tr><tr><td><span class="term"><b class="parameter"><tt>actions</tt></b>:</span></td><td>the allowed drag operations for the
drag</td></tr><tr><td><span class="term"><b class="parameter"><tt>button</tt></b>:</span></td><td>the button the user pressed to start the
drag</td></tr><tr><td><span class="term"><b class="parameter"><tt>event</tt></b>:</span></td><td>the <a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a> that
triggered the drag</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr></tbody></table><p>The <tt class="methodname">drag_begin</tt>() method starts a drag
on the source side. The method only needs to be used when the application is
starting drags itself, and is not needed when the <a href="class-gtkwidget.html#method-gtkwidget--drag-source-set" title="gtk.Widget.drag_source_set"><tt class="methodname">drag_source_set</tt>()</a> 
method is used. <i class="parameter"><tt>targets</tt></i> is a sequence (list or tuple)
of 3-tuples that contain information about the targets. The target data
contains a string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p><p>The value of <i class="parameter"><tt>actions</tt></i> is one of the <a href="gdk-constants.html#gdk-drag-action-constants">GDK Drag Action Constants</a>.</p><p><i class="parameter"><tt>button</tt></i> is the button that the user
pressed to start the drag operation. <i class="parameter"><tt>event</tt></i> is the
<a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a>
that triggered the start of the drag operation (the button press). This
method returns the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a> 
for the drag operation.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--grab-add"></a><h3>gtk.Widget.grab_add</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">grab_add</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">grab_add</tt>() method makes the widget
the current grabbed widget. This means that interaction with other widgets
in the same application is blocked and mouse as well as keyboard events are
delivered to this widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--grab-remove"></a><h3>gtk.Widget.grab_remove</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">grab_remove</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">grab_remove</tt>() method removes the
grab from the widget. You have to pair calls to the <a href="class-gtkwidget.html#method-gtkwidget--grab-add" title="gtk.Widget.grab_add"><tt class="methodname">grab_add</tt>()</a> 
and <tt class="methodname">grab_remove</tt>() methods.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--rc-get-style"></a><h3>gtk.Widget.rc_get_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">rc_get_style</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the resulting style.</td></tr></tbody></table><p>The <tt class="methodname">rc_get_style</tt>() method finds all
matching RC styles for the widget, composites them together, and then
creates a <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>
representing the composite appearance.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--selection-owner-set"></a><h3>gtk.Widget.selection_owner_set</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">selection_owner_set</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>time</tt></b></span><span class="initializer">=0L</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>selection</tt></b>:</span></td><td>an atom representing the selection to
claim</td></tr><tr><td><span class="term"><b class="parameter"><tt>time</tt></b>:</span></td><td>a timestamp or 0L to use the current
time</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if
successful</td></tr></tbody></table><p>The <tt class="methodname">selection_owner_set</tt>() method claims
the ownership of the selection specified by <i class="parameter"><tt>selection</tt></i>
for the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--selection-add-target"></a><h3>gtk.Widget.selection_add_target</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">selection_add_target</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>info</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>selection</tt></b>:</span></td><td>an atom representing the
selection</td></tr><tr><td><span class="term"><b class="parameter"><tt>target</tt></b>:</span></td><td>an atom representing the target for the
selection</td></tr><tr><td><span class="term"><b class="parameter"><tt>info</tt></b>:</span></td><td>an integer ID that will be passed to the
application</td></tr></tbody></table><p>The <tt class="methodname">selection_add_target</tt>() method adds
the specified <i class="parameter"><tt>target</tt></i> to the list of supported targets
for the specified <i class="parameter"><tt>selection</tt></i>.
<i class="parameter"><tt>info</tt></i> is an integer ID that will be passed to the
application when the "selection-get" handler is called.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--selection-add-targets"></a><h3>gtk.Widget.selection_add_targets</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">selection_add_targets</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>targets</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>selection</tt></b>:</span></td><td>an atom representing the
selection</td></tr><tr><td><span class="term"><b class="parameter"><tt>targets</tt></b>:</span></td><td>a sequence of 3-tuples containing target
data</td></tr></tbody></table><p>The <tt class="methodname">selection_add_targets</tt>() method adds
the list of targets (specified by <i class="parameter"><tt>targets</tt></i>) to the
list of supported targets for the specified
<i class="parameter"><tt>selection</tt></i>. targets is a sequence (Python tuple or
list) of 3-tuples that contain information about the targets. The target data
contains a string representing the drag type, target flags (a combination of
<tt class="literal">gtk.TARGET_SAME_APP</tt> and
<tt class="literal">gtk.TARGET_SAME_WIDGET</tt> or neither) and an application
assigned integer ID used for identification purposes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--selection-clear-targets"></a><h3>gtk.Widget.selection_clear_targets</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">selection_clear_targets</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>selection</tt></b>:</span></td><td>an atom representing a
selection</td></tr></tbody></table><p>The <tt class="methodname">selection_clear_targets</tt>() method
remove all targets registered for the specified
<i class="parameter"><tt>selection</tt></i> for the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--selection-convert"></a><h3>gtk.Widget.selection_convert</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">selection_convert</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>target</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>time</tt></b></span><span class="initializer">=0L</span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>selection</tt></b>:</span></td><td>an atom specifying the
selection</td></tr><tr><td><span class="term"><b class="parameter"><tt>target</tt></b>:</span></td><td>an atom specifying the target
type</td></tr><tr><td><span class="term"><b class="parameter"><tt>time</tt></b>:</span></td><td>a timestamp for the request or 0L to use the
current time</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the request
succeeded</td></tr></tbody></table><p>The <tt class="methodname">selection_convert</tt>() method requests
the contents of the specified <i class="parameter"><tt>selection</tt></i> for the
specified <i class="parameter"><tt>target</tt></i> type. When received, a
"selection_received" signal will be generated.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--selection-remove-all"></a><h3>gtk.Widget.selection_remove_all</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">selection_remove_all</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">selection_remove_all</tt>() method
removes all handlers and unsets ownership of all selections for a widget.
This method is called when widget is being destroyed and not usually by
applications.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--destroy"></a><h3>gtk.Widget.destroy</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">destroy</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">destroy</tt>() method destroys the
widget. When a widget is destroyed, it will break any references it holds to
other objects. If the widget is inside a container, the widget will be
removed from the container. If the widget is a toplevel (derived from <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>), it will
be removed from the list of toplevels, and the reference
<tt class="literal">PyGTK</tt> holds to it will be removed. Removing a widget from
its container or the list of toplevels results in the widget being
finalized. In most cases, only toplevel widgets (windows) require explicit
destruction, because when you destroy a toplevel its children will be
destroyed as well.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--unparent"></a><h3>gtk.Widget.unparent</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">unparent</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">unparent</tt>() method is only for use
in widget implementations. It should be called by implementations of the
remove method on a <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>, to
dissociate a child widget from the container.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--show"></a><h3>gtk.Widget.show</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">show</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">show</tt>() method causes a widget to be
displayed as soon as practical. Any widget that isn't shown will not appear
on the screen. If you want to show all the widgets in a container, it's
easier to call the <a href="class-gtkwidget.html#method-gtkwidget--show-all" title="gtk.Widget.show_all"><tt class="methodname">show_all</tt>()</a> 
on the container, instead of individually showing the widgets. Of course you
have to show the containers containing a widget, as well as the widget
itself, before it will appear onscreen. When a toplevel container is shown,
it is immediately realized and mapped; other shown widgets are realized and
mapped when their toplevel container is realized and mapped.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--show-now"></a><h3>gtk.Widget.show_now</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">show_now</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">show_now</tt>() method is the same as
the <a href="class-gtkwidget.html#method-gtkwidget--show" title="gtk.Widget.show"><tt class="methodname">show</tt>()</a>
method except if the widget is an unmapped toplevel widget (i.e. a <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a> that has
not yet been shown), it enters the main loop and waits for the window to
actually be mapped.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Because the main loop is running, anything can happen during
this method.</p></div></div><div class="refsect2" lang="en"><a name="method-gtkwidget--hide"></a><h3>gtk.Widget.hide</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">hide</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">hide</tt>() method reverses the effects
of the <a href="class-gtkwidget.html#method-gtkwidget--show" title="gtk.Widget.show"><tt class="methodname">show</tt>()</a>
method, causing the widget to be hidden (removed from the display) by
unmapping it.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--show-all"></a><h3>gtk.Widget.show_all</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">show_all</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">show_all</tt>() method recursively shows
the widget, and any child widgets (if the widget is a container).</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--hide-all"></a><h3>gtk.Widget.hide_all</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">hide_all</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">hide_all</tt>() method recursively hides
the widget and its child widgets (if any).</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-no-show-all"></a><h3>gtk.Widget.set_no_show_all</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_no_show_all</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>no_show_all</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>no_show_all</tt></i>:</span></td><td>the new value for the "no_show_all"
	  property</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">set_no_show_all</tt>() method sets the
"no_show_all" property to the value of
<i class="parameter"><tt>no_show_all</tt></i>. If <i class="parameter"><tt>no_show_all</tt></i> is
<tt class="literal">TRUE</tt> calls to the <a href="class-gtkwidget.html#method-gtkwidget--show-all" title="gtk.Widget.show_all"><tt class="methodname">show_all()</tt></a>
and <a href="class-gtkwidget.html#method-gtkwidget--hide-all" title="gtk.Widget.hide_all"><tt class="methodname">hide_all()</tt></a>
methods will not affect this widget.</p><p>This method is mostly for use in constructing widget hierarchies
with externally controlled visibility, see the <a href="class-gtkuimanager.html" title="gtk.UIManager"><tt class="classname">gtk.UIManager</tt></a>
reference for mote information.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-no-show-all"></a><h3>gtk.Widget.get_no_show_all</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_no_show_all</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the current value of the "no_show_all"
	  property.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">get_no_show_all</tt>() method returns
the current value of the "no_show_all" property. If "no-show-all" is
<tt class="literal">TRUE</tt> calls to the <a href="class-gtkwidget.html#method-gtkwidget--show-all" title="gtk.Widget.show_all"><tt class="methodname">show_all()</tt></a>
and <a href="class-gtkwidget.html#method-gtkwidget--hide-all" title="gtk.Widget.hide_all"><tt class="methodname">hide_all()</tt></a>
methods will not affect the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--map"></a><h3>gtk.Widget.map</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">map</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">map</tt>() method maps the widget
(causes it to be displayed). This method will also cause the widget to be
realized if it is not currently realized. This method is usually not used by
applications.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--unmap"></a><h3>gtk.Widget.unmap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">unmap</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">unmap</tt>() method unmaps the widget
(causes it to be removed from the display). This method is not usually used
by applications.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--realize"></a><h3>gtk.Widget.realize</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">realize</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">realize</tt>() method creates the
resources associated with a widget.  For example, the widget <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> will
be created when the widget is realized.  Normally realization happens
implicitly; if you show a widget and all its parent containers, then the
widget will be realized and mapped automatically. Realizing a widget
requires all the widget's parent widgets to be realized; calling the
<tt class="methodname">realize</tt>() method realizes the widget's parents in
addition to the widget itself. A widget must be inside a toplevel window
when you realize it. This method is primarily used in widget
implementations, and not in applications. Many times when you think you
might need it, a better approach is to connect to a signal that will be
called after the widget is realized automatically, such as "expose_event".
Or simply using the <a href="class-gobject.html#method-gobject--connect-after" title="gobject.GObject.connect_after"><tt class="methodname">gobject.connect_after</tt>()</a> 
method to add a handler to the "realize" signal.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--unrealize"></a><h3>gtk.Widget.unrealize</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">unrealize</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">unrealize</tt>() method frees all
resources associated with the widget, such as the <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--queue-draw"></a><h3>gtk.Widget.queue_draw</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">queue_draw</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">queue_draw</tt>() method is equivalent
to calling the <a href="class-gtkwidget.html#method-gtkwidget--queue-draw-area" title="gtk.Widget.queue_draw_area"><tt class="methodname">queue_draw_area</tt>()</a> 
method for the entire area of a widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--queue-draw-area"></a><h3>gtk.Widget.queue_draw_area</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">queue_draw_area</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>y</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>x</tt></b>:</span></td><td>the x coordinate of upper-left corner of
rectangle to redraw</td></tr><tr><td><span class="term"><b class="parameter"><tt>y</tt></b>:</span></td><td>the y coordinate of upper-left corner of
rectangle to redraw</td></tr><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width of rectangle to
redraw</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height of rectangle to
redraw</td></tr></tbody></table><p>The <tt class="methodname">queue_draw_area</tt>() method
invalidates the rectangular area of the widget specified by
<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>,
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i> by calling
the <a href="class-gdkwindow.html#method-gdkwindow--invalidate-rect" title="gtk.gdk.Window.invalidate_rect"><tt class="methodname">gtk.gdk.Window.invalidate_rect</tt>()</a> 
method on the widget's window and all its child windows. Once the main loop
becomes idle (after the current batch of events has been processed,
roughly), the window will receive expose events for the union of all regions
that have been invalidated.</p><p>Normally you would only use this method in widget
implementations. But you might also use it, or the <a href="class-gdkwindow.html#method-gdkwindow--invalidate-rect" title="gtk.gdk.Window.invalidate_rect"><tt class="methodname">gtk.gdk.Window.invalidate_rect</tt>()</a> 
method directly, to schedule a redraw of a <a href="class-gtkdrawingarea.html" title="gtk.DrawingArea"><tt class="classname">gtk.DrawingArea</tt></a>
or some portion thereof. Frequently you can just call the <a href="class-gdkwindow.html#method-gdkwindow--invalidate-rect" title="gtk.gdk.Window.invalidate_rect"><tt class="methodname">gtk.gdk.Window.invalidate_rect</tt>()</a> 
method instead of this method. This method will invalidate only a single
window, instead of the widget and all its children. The advantage of adding
to the invalidated region compared to simply drawing immediately is
efficiency; using an invalid region ensures that you only have to redraw one
time.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--queue-resize"></a><h3>gtk.Widget.queue_resize</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">queue_resize</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">queue_resize</tt>() method schedules the
widget to have its size renegotiated. This method should be called when a
widget for some reason has a new size request. For example, when you change
the text in a <a href="class-gtklabel.html" title="gtk.Label"><tt class="classname">gtk.Label</tt></a>, a resize
is queued to ensure there's enough space for the new text.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--queue-resize-no-redraw"></a><h3>gtk.Widget.queue_resize_no_redraw</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">queue_resize_no_redraw</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">queue_resize_no_redraw</tt>() method
works like the <a href="class-gtkwidget.html#method-gtkwidget--queue-resize" title="gtk.Widget.queue_resize"><tt class="methodname">queue_resize()</tt></a>
method, except that the widget is not invalidated.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--size-request"></a><h3>gtk.Widget.size_request</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">size_request</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a tuple containing the widget's required width
and height.</td></tr></tbody></table><p>The <tt class="methodname">size_request</tt>() method returns the
preferred size of a widget as a tuple containing its required width and
height. This method is typically used when implementing a <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>
subclass to arrange the container's child widgets and decide what size
allocations to give them with the <a href="class-gtkwidget.html#method-gtkwidget--size-allocate" title="gtk.Widget.size_allocate"><tt class="methodname">size_allocate</tt>()</a> 
method. Obtaining a size request requires that the widget be associated with
a screen, because font information may be needed.</p><p>Also remember that the size request is not necessarily the size
a widget will actually be allocated. See the <a href="class-gtkwidget.html#method-gtkwidget--get-child-requisition" title="gtk.Widget.get_child_requisition"><tt class="methodname">get_child_requisition</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--size-allocate"></a><h3>gtk.Widget.size_allocate</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">size_allocate</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>allocation</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>allocation</tt></b>:</span></td><td>the position and size to be allocated to the
widget</td></tr></tbody></table><p>The <tt class="methodname">size_allocate</tt>() method sets a size
allocation for the widget using the <a href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><tt class="classname">gtk.gdk.Rectangle</tt></a>
specified by <i class="parameter"><tt>allocation</tt></i>. This method is only used by
<a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>
subclasses, to assign a size and position to their child widgets.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-child-requisition"></a><h3>gtk.Widget.get_child_requisition</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_child_requisition</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>requisition</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a tuple containing the required size of the
widget</td></tr></tbody></table><p>The <tt class="methodname">get_child_requisition</tt>() method
returns a tuple containing the widget requisition width and height. This
method is only for use in widget container implementations since it obtains
the widget requisition directly. By comparison the <a href="class-gtkwidget.html#method-gtkwidget--size-request" title="gtk.Widget.size_request"><tt class="methodname">size_request</tt>()</a> 
method actually computes the size request and fills in the widget
requisition before returning. Because this method does not recalculate the
size request, it can only be used when you know that the widget requisition
is up-to-date, i.e. the <a href="class-gtkwidget.html#method-gtkwidget--size-request" title="gtk.Widget.size_request"><tt class="methodname">size_request</tt>()</a> 
method has been called since the last time a resize was queued. In general,
only container implementations have this information; applications should
use the <a href="class-gtkwidget.html#method-gtkwidget--size-request" title="gtk.Widget.size_request"><tt class="methodname">size_request</tt>()</a> 
method instead.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--add-accelerator"></a><h3>gtk.Widget.add_accelerator</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add_accelerator</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_signal</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_group</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_key</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_mods</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_flags</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>accel_signal</tt></b>:</span></td><td>the widget signal to emit on accelerator
activation</td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_group</tt></b>:</span></td><td>the accel group for this widget, added to its
toplevel</td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_key</tt></b>:</span></td><td>the keyval of the accelerator e.g.
<tt class="literal">ord('q')</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_mods</tt></b>:</span></td><td>the modifier key combination of the
accelerator</td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_flags</tt></b>:</span></td><td>the flag accelerators, e.g.
<tt class="literal">gtk.ACCEL_VISIBLE</tt></td></tr></tbody></table><p>The <tt class="methodname">add_accelerator</tt>() method installs
an accelerator for the widget in <i class="parameter"><tt>accel_group</tt></i> that
causes <i class="parameter"><tt>accel_signal</tt></i> to be emitted if the accelerator
is activated. The accelerator key and modifiers are specified by
<i class="parameter"><tt>accel_key</tt></i> and <i class="parameter"><tt>accel_mods</tt></i>
respectively. <i class="parameter"><tt>accel_mods</tt></i> should be a combination of
the <a href="gdk-constants.html#gdk-modifier-constants">GDK Modifier Constants</a>. <i class="parameter"><tt>accel_flags</tt></i>
is a combination of <tt class="literal">gtk.ACCEL_VISIBLE</tt> and
<tt class="literal">gtk.ACCEL_LOCKED</tt> (see the <a href="gtk-constants.html#gtk-accel-flags-constants">GTK Accel Flags Constants</a>). The
<i class="parameter"><tt>accel_group</tt></i> needs to be added to the widget's
toplevel via the <a href="class-gtkwindow.html#method-gtkwindow--add-accel-group" title="gtk.Window.add_accel_group"><tt class="methodname">gtk.Window.add_accel_group</tt>()</a>
method and the signal specified by <i class="parameter"><tt>accel_signal</tt></i> must
have signal flags that include the <tt class="literal">gobject.SIGNAL_ACTION</tt>
flag (see the <a href="gobject-constants.html#gobject-signal-constants">GObject Signal Flag Constants</a> for more
information). Accelerators added through this method are not user changeable
during runtime. If you want to support accelerators that can be changed by
the user, the <a href="class-gtkwidget.html#method-gtkwidget--set-accel-path" title="gtk.Widget.set_accel_path"><tt class="methodname">set_accel_path</tt>()</a>
or <a href="class-gtkmenuitem.html#method-gtkmenuitem--set-accel-path" title="gtk.MenuItem.set_accel_path"><tt class="methodname">gtk.MenuItem.set_accel_path</tt>()</a>
methods instead.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--remove-accelerator"></a><h3>gtk.Widget.remove_accelerator</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">remove_accelerator</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_group</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_key</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_mods</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>accel_group</tt></b>:</span></td><td>the accel group for this
widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_key</tt></b>:</span></td><td>the keyval of the
accelerator</td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_mods</tt></b>:</span></td><td>the modifier key combination of the
accelerator</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the accelerator was
removed</td></tr></tbody></table><p>The <tt class="methodname">remove_accelerator</tt>() method removes
the accelerator specified by <i class="parameter"><tt>accel_key</tt></i> and
<i class="parameter"><tt>accel_mods</tt></i> from the widget's accelerator group
(specified by <i class="parameter"><tt>accel_group</tt></i>), previously installed with
the <a href="class-gtkwidget.html#method-gtkwidget--add-accelerator" title="gtk.Widget.add_accelerator"><tt class="methodname">add_accelerator</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-accel-path"></a><h3>gtk.Widget.set_accel_path</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_accel_path</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_path</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>accel_group</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>accel_path</tt></b>:</span></td><td>the path used to look up the the
accelerator</td></tr><tr><td><span class="term"><b class="parameter"><tt>accel_group</tt></b>:</span></td><td>a <a href="class-gtkaccelgroup.html" title="gtk.AccelGroup"><tt class="classname">gtk.AccelGroup</tt></a>.</td></tr></tbody></table><p>The <tt class="methodname">set_accel_path</tt>() method sets an
accelerator (using the key bindings defined in
<i class="parameter"><tt>accel_path</tt></i>) in the accelerator group specified by
<i class="parameter"><tt>accel_group</tt></i>. This method removes any accelerators for
any accelerator group installed by previous calls to the
<tt class="methodname">set_accel_path</tt>() method. Associating accelerators
with paths allows them to be modified by the user and the modifications to
be saved for future use. This method is a low level method that would most
likely be used by a menu creation system like <a href="class-gtkitemfactory.html" title="gtk.ItemFactory"><tt class="classname">gtk.ItemFactory</tt></a>. 
If you use <a href="class-gtkitemfactory.html" title="gtk.ItemFactory"><tt class="classname">gtk.ItemFactory</tt></a>, 
setting up accelerator paths will be done automatically. Even when you you
aren't using <a href="class-gtkitemfactory.html" title="gtk.ItemFactory"><tt class="classname">gtk.ItemFactory</tt></a>, 
if you only want to set up accelerators on menu items the <a href="class-gtkmenuitem.html#method-gtkmenuitem--set-accel-path" title="gtk.MenuItem.set_accel_path"><tt class="methodname">gtk.MenuItem.set_accel_path</tt>()</a> 
method provides a somewhat more convenient interface.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--can-activate-accel"></a><h3>gtk.Widget.can_activate_accel</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">can_activate_accel</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>signal_id</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>signal_id</tt></i>:</span></td><td>the ID of an installed signal</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the accelerator can
	  be activated.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">can_activate_accel</tt>() method returns
<tt class="literal">TRUE</tt> if an accelerator that activates the signal
specified by <i class="parameter"><tt>signal_id</tt></i> can currently be activated.
This is done by emitting the "<a href="class-gtkwidget.html#signal-gtkwidget--can-activate-accel" title='The "can-activate-accel" gtk.Widget Signal'>can-activate-accel</a>"
signal. If the signal isn't overridden by a handler or in a derived widget,
then the default check is that the widget must be sensitive, and the widget
and all its ancestors mapped.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--mnemonic-activate"></a><h3>gtk.Widget.mnemonic_activate</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">mnemonic_activate</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>group_cycling</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>group_cycling</tt></b>:</span></td><td>if TRUE grab the focus instead of activating
the widget</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>TRUE if the signal was
handled</td></tr></tbody></table><p>The<tt class="methodname"> mnemonic_activate</tt>() method emits
the "mnemonic-activate" signal on the widget and returns
<tt class="literal">TRUE</tt> if the signal was handled.
<i class="parameter"><tt>group_cycling</tt></i> is <tt class="literal">TRUE</tt> if the focus
is being shifted to the widget and <tt class="literal">FALSE</tt> if the widget
should be activated.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--event"></a><h3>gtk.Widget.event</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">event</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>event</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>event</tt></b>:</span></td><td>a <a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the event was
handled</td></tr></tbody></table><p>The <tt class="methodname">event</tt>() method emits the event
signals on a widget (those signals should never be emitted without using
this method to do so). If you want to synthesize an event though, don't use
this method; instead, use the <a href="gtk-functions.html#function-gtk--main-do-event" title="gtk.main_do_event"><tt class="methodname">gtk.main_do_event</tt>()</a> 
function so the event will behave as if it were in the event queue. Don't
synthesize expose events; instead, use the <a href="class-gdkwindow.html#method-gdkwindow--invalidate-rect" title="gtk.gdk.Window.invalidate_rect"><tt class="methodname">gtk.gdk.Window.invalidate_rect</tt>()</a> 
method to invalidate a region of the window.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--send-expose"></a><h3>gtk.Widget.send_expose</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">send_expose</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>event</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>event</tt></b>:</span></td><td>an expose <a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the event was
handled</td></tr></tbody></table><p>The <tt class="methodname">send_expose</tt>() method emits an
expose event signal on a widget. This method is usually used when
propagating an expose event to a child <tt class="literal">NO_WINDOW</tt> widget,
and that is normally done using the <a href="class-gtkcontainer.html#method-gtkcontainer--propagate-expose" title="gtk.Container.propagate_expose"><tt class="methodname">gtk.Container.propagate_expose</tt>()</a> 
method. If you want to force an area of a window to be redrawn, use the
<a href="class-gdkwindow.html#method-gdkwindow--invalidate-rect" title="gtk.gdk.Window.invalidate_rect"><tt class="methodname">gtk.gdk.Window.invalidate_rect</tt>()</a> 
method. To cause the redraw to be done immediately, follow that call with a
call to the <a href="class-gdkwindow.html#method-gdkwindow--process-updates" title="gtk.gdk.Window.process_updates"><tt class="methodname">gtk.gdk.Window.process_updates</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--activate"></a><h3>gtk.Widget.activate</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">activate</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the widget was
activatable</td></tr></tbody></table><p>The <tt class="methodname">activate</tt>() method emits the
"activate" signal on the widget that activates it (if it can be activated).
Activation is what happens when you press <span><b class="keycap">Enter</b></span> on a widget
during key navigation; clicking a button, selecting a menu item, etc. If the
widget isn't activatable, the method returns
<tt class="literal">FALSE</tt>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-scroll-adjustments"></a><h3>gtk.Widget.set_scroll_adjustments</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_scroll_adjustments</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>hadjustment</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>vadjustment</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>hadjustment</tt></b>:</span></td><td>an adjustment for horizontal scrolling, or
<tt class="literal">None</tt></td></tr><tr><td><span class="term"><b class="parameter"><tt>vadjustment</tt></b>:</span></td><td>an adjustment for vertical scrolling, or
<tt class="literal">None</tt></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the widget supports
scrolling</td></tr></tbody></table><p>The <tt class="methodname">set_scroll_adjustments</tt>() method
sets the horizontal and vertical scroll adjustments specified by
<i class="parameter"><tt>hadjustment</tt></i> and <i class="parameter"><tt>vadjustment</tt></i>
respectively and returns <tt class="literal">TRUE</tt>. If the widget doesn't
support scrolling this method returns <tt class="literal">FALSE</tt>. Widgets that
don't support scrolling can be scrolled by placing them in a <a href="class-gtkviewport.html" title="gtk.Viewport"><tt class="classname">gtk.Viewport</tt></a>,
which does support scrolling. This method emits the "set-scroll-adjustments"
signal on the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--reparent"></a><h3>gtk.Widget.reparent</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">reparent</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>new_parent</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>new_parent</tt></b>:</span></td><td>a <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a> to
move the widget into</td></tr></tbody></table><p>The <tt class="methodname">reparent</tt>() method moves a widget
from one <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a> to
another.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--intersect"></a><h3>gtk.Widget.intersect</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">intersect</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>area</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>intersection</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>area</tt></b>:</span></td><td>a rectangle</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a rectangle of the intersection of the widget
and <i class="parameter"><tt>area</tt></i> or
<tt class="literal">None</tt></td></tr></tbody></table><p>The <tt class="methodname">intersect</tt>() method computes the
intersection of a the widget's area and <i class="parameter"><tt>area</tt></i>, and
returns the intersection in a <a href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><tt class="classname">gtk.gdk.Rectangle</tt></a>. 
This method returns <tt class="literal">FALSE</tt> if there is no
intersection.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--freeze-child-notify"></a><h3>gtk.Widget.freeze_child_notify</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">freeze_child_notify</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">freeze_child_notify</tt>() method
freezes the child notify queue that is used to notify child widgets of child
property changes.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--child-notify"></a><h3>gtk.Widget.child_notify</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">child_notify</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>child_property</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>child_property</tt></b>:</span></td><td>a child property</td></tr></tbody></table><p>The <tt class="methodname">child_notify</tt>() method adds a child
property to the widget's child notify queue that is used to notify child
widgets of a change to a child property.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--thaw-child-notify"></a><h3>gtk.Widget.thaw_child_notify</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">thaw_child_notify</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">thaw_child_notify</tt>() method reverses
the effect of a previous call to the <a href="class-gtkwidget.html#method-gtkwidget--freeze-child-notify" title="gtk.Widget.freeze_child_notify"><tt class="methodname">freeze_child_notify</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--is-focus"></a><h3>gtk.Widget.is_focus</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">is_focus</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the widget is the
focus widget.</td></tr></tbody></table><p>The <tt class="methodname">is_focus</tt>() method returns
<tt class="literal">TRUE</tt> if the widget is the focus widget within its
toplevel. This does not mean that the <tt class="literal">gtk.HAS_FOCUS</tt> flag
is necessarily set; <tt class="literal">gtk.HAS_FOCUS</tt> will only be set if the
toplevel widget additionally has the global input focus.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--grab-focus"></a><h3>gtk.Widget.grab_focus</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">grab_focus</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">grab_focus</tt>() method causes the
widget to have the keyboard focus for it's enclosing <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>. The
widget must be a focusable widget, such as a <a href="class-gtkentry.html" title="gtk.Entry"><tt class="classname">gtk.Entry</tt></a>. Also, the
widget must have the <tt class="literal">gtk.CAN_FOCUS</tt> flag set.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--grab-default"></a><h3>gtk.Widget.grab_default</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">grab_default</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">grab_default</tt>() method causes the
widget to become the default widget. The widget must have the
<tt class="literal">gtk.CAN_DEFAULT</tt> flag set by calling the <a href="class-gtkobject.html#method-gtkobject--set-flags" title="gtk.Object.set_flags"><tt class="methodname">gtk.Object.set_flags</tt>()</a> 
method.  The default widget is activated when the user presses
<span><b class="keycap">Enter</b></span> in a window.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-name"></a><h3>gtk.Widget.set_name</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_name</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>name</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>name</tt></b>:</span></td><td>the name for the widget</td></tr></tbody></table><p>The <tt class="methodname">set_name</tt>() method sets the "name"
property of the widget to the string specified by
<i class="parameter"><tt>name</tt></i>. Widgets can be named, which allows you to refer
to them in a GTK resource file.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-name"></a><h3>gtk.Widget.get_name</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_name</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the name of the widget</td></tr></tbody></table><p>The <tt class="methodname">get_name</tt>() method returns the value
of the "name" property that contains the name of the widget or
<tt class="literal">None</tt> if the widget has no name.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-state"></a><h3>gtk.Widget.set_state</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_state</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>state</tt></b>:</span></td><td>the new state for the
widget</td></tr></tbody></table><p>The set_state() method sets the state of the widget to the value
specified by state. The value of state must be one of the <a href="gtk-constants.html#gtk-state-type-constants">GTK State Type Constants</a>.</p><p>Usually you should set the state using wrapper methods such as
<a href="class-gtkwidget.html#method-gtkwidget--set-sensitive" title="gtk.Widget.set_sensitive"><tt class="methodname">set_sensitive</tt>()</a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-sensitive"></a><h3>gtk.Widget.set_sensitive</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_sensitive</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>sensitive</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>sensitive</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> make the widget
sensitive</td></tr></tbody></table><p>The <tt class="methodname">set_sensitive</tt>() method sets the
"sensitive" property of the widget to the value specified by
<i class="parameter"><tt>sensitive</tt></i>. If <i class="parameter"><tt>sensitive</tt></i> is
<tt class="literal">TRUE</tt> the widget will be sensitive and the user can
interact with it. An insensitive widget appears "grayed out" and the user
can't interact with it. Insensitive widgets are known as "inactive",
"disabled", or "ghosted" in some other toolkits.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-app-paintable"></a><h3>gtk.Widget.set_app_paintable</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_app_paintable</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>app_paintable</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>app_paintable</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> the application will
paint directly on the widget</td></tr></tbody></table><p>The <tt class="methodname">set_app_paintable</tt>() method sets the
"app-paintable" property to the value of
<i class="parameter"><tt>app_paintable</tt></i>. If
<i class="parameter"><tt>app_paintable</tt></i> is <tt class="literal">TRUE</tt> the
application will paint directly on the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-double-buffered"></a><h3>gtk.Widget.set_double_buffered</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_double_buffered</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>double_buffered</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>double_buffered</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt> double-buffer a
widget</td></tr></tbody></table><p>The <tt class="methodname">set_double_buffered</tt>() method sets
the widget's flags according to the value of
<i class="parameter"><tt>double_buffered</tt></i>. If
<i class="parameter"><tt>double_buffered</tt></i> is <tt class="literal">TRUE</tt> the
<tt class="literal">gtk.DOUBLE_BUFFERED</tt> flag is set; otherwise it is unset.
Widgets are double buffered by default. "Double buffered" simply means that
the <a href="class-gdkwindow.html#method-gdkwindow--begin-paint-rect" title="gtk.gdk.Window.begin_paint_rect"><tt class="methodname">gtk.gdk.Window.begin_paint_rect</tt>()</a> 
and <a href="class-gdkwindow.html#method-gdkwindow--end-paint" title="gtk.gdk.Window.end_paint"><tt class="methodname">gtk.gdk.Window.end_paint</tt>()</a> 
methods are called automatically around expose events sent to the widget.
The <a href="class-gdkwindow.html#method-gdkwindow--begin-paint-rect" title="gtk.gdk.Window.begin_paint_rect"><tt class="methodname">gtk.gdk.Window.begin_paint_rect</tt>()</a> 
method diverts all drawing to a widget's window to an off screen buffer, and
the <a href="class-gdkwindow.html#method-gdkwindow--end-paint" title="gtk.gdk.Window.end_paint"><tt class="methodname">gtk.gdk.Window.end_paint</tt>()</a> 
method draws the buffer to the screen. The result is that users see the
window update in one smooth step, and don't see individual graphics
primitives being rendered. In very simple terms, double buffered widgets
don't flicker, so you would only use this method to turn off double
buffering if you had special needs and really knew what you were
doing.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-redraw-on-allocate"></a><h3>gtk.Widget.set_redraw_on_allocate</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_redraw_on_allocate</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>redraw_on_allocate</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>redraw_on_allocate</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt>, the entire widget
will be redrawn when it is allocated to a new size. Otherwise, only the new
portion of the widget will be redrawn.</td></tr></tbody></table><p>The <tt class="methodname">set_redraw_on_allocate</tt>() method
sets a flag that determines if the entire widget is queued for drawing when
a widget's size allocation changes. By default, this setting is
<tt class="literal">TRUE</tt> and the entire widget is redrawn on every size
change. If your widget leaves the upper left are unchanged when made bigger,
turning this setting on will improve performance.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>For <tt class="literal">NO_WINDOW</tt> widgets setting this flag to
<tt class="literal">FALSE</tt> turns off all allocation on resizing: the widget
will not redraw even if its position changes; this is to allow containers
that don't draw anything to avoid excess invalidations. If you set this flag
on a <tt class="literal">NO_WINDOW</tt> widget that <span class="emphasis"><em>does</em></span> draw
on the widget's <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>, you
are responsible for invalidating both the old and new allocation of the
widget when the widget is moved and responsible for invalidating regions
newly when the widget increases size.</p></div></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-parent"></a><h3>gtk.Widget.set_parent</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_parent</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>parent</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>parent</tt></b>:</span></td><td>a parent container</td></tr></tbody></table><p>The <tt class="methodname">set_parent</tt>() method is useful only
when implementing subclasses of <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>.
This method sets the container as the parent of the widget, and takes care
of some details such as updating the state and style of the child to reflect
its new location. The reverse method is the <a href="class-gtkwidget.html#method-gtkwidget--unparent" title="gtk.Widget.unparent"><tt class="methodname">unparent</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-parent-window"></a><h3>gtk.Widget.set_parent_window</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_parent_window</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>parent_window</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>parent_window</tt></b>:</span></td><td>the new parent window.</td></tr></tbody></table><p>The <tt class="methodname">set_parent_window</tt>() method sets a
non default parent window for the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-child-visible"></a><h3>gtk.Widget.set_child_visible</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_child_visible</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>is_visible</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>is_visible</tt></b>:</span></td><td>if <tt class="literal">TRUE</tt>, the widget should
be mapped along with its parent.</td></tr></tbody></table><p>The <tt class="methodname">set_child_visible</tt>() method
determines if the widget should be mapped along with its parent. If
<i class="parameter"><tt>is_visible</tt></i> is <tt class="literal">TRUE</tt> the widget will
be mapped with its parent if it has called the <a href="class-gtkwidget.html#method-gtkwidget--show" title="gtk.Widget.show"><tt class="methodname">show</tt>()</a>
method.</p><p>
The child visibility can be set for widget before it is added to a container
to avoid mapping children unnecessarily. The widget's child visibility flag
will be reset to its default state of <tt class="literal">TRUE</tt> when the
widget is removed from a container. Note that changing the child visibility
of a widget does not queue a resize on the widget. Most of the time, the
size of a widget is computed from all visible children, whether or not they
are mapped. If this is not the case, the container can queue a resize
itself. This method is only useful for container implementations and never
should be called by an application.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-child-visible"></a><h3>gtk.Widget.get_child_visible</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_child_visible</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the widget is mapped
with the parent.</td></tr></tbody></table><p>The <tt class="methodname">get_child_visible</tt>() method returns
the value set with the <a href="class-gtkwidget.html#method-gtkwidget--set-child-visible" title="gtk.Widget.set_child_visible"><tt class="methodname">set_child_visible</tt>()</a> 
method. This method is only useful for container implementations and never
should be called by an application.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-parent"></a><h3>gtk.Widget.get_parent</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_parent</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the parent container of the widget, or
<tt class="literal">None</tt></td></tr></tbody></table><p>The <tt class="methodname">get_parent</tt>() method returns the
parent container of the widget or <tt class="literal">None</tt> if the widget has
no parent.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-parent-window"></a><h3>gtk.Widget.get_parent_window</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_parent_window</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the parent <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> of
the widget</td></tr></tbody></table><p>The <tt class="methodname">get_parent_window</tt>() method returns
the widget's parent <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--child-focus"></a><h3>gtk.Widget.child_focus</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">child_focus</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>direction</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>direction</tt></b>:</span></td><td>the direction of focus
movement</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if focus ended up
inside the widget</td></tr></tbody></table><p>The <tt class="methodname">child_focus</tt>() method is used by
custom widget implementations. If you're writing an application, use the
<a href="class-gtkwidget.html#method-gtkwidget--grab-focus" title="gtk.Widget.grab_focus"><tt class="methodname">grab_focus</tt>()</a> 
method to move the focus to a particular widget, and the <a href="class-gtkcontainer.html#method-gtkcontainer--set-focus-chain" title="gtk.Container.set_focus_chain"><tt class="methodname">gtk.Container.set_focus_chain</tt>()</a> 
method to change the focus tab order.</p><p>The <tt class="methodname">child_focus</tt>() method is called by
containers as the user moves around the window using keyboard shortcuts. The
value of <i class="parameter"><tt>direction</tt></i> indicates what kind of motion is
taking place: <tt class="literal">gtk.DIR_TAB_FORWARD</tt>,
<tt class="literal">gtk.DIR_TAB_BACKWARD</tt>, <tt class="literal">gtk.DIR_UP</tt>,
<tt class="literal">gtk.DIR_DOWN</tt>, <tt class="literal">gtk.DIR_LEFT</tt> or
<tt class="literal">gtk.DIR_RIGHT</tt></p><p>This method emits the "focus" signal on the widget. Widgets
override the default handler for this signal in order to implement
appropriate focus behavior. The "focus" default handler for a widget should
return:</p><div class="itemizedlist"><ul type="disc"><li><tt class="literal">TRUE</tt> if the focus is left on a
focusable location inside the widget, and</li><li><tt class="literal">FALSE</tt> if the focus moved outside the
widget</li></ul></div><p>If returning <tt class="literal">TRUE</tt>, widgets normally call the
<a href="class-gtkwidget.html#method-gtkwidget--grab-focus" title="gtk.Widget.grab_focus"><tt class="methodname">grab_focus</tt>()</a> 
method to place the focus accordingly; if returning
<tt class="literal">FALSE</tt>, they don't modify the current focus
location.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-size-request"></a><h3>gtk.Widget.set_size_request</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_size_request</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>width</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>height</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>width</tt></b>:</span></td><td>the width the widget should request, or -1 to
unset</td></tr><tr><td><span class="term"><b class="parameter"><tt>height</tt></b>:</span></td><td>the height the widget should request, or -1 to
unset</td></tr></tbody></table><p>The <tt class="methodname">set_size_request</tt>() method sets the
minimum size of a widget to the values specified by
<i class="parameter"><tt>width</tt></i> and <i class="parameter"><tt>height</tt></i>. You can use
this method to force a widget to be either larger or smaller than it
normally would be. In most cases, the <a href="class-gtkwindow.html#method-gtkwindow--set-default-size" title="gtk.Window.set_default_size"><tt class="methodname">gtk.Window.set_default_size</tt>()</a> 
is a better choice for toplevel windows than this method. Setting the
default size will still allow users to shrink the window but setting the
size request will force them to leave the window at least as large as the
size request. When dealing with window sizes, the <a href="class-gtkwindow.html#method-gtkwindow--set-geometry-hints" title="gtk.Window.set_geometry_hints"><tt class="methodname">gtk.Window.set_geometry_hints</tt>()</a> 
can be a useful method as well.
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There is an inherent danger when setting any fixed size -
themes, translations into other languages, different fonts, and user action
can all change the appropriate size for a given widget. So, it's basically
impossible to hard code a size that will always be correct.</p></div><p>The size request of a widget is the smallest size a widget can
accept while still functioning well and drawing itself correctly. However in
some strange cases a widget may be allocated less than its requested size,
and in many cases a widget may be allocated more space than it requested. If
the size request in a given direction is -1 (unset), then the "natural" size
request of the widget will be used instead. Widgets can't actually be
allocated a size less than 1 by 1, but you can pass 0,0 to this method to
mean "as small as possible".</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-size-request"></a><h3>gtk.Widget.get_size_request</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_size_request</span>()</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a 2-tuple containing the requested width and
	  height</td></tr></tbody></table><p>The <tt class="methodname">get_size_request</tt>() method returns a
2-tuple containing the width and height of the widget that was explicitly
set for the widget using the <a href="class-gtkwidget.html#method-gtkwidget--set-size-request" title="gtk.Widget.set_size_request"><tt class="methodname">set_size_request()</tt></a>. A
value of -1 for the width or height indicates that that dimension has not
been set explicitly and the natural requisition of the widget will be used
instead. See the <a href="class-gtkwidget.html#method-gtkwidget--set-size-request" title="gtk.Widget.set_size_request"><tt class="methodname">set_size_request()</tt></a>
method for more information. To get the size a widget will actually use,
call the <a href="class-gtkwidget.html#method-gtkwidget--size-request" title="gtk.Widget.size_request"><tt class="methodname">size_request()</tt></a>
instead of this method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-events"></a><h3>gtk.Widget.set_events</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_events</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>events</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>events</tt></b>:</span></td><td>the event mask</td></tr></tbody></table><p>The <tt class="methodname">set_events</tt>() method sets the event
mask for a widget using the value specified by
<i class="parameter"><tt>events</tt></i>. The event mask determines which events a
widget will receive. Keep in mind that different widgets have different
default event masks, and by changing the event mask you may disrupt a
widget's functionality, so be careful. This method must be called while a
widget is unrealized. Consider using the <a href="class-gtkwidget.html#method-gtkwidget--add-events" title="gtk.Widget.add_events"><tt class="methodname">add_events</tt>()</a> 
method for widgets that are already realized, or if you want to preserve the
existing event mask. This method can't be used with
<tt class="literal">gtk.NO_WINDOW</tt> widgets since a widget must have a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> to
receive events. To get events on <tt class="literal">gtk.NO_WINDOW</tt> widgets,
place them inside a <a href="class-gtkeventbox.html" title="gtk.EventBox"><tt class="classname">gtk.EventBox</tt></a> and
receive events on the event box.</p><p>The value of <i class="parameter"><tt>events</tt></i> must be a combination
of the <a href="gdk-constants.html#gdk-event-mask-constants">GDK Event Mask Flag Constants</a>:</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--add-events"></a><h3>gtk.Widget.add_events</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add_events</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>events</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>events</tt></b>:</span></td><td>an event mask</td></tr></tbody></table><p>The <tt class="methodname">add_events</tt>() method adds the events
specified by <i class="parameter"><tt>events</tt></i> to the event mask for the widget.
See the <a href="class-gtkwidget.html#method-gtkwidget--set-events" title="gtk.Widget.set_events"><tt class="methodname">set_events</tt>()</a> 
method for details.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-extension-events"></a><h3>gtk.Widget.set_extension_events</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_extension_events</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>mode</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>mode</tt></b>:</span></td><td>the extension events to
receive</td></tr></tbody></table><p>The <tt class="methodname">set_extension_events</tt>() method sets
the extension events mask to the value specified by
<i class="parameter"><tt>mode</tt></i>. The value of mode must be one of the <a href="gdk-constants.html#gdk-extension-mode-constants">GDK Extension Mode Constants</a>.</p><p>See the <a href="class-gdkwindow.html#method-gdkwindow--input-set-extension-events" title="gtk.gdk.Window.input_set_extension_events"><tt class="methodname">gtk.gdk.Window.input_set_extension_events</tt>()</a> 
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-extension-events"></a><h3>gtk.Widget.get_extension_events</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_extension_events</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the extension events for the
widget</td></tr></tbody></table><p>The <tt class="methodname">get_extension_events</tt>() method
returns the extension events the widget will receive. See the <a href="class-gdkwindow.html#method-gdkwindow--input-set-extension-events" title="gtk.gdk.Window.input_set_extension_events"><tt class="methodname">gtk.gdk.Window.input_set_extension_events</tt>()</a> 
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-toplevel"></a><h3>gtk.Widget.get_toplevel</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_toplevel</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the topmost ancestor of the widget, or the
widget itself if there's no ancestor.</td></tr></tbody></table><p>The <tt class="methodname">get_toplevel</tt>() method returns the
topmost widget in the container hierarchy that the widget is a part of. If
the widget has no parent widgets, it will be returned as the topmost
widget.</p><p>Note the difference in behavior as compared to the <a href="class-gtkwidget.html#method-gtkwidget--get-ancestor" title="gtk.Widget.get_ancestor"><tt class="methodname">get_ancestor</tt>()</a> 
method that returns <tt class="literal">None</tt> if the widget isn't inside a
toplevel window, and if the window is inside a widget derived from <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a> that is
in turn inside the toplevel <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>. While
the second case may seem unlikely, it actually happens when a <a href="class-gtkplug.html" title="gtk.Plug"><tt class="classname">gtk.Plug</tt></a> is embedded
inside a <a href="class-gtksocket.html" title="gtk.Socket"><tt class="classname">gtk.Socket</tt></a> within
the same application.</p><p>To reliably find the toplevel <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>, use the
<a href="class-gtkwidget.html#method-gtkwidget--get-toplevel" title="gtk.Widget.get_toplevel"><tt class="methodname">get_toplevel</tt>()</a> 
method and check if the <tt class="literal">gtk.TOPLEVEL</tt> flag is set on the
result.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-ancestor"></a><h3>gtk.Widget.get_ancestor</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_ancestor</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget_type</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>widget_type</tt></b>:</span></td><td>a widget type</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the ancestor widget, or <tt class="literal">None</tt>
if not found</td></tr></tbody></table><p>The <tt class="methodname">get_ancestor</tt>() method returns the
first ancestor of the widget with the type specified by
<i class="parameter"><tt>widget_type</tt></i>. For example:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">
  widget.get_ancestor(gtk.Box)
 </pre></td></tr></table><p>returns the first <a href="class-gtkbox.html" title="gtk.Box"><tt class="classname">gtk.Box</tt></a> that's an
ancestor of the widget. See the <a href="class-gtkwidget.html#method-gtkwidget--get-toplevel" title="gtk.Widget.get_toplevel"><tt class="methodname">get_toplevel</tt>()</a> 
method for information about checking for a toplevel <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-colormap"></a><h3>gtk.Widget.get_colormap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_colormap</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the colormap used by the
widget</td></tr></tbody></table><p>The <tt class="methodname">get_colormap</tt>() method returns the
colormap that will be used to render the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-visual"></a><h3>gtk.Widget.get_visual</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_visual</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the visual for the widget</td></tr></tbody></table><p>The <tt class="methodname">get_visual</tt>() method returns the
visual that will be used to render the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-screen"></a><h3>gtk.Widget.get_screen</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_screen</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the <a href="class-gdkscreen.html" title="gtk.gdk.Screen"><tt class="classname">gtk.gdk.Screen</tt></a>
	  for the toplevel for this widget.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.2 and above.</p></div><p>The <tt class="methodname">get_screen</tt>() method returns the
<a href="class-gdkscreen.html" title="gtk.gdk.Screen"><tt class="classname">gtk.gdk.Screen</tt></a>
from the toplevel window associated with the widget. This method can only be
called after the widget has been added to a widget hierarchy with a <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a> at the
top.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--has-screen"></a><h3>gtk.Widget.has_screen</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">has_screen</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if there is a <a href="class-gdkscreen.html" title="gtk.gdk.Screen"><tt class="classname">gtk.gdk.Screen</tt></a>
	  associated with the widget.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.2 and above.</p></div><p>The <tt class="methodname">has_screen</tt>() method returns
<tt class="literal">TRUE</tt> if a <a href="class-gdkscreen.html" title="gtk.gdk.Screen"><tt class="classname">gtk.gdk.Screen</tt></a> is
associated with the widget. All toplevel widgets have an associated screen,
as do all widgets added into a hierarchy with a toplevel window.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-display"></a><h3>gtk.Widget.get_display</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_display</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the <a href="class-gdkdisplay.html" title="gtk.gdk.Display"><tt class="classname">gtk.gdk.Display</tt></a>
	  for the toplevel for this widget.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.2 and above.</p></div><p>The <tt class="methodname">get_display</tt>() method returns the
<a href="class-gdkdisplay.html" title="gtk.gdk.Display"><tt class="classname">gtk.gdk.Display</tt></a> for
the toplevel window associated with the widget. This method can only be
called after the widget has been added to a widget hierarchy with a toplevel
<a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a></p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-root-window"></a><h3>gtk.Widget.get_root_window</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_root_window</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>
	  root window for the toplevel for this widget.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.2 and above.</p></div><p>The <tt class="methodname">get_root_window</tt>() method returns
the root window containing the widget. This method should only be called
after the widget has been added to a widget hierarchy with a toplevel <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a></p><p>The root window is useful for such purposes as creating a popup
<a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> associated with the window.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-settings"></a><h3>gtk.Widget.get_settings</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_settings</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the associated <a href="class-gtksettings.html" title="gtk.Settings"><tt class="classname">gtk.Settings</tt></a>
object</td></tr></tbody></table><p>The <tt class="methodname">get_settings</tt>() method returns the
settings object holding the settings (global property settings, RC file
information, etc) used for this widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-clipboard"></a><h3>gtk.Widget.get_clipboard</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_clipboard</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>selection</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>selection</tt></b>:</span></td><td>a <a href="class-gdkatom.html" title="gtk.gdk.Atom"><tt class="classname">gtk.gdk.Atom</tt></a>
	  or string that identifies the clipboard to
	  use. <tt class="literal">gtk.gdk.SELECTION_CLIPBOARD</tt> gives the
	  default clipboard. Another common value is
	  <tt class="literal">gtk.gdk.SELECTION_PRIMARY</tt>, which gives the
	  primary X selection.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the appropriate <a href="class-gtkclipboard.html" title="gtk.Clipboard"><tt class="classname">gtk.Clipboard</tt></a>
	  object. If no clipboard already exists, a new one will be
	  created. Once a clipboard object has been created, it is
	  persistent for all time.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.2 and above.</p></div><p>The <tt class="methodname">get_clipboard</tt>() method returns the
<a href="class-gtkclipboard.html" title="gtk.Clipboard"><tt class="classname">gtk.Clipboard</tt></a>
object for the selection specified by <i class="parameter"><tt>selection</tt></i>. The
widget must have a <a href="class-gdkdisplay.html" title="gtk.gdk.Display"><tt class="classname">gtk.gdk.Display</tt></a>
associated with it, and so must be attached to a toplevel window.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-colormap"></a><h3>gtk.Widget.set_colormap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_colormap</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>colormap</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>colormap</tt></b>:</span></td><td>a <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a></td></tr></tbody></table><p>The <tt class="methodname">set_colormap</tt>() method sets the
<a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
for the widget to the value specified by <i class="parameter"><tt>colormap</tt></i>.
Widget must not have been realized.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-events"></a><h3>gtk.Widget.get_events</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_events</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the event mask for the
widget</td></tr></tbody></table><p>The <tt class="methodname">get_events</tt>() method returns the
event mask for the widget that determines the events that the widget will
receive. See the <a href="class-gtkwidget.html#method-gtkwidget--set-events" title="gtk.Widget.set_events"><tt class="methodname">set_events</tt>()</a> 
method for more detail about events.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-pointer"></a><h3>gtk.Widget.get_pointer</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_pointer</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a tuple containing the X and Y coordinates of
the mouse pointer</td></tr></tbody></table><p>The <tt class="methodname">get_pointer</tt>() method returns a
tuple containing the location of the mouse pointer in widget coordinates.
Widget coordinates are a bit odd; for historical reasons, they are defined
as:</p><div class="itemizedlist"><ul type="disc"><li>the widget <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>
coordinates for widgets that are not <tt class="literal">gtk.NO_WINDOW</tt>
widgets, or</li><li>the coordinates relative to the widget allocation for
widgets that are <tt class="literal">gtk.NO_WINDOW</tt> widgets.</li></ul></div><p></p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--is-ancestor"></a><h3>gtk.Widget.is_ancestor</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">is_ancestor</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>ancestor</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>ancestor</tt></b>:</span></td><td>another <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if
<i class="parameter"><tt>ancestor</tt></i> contains the widget as a child, grandchild,
great grandchild, etc.</td></tr></tbody></table><p>The <tt class="methodname">is_ancestor</tt>() method returns
<tt class="literal">TRUE</tt> if the widget is somewhere inside the hierarchy of
the widget specified by<i class="parameter"><tt>ancestor</tt></i></p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--translate-coordinates"></a><h3>gtk.Widget.translate_coordinates</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">translate_coordinates</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>dest_widget</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>src_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>src_y</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>dest_widget</tt></b>:</span></td><td>a <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>src_x</tt></b>:</span></td><td>the X position relative to the
widget</td></tr><tr><td><span class="term"><b class="parameter"><tt>src_y</tt></b>:</span></td><td>the Y position relative to the
widget</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a tuple containing the X and Y position
relative to <i class="parameter"><tt>dest_widget</tt></i></td></tr></tbody></table><p>The <tt class="methodname">translate_coordinates</tt>() method
returns a tuple containing the translation of the widget x and y coordinates
specified by <i class="parameter"><tt>src_x</tt></i> and <i class="parameter"><tt>src_y</tt></i>
respectively to coordinates relative to <i class="parameter"><tt>dest_widget</tt></i>.
In order to perform this operation, both widgets must be realized, and must
share a common toplevel.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--hide-on-delete"></a><h3>gtk.Widget.hide_on_delete</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">hide_on_delete</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt></td></tr></tbody></table><p>The <tt class="methodname">hide_on_delete</tt>() method is a
utility method that is intended to be connected to the "delete_event" signal
on a <a href="class-gtkwindow.html" title="gtk.Window"><tt class="classname">gtk.Window</tt></a>. The
method calls the <a href="class-gtkwidget.html#method-gtkwidget--hide" title="gtk.Widget.hide"><tt class="methodname">hide</tt>()</a>
method on the widget, then returns <tt class="literal">TRUE</tt>. If connected to
"delete_event", the result is that clicking the close button for a window
(on the window frame, top right corner usually) will hide but not destroy
the window. By default, <tt class="literal">PyGTK</tt> destroys windows when
"delete_event" is received.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-style"></a><h3>gtk.Widget.set_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_style</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>style</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>style</tt></b>:</span></td><td>a <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>, or
<tt class="literal">None</tt> to revert to the default style</td></tr></tbody></table><p>The <tt class="methodname">set_style</tt>() method sets the "style"
property to the value of <i class="parameter"><tt>style</tt></i>. The "style" property
contains the <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> for the
widget. This method interacts badly with themes, because themes work by
replacing the <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--ensure-style"></a><h3>gtk.Widget.ensure_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">ensure_style</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">ensure_style</tt>() method makes sure
that the widget has a style. This method is useful if applied to an
unrealized widget. Usually, if you want the style, the widget is realized,
and guaranteed to have a style.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-style"></a><h3>gtk.Widget.get_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_style</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the widget's <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a></td></tr></tbody></table><p>The <tt class="methodname">get_style</tt>() method returns the
value of the "style" property.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--modify-style"></a><h3>gtk.Widget.modify_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">modify_style</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>style</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>style</tt></b>:</span></td><td>the <a href="class-gtkrcstyle.html" title="gtk.RcStyle"><tt class="classname">gtk.RcStyle</tt></a> holding
the style modifications</td></tr></tbody></table><p>The <tt class="methodname">modify_style</tt>() method modifies the
style values on the widget using the values in <i class="parameter"><tt>style</tt></i>.
Modifications made using this technique take precedence over style values
set via an RC file, however, they will be overridden if a style is explicitly
set on the widget using the <a href="class-gtkwidget.html#method-gtkwidget--set-style" title="gtk.Widget.set_style"><tt class="methodname">set_style</tt>()</a> 
method. The <a href="class-gtkrcstyle.html" title="gtk.RcStyle"><tt class="classname">gtk.RcStyle</tt></a> object
is designed so each attribute can either be set or unset, so it is possible,
using this method, to modify some style values and leave the others
unchanged.</p><p>Note that modifications made with this method are not cumulative
with previous calls to the <tt class="methodname">modify_style</tt>() method or
with such methods as the <a href="class-gtkwidget.html#method-gtkwidget--modify-fg" title="gtk.Widget.modify_fg"><tt class="methodname">modify_fg</tt>()</a> 
method. If you wish to retain previous values, you must first call the <a href="class-gtkwidget.html#method-gtkwidget--get-modifier-style" title="gtk.Widget.get_modifier_style"><tt class="methodname">get_modifier_style</tt>()</a> 
method, make your modifications to the returned style, then call the
<tt class="methodname">modify_style</tt>() method with that style. On the other
hand, if you first call the <tt class="methodname">modify_style</tt>() method,
subsequent calls to such methods as the <a href="class-gtkwidget.html#method-gtkwidget--modify-fg" title="gtk.Widget.modify_fg"><tt class="methodname">modify_fg</tt>()</a> 
method will have a cumulative effect with the initial modifications.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-modifier-style"></a><h3>gtk.Widget.get_modifier_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_modifier_style</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the modifier style for the widget. This <a href="class-gtkrcstyle.html" title="gtk.RcStyle"><tt class="classname">gtk.RcStyle</tt></a> is
owned by the widget.</td></tr></tbody></table><p>The <tt class="methodname">get_modifier_style</tt>() method returns
the current modifier style for the widget as set by the <a href="class-gtkwidget.html#method-gtkwidget--modify-style" title="gtk.Widget.modify_style"><tt class="methodname">modify_style</tt>()</a> 
method. If no style was previously set, a new <a href="class-gtkrcstyle.html" title="gtk.RcStyle"><tt class="classname">gtk.RcStyle</tt></a> object
will be created( with all values unset), and set as the modifier style for
the widget. If you make changes to this rc style, you must call the <a href="class-gtkwidget.html#method-gtkwidget--modify-style" title="gtk.Widget.modify_style"><tt class="methodname">modify_style</tt>()</a> 
method, passing in the returned rc style, to make sure that your changes
take effect.</p><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3><p>Passing the style back to the <a href="class-gtkwidget.html#method-gtkwidget--modify-style" title="gtk.Widget.modify_style"><tt class="methodname">modify_style</tt>()</a> 
method will normally end up destroying it, because the <a href="class-gtkwidget.html#method-gtkwidget--modify-style" title="gtk.Widget.modify_style"><tt class="methodname">modify_style</tt>()</a> 
method copies the passed-in style and sets the copy as the new modifier
style, thus dropping any reference to the old modifier style.</p></div></div><div class="refsect2" lang="en"><a name="method-gtkwidget--modify-fg"></a><h3>gtk.Widget.modify_fg</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">modify_fg</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>state</tt></b>:</span></td><td>a widget state.</td></tr><tr><td><span class="term"><b class="parameter"><tt>color</tt></b>:</span></td><td>the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> to
assign.</td></tr></tbody></table><p>The <tt class="methodname">modify_fg</tt>() method sets the
foreground color to the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>
specified by <i class="parameter"><tt>color</tt></i> for the widget in the specified
<i class="parameter"><tt>state</tt></i>. All other style values are left untouched. The
value of state must be one of the <a href="gtk-constants.html#gtk-state-type-constants">GTK State Type Constants</a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--modify-bg"></a><h3>gtk.Widget.modify_bg</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">modify_bg</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>state</tt></b>:</span></td><td>a widget state.</td></tr><tr><td><span class="term"><b class="parameter"><tt>color</tt></b>:</span></td><td>the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> to
assign</td></tr></tbody></table><p>The <tt class="methodname">modify_bg</tt>() method sets the
background color to the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>
specified by <i class="parameter"><tt>color</tt></i> for the widget in the specified
<i class="parameter"><tt>state</tt></i>. All other style values are left untouched. See
<a href="class-gtkwidget.html#method-gtkwidget--modify-fg" title="gtk.Widget.modify_fg"><tt class="methodname">modify_fg</tt>()</a> 
method for detail on the possible values of
<i class="parameter"><tt>state</tt></i>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p><tt class="methodname">modify_bg</tt>() only affects widgets that
have an associated <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>. Widgets
that do not have an associated window include <a href="class-gtkarrow.html" title="gtk.Arrow"><tt class="classname">gtk.Arrow</tt></a>, <a href="class-gtkbin.html" title="gtk.Bin"><tt class="classname">gtk.Bin</tt></a>, <a href="class-gtkbox.html" title="gtk.Box"><tt class="classname">gtk.Box</tt></a>, <a href="class-gtkbutton.html" title="gtk.Button"><tt class="classname">gtk.Button</tt></a>, <a href="class-gtkcheckbutton.html" title="gtk.CheckButton"><tt class="classname">gtk.CheckButton</tt></a>,
<a href="class-gtkfixed.html" title="gtk.Fixed"><tt class="classname">gtk.Fixed</tt></a>,
<a href="class-gtkimage.html" title="gtk.Image"><tt class="classname">gtk.Image</tt></a>,
<a href="class-gtklabel.html" title="gtk.Label"><tt class="classname">gtk.Label</tt></a>,
<a href="class-gtkmenuitem.html" title="gtk.MenuItem"><tt class="classname">gtk.MenuItem</tt></a>,
<a href="class-gtknotebook.html" title="gtk.Notebook"><tt class="classname">gtk.Notebook</tt></a>,
<a href="class-gtkpaned.html" title="gtk.Paned"><tt class="classname">gtk.Paned</tt></a>,
<a href="class-gtkradiobutton.html" title="gtk.RadioButton"><tt class="classname">gtk.RadioButton</tt></a>,
<a href="class-gtkrange.html" title="gtk.Range"><tt class="classname">gtk.Range</tt></a>,
<a href="class-gtkscrolledwindow.html" title="gtk.ScrolledWindow"><tt class="classname">gtk.ScrolledWindow</tt></a>,
<a href="class-gtkseparator.html" title="gtk.Separator"><tt class="classname">gtk.Separator</tt></a>,
<a href="class-gtktable.html" title="gtk.Table"><tt class="classname">gtk.Table</tt></a>,
<a href="class-gtktoolbar.html" title="gtk.Toolbar"><tt class="classname">gtk.Toolbar</tt></a>,
<a href="class-gtkaspectframe.html" title="gtk.AspectFrame"><tt class="classname">gtk.AspectFrame</tt></a>,
<a href="class-gtkframe.html" title="gtk.Frame"><tt class="classname">gtk.Frame</tt></a>,
<a href="class-gtkvbox.html" title="gtk.VBox"><tt class="classname">gtk.VBox</tt></a>, <a href="class-gtkhbox.html" title="gtk.HBox"><tt class="classname">gtk.HBox</tt></a>, <a href="class-gtkvseparator.html" title="gtk.VSeparator"><tt class="classname">gtk.VSeparator</tt></a>,
<a href="class-gtkhseparator.html" title="gtk.HSeparator"><tt class="classname">gtk.HSeparator</tt></a>. These
widgets can be added to a <a href="class-gtkeventbox.html" title="gtk.EventBox"><tt class="classname">gtk.EventBox</tt></a> to
overcome this limitation.</p></div></div><div class="refsect2" lang="en"><a name="method-gtkwidget--modify-text"></a><h3>gtk.Widget.modify_text</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">modify_text</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>state</tt></b>:</span></td><td>a widget state.</td></tr><tr><td><span class="term"><b class="parameter"><tt>color</tt></b>:</span></td><td>the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> to
assign.</td></tr></tbody></table><p>The <tt class="methodname">modify_text</tt>() method sets the text
color to the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>
specified by <i class="parameter"><tt>color</tt></i> for the widget in the specified
<i class="parameter"><tt>state</tt></i>. All other style values are left untouched. The
text color is the foreground color used along with the base color (see the
<a href="class-gtkwidget.html#method-gtkwidget--modify-base" title="gtk.Widget.modify_base"><tt class="methodname">modify_base</tt>()</a> 
method) for widgets such as <a href="class-gtkentry.html" title="gtk.Entry"><tt class="classname">gtk.Entry</tt></a> and <a href="class-gtktextview.html" title="gtk.TextView"><tt class="classname">gtk.TextView</tt></a>. See
the <a href="class-gtkwidget.html#method-gtkwidget--modify-fg" title="gtk.Widget.modify_fg"><tt class="methodname">modify_fg</tt>()</a> 
method for detail on the possible values of
<i class="parameter"><tt>state</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--modify-base"></a><h3>gtk.Widget.modify_base</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">modify_base</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>state</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>color</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>state</tt></b>:</span></td><td>a widget state.</td></tr><tr><td><span class="term"><b class="parameter"><tt>color</tt></b>:</span></td><td>the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a> to
assign</td></tr></tbody></table><p>The <tt class="methodname">modify_base</tt>() method sets the base
color to the <a href="class-gdkcolor.html" title="gtk.gdk.Color"><tt class="classname">gtk.gdk.Color</tt></a>
specified by <i class="parameter"><tt>color</tt></i> for the widget in the specified
<i class="parameter"><tt>state</tt></i>. All other style values are left untouched. The
base color is the background color used along with the text color (see the
<a href="class-gtkwidget.html#method-gtkwidget--modify-text" title="gtk.Widget.modify_text"><tt class="methodname">modify_text</tt>()</a> 
method) for widgets such as <a href="class-gtkentry.html" title="gtk.Entry"><tt class="classname">gtk.Entry</tt></a> and <a href="class-gtktextview.html" title="gtk.TextView"><tt class="classname">gtk.TextView</tt></a>. See
<a href="class-gtkwidget.html#method-gtkwidget--modify-fg" title="gtk.Widget.modify_fg"><tt class="methodname">modify_fg</tt>()</a> 
method for detail on the possible values of
<i class="parameter"><tt>state</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--modify-font"></a><h3>gtk.Widget.modify_font</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">modify_font</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>font_desc</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>font_desc</tt></b>:</span></td><td>a font description to use</td></tr></tbody></table><p>The <tt class="methodname">modify_font</tt>() method sets the font
to use to the value specified by <i class="parameter"><tt>font_desc</tt></i> for the
widget. All other style values are left untouched.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--create-pango-context"></a><h3>gtk.Widget.create_pango_context</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">create_pango_context</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the new <a href="class-pangocontext.html" title="pango.Context"><tt class="classname">pango.Context</tt></a></td></tr></tbody></table><p>The <tt class="methodname">create_pango_context</tt>() method
creates a new <a href="class-pangocontext.html" title="pango.Context"><tt class="classname">pango.Context</tt></a>
with the appropriate colormap, font description, and base direction for
drawing text for this widget. See the <a href="class-gtkwidget.html#method-gtkwidget--get-pango-context" title="gtk.Widget.get_pango_context"><tt class="methodname">get_pango_context</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-pango-context"></a><h3>gtk.Widget.get_pango_context</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_pango_context</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the <a href="class-pangocontext.html" title="pango.Context"><tt class="classname">pango.Context</tt></a> for
the widget.</td></tr></tbody></table><p>The <tt class="methodname">get_pango_context</tt>() method returns
the <a href="class-pangocontext.html" title="pango.Context"><tt class="classname">pango.Context</tt></a>
with the appropriate colormap, font description and base direction for this
widget. Unlike the context returned by the <a href="class-gtkwidget.html#method-gtkwidget--create-pango-context" title="gtk.Widget.create_pango_context"><tt class="methodname">create_pango_context</tt>()</a> 
method, this context is owned by the widget (it can be used as long as
widget exists), and will be updated to match any changes to the widget's
attributes.</p><p>If you create and keep a <a href="class-pangolayout.html" title="pango.Layout"><tt class="classname">pango.Layout</tt></a> using
this context, you must deal with changes to the context by calling the <a href="class-pangolayout.html#method-pangolayout--context-changed" title="pango.Layout.context_changed"><tt class="methodname">pango.Layout.context_changed</tt>()</a> 
method on the layout in response to the "style-set" and "direction-set"
signals for the widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--create-pango-layout"></a><h3>gtk.Widget.create_pango_layout</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">create_pango_layout</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>text</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>text</tt></b>:</span></td><td>the text to set on the
layout</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the new <a href="class-pangolayout.html" title="pango.Layout"><tt class="classname">pango.Layout</tt></a></td></tr></tbody></table><p>The <tt class="methodname">create_pango_layout</tt>() method
creates a new <a href="class-pangolayout.html" title="pango.Layout"><tt class="classname">pango.Layout</tt></a> with
the appropriate colormap, font description, and base direction for drawing
the specified <i class="parameter"><tt>text</tt></i> for this widget. If you keep a
<a href="class-pangolayout.html" title="pango.Layout"><tt class="classname">pango.Layout</tt></a>
created by this method, you must call <a href="class-pangolayout.html#method-pangolayout--context-changed" title="pango.Layout.context_changed"><tt class="methodname">pango.Layout.context_changed()</tt></a> 
in response to the "style-set" and "direction-set" signals for the widget to
notify the layout of changes to the base direction or font of this
widget.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--render-icon"></a><h3>gtk.Widget.render_icon</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">render_icon</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>stock_id</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>size</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>detail</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>stock_id</tt></b>:</span></td><td>a stock ID</td></tr><tr><td><span class="term"><b class="parameter"><tt>size</tt></b>:</span></td><td>a stock size</td></tr><tr><td><span class="term"><b class="parameter"><tt>detail</tt></b>:</span></td><td>the render detail to pass to the theme
engine</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new pixbuf, or <tt class="literal">None</tt> if the
stock ID wasn't known</td></tr></tbody></table><p>The <tt class="methodname">render_icon</tt>() method is a
convenience method that uses the theme engine and RC file settings for the
widget to look up the stock icon specified by
<i class="parameter"><tt>stock_id</tt></i> of the specified <i class="parameter"><tt>size</tt></i>
and to render it to a pixbuf that is returned.
<i class="parameter"><tt>stock_id</tt></i> should be a stock icon ID such as
<tt class="literal">gtk.STOCK_OPEN</tt> or <tt class="literal">gtk.STOCK_OK</tt>.
<i class="parameter"><tt>size</tt></i> should be one of the <a href="gtk-constants.html#gtk-icon-size-constants">GTK Icon Size Constants</a>:</p><p><i class="parameter"><tt>detail</tt></i> should be a string that identifies
the widget or code doing the rendering, so that theme engines can
special-case rendering for that widget or code.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-composite-name"></a><h3>gtk.Widget.set_composite_name</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_composite_name</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>name</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>name</tt></b>:</span></td><td>the name to set.</td></tr></tbody></table><p>The <tt class="methodname">set_composite_name</tt>() method sets a
widgets composite name to the value specified by
<i class="parameter"><tt>name</tt></i>. The widget must be a composite child of its
parent</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-composite-name"></a><h3>gtk.Widget.get_composite_name</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_composite_name</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the composite name of the widget or
<tt class="literal">None</tt></td></tr></tbody></table><p>The <tt class="methodname">get_composite_name</tt>() method returns
the composite name of a widget or <tt class="literal">None</tt> if the widget is
not a composite.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--reset-rc-styles"></a><h3>gtk.Widget.reset_rc_styles</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">reset_rc_styles</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">reset_rc_styles</tt>() method resets the
styles of widget and all descendants to the correct values for the currently
loaded RC file settings. This method is not useful for applications.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--style-get-property"></a><h3>gtk.Widget.style_get_property</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">style_get_property</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>property_name</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>property_name</tt></b>:</span></td><td>the name of a style property</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the property value</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">style_get_property</tt>() method returns
the value of a style property specified by
<i class="parameter"><tt>property_name</tt></i>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--set-direction"></a><h3>gtk.Widget.set_direction</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_direction</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>dir</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>dir</tt></b>:</span></td><td>the new direction</td></tr></tbody></table><p>The <tt class="methodname">set_direction</tt>() method sets the
"direction" property to the value specified by <i class="parameter"><tt>dir</tt></i>.
The "direction" property determines the reading direction of the widget that
controls the primary direction for widgets containing text, and also the
direction in which the children of a container are packed. The ability to
set the direction is to handle localization for languages with right-to-left
reading directions. Generally, applications will use the default reading
direction, except for containers that are arranged in an order that is
explicitly visual rather than logical (such as buttons for text
justification). The values of <i class="parameter"><tt>dir</tt></i> must be one of the
<a href="gtk-constants.html#gtk-text-direction-constants">GTK Text Direction Constants</a>.</p><p>If the direction is set to <tt class="literal">gtk.TEXT_DIR_NONE</tt>,
then the value set by the <a href="class-gtkwidget.html#function-gtk--widget-set-default-direction" title="gtk.widget_set_default_direction"><tt class="function">gtk.widget.set_default_direction</tt>()</a>
function will be used.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--get-direction"></a><h3>gtk.Widget.get_direction</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_direction</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the reading direction for the
widget.</td></tr></tbody></table><p>The <tt class="methodname">get_direction</tt>() method returns the
reading direction for the widget. See the <a href="class-gtkwidget.html#method-gtkwidget--set-direction" title="gtk.Widget.set_direction"><tt class="methodname">set_direction</tt>()</a> 
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--shape-combine-mask"></a><h3>gtk.Widget.shape_combine_mask</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">shape_combine_mask</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>shape_mask</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>offset_x</tt></b></span></span>, <span class="methodparam"><span class="parameter"><b class="parameter"><tt>offset_y</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>shape_mask</tt></b>:</span></td><td>the shape to be added.</td></tr><tr><td><span class="term"><b class="parameter"><tt>offset_x</tt></b>:</span></td><td>the X position of shape mask with respect to
the widget's <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>.</td></tr><tr><td><span class="term"><b class="parameter"><tt>offset_y</tt></b>:</span></td><td>Y position of shape mask with respect to the
widget's <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a>.</td></tr></tbody></table><p>The <tt class="methodname">shape_combine_mask</tt>() method sets a
shape for the widget's <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> using
the mask specified by <i class="parameter"><tt>shape_mask</tt></i> at the location
specified by <i class="parameter"><tt>offset_x</tt></i> and
<i class="parameter"><tt>offset_y</tt></i>. This allows for transparent windows etc.,
see the <a href="class-gdkwindow.html#method-gdkwindow--shape-combine-mask" title="gtk.gdk.Window.shape_combine_mask"><tt class="methodname">gtk.gdk.Window.shape_combine_mask</tt>()</a> 
method for more information.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--reset-shapes"></a><h3>gtk.Widget.reset_shapes</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">reset_shapes</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">reset_shapes</tt>() method recursively
resets the shapes of the widget and its descendants.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--path"></a><h3>gtk.Widget.path</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">path</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the widget's path</td></tr></tbody></table><p>The <tt class="methodname">path</tt>() method returns the full path
to the widget. The path is simply the name of a widget and all its parents
in the container hierarchy, separated by periods. The name of a widget comes
from the <a href="class-gtkwidget.html#method-gtkwidget--get-name" title="gtk.Widget.get_name"><tt class="methodname">get_name</tt>()</a> 
method. Paths are used to apply styles to a widget in gtkrc configuration
files.  Widget names are the type of the widget by default (e.g.
"GtkButton") or can be set to an application-specific value with the <a href="class-gtkwidget.html#method-gtkwidget--set-name" title="gtk.Widget.set_name"><tt class="methodname">set_name</tt>()</a> 
method.  By setting the name of a widget, you allow users or theme authors
to apply styles to that specific widget in their gtkrc file.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--class-path"></a><h3>gtk.Widget.class_path</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">class_path</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the widget's class path</td></tr></tbody></table><p>The <tt class="methodname">class_path</tt>() method is similar to
the <a href="class-gtkwidget.html#method-gtkwidget--path" title="gtk.Widget.path"><tt class="methodname">path</tt>()</a>
method, but does not use a custom name set with the <a href="class-gtkwidget.html#method-gtkwidget--set-name" title="gtk.Widget.set_name"><tt class="methodname">set_name</tt>()</a> 
(e.g. always uses "GtkButton" even if a custom name is available).</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--list-mnemonic-labels"></a><h3>gtk.Widget.list_mnemonic_labels</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">list_mnemonic_labels</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the list of mnemonic labels</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">list_mnemonic_labels</tt>() method
returns a list of the widgets, normally labels, for which this widget is a
the target of a mnemonic (see for example, the <a href="class-gtklabel.html#method-gtklabel--set-mnemonic-widget" title="gtk.Label.set_mnemonic_widget"><tt class="function">gtk.Label.set_mnemonic_widget()</tt></a>
method).</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--add-mnemonic-label"></a><h3>gtk.Widget.add_mnemonic_label</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">add_mnemonic_label</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>label</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>label</tt></i>:</span></td><td>a <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a>
	  that acts as a mnemonic label.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">add_mnemonic_label</tt>() method adds
the widget specified by <i class="parameter"><tt>label</tt></i> to the list of mnemonic
labels for the widget.(See the <a href="class-gtkwidget.html#method-gtkwidget--list-mnemonic-labels" title="gtk.Widget.list_mnemonic_labels"><tt class="methodname">list_mnemonic_labels()</tt></a>
method for more detail).</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--remove-mnemonic-label"></a><h3>gtk.Widget.remove_mnemonic_label</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">remove_mnemonic_label</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>label</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>label</tt></i>:</span></td><td>a <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a>
	  that was previously set as a mnemonic label.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <tt class="methodname">remove_mnemonic_label</tt>() method
removes the widget specified by <i class="parameter"><tt>label</tt></i> from the list
of mnemonic labels for the widget. (See the <a href="class-gtkwidget.html#method-gtkwidget--list-mnemonic-labels" title="gtk.Widget.list_mnemonic_labels"><tt class="methodname">list_mnemonic_labels()</tt></a>
method). <i class="parameter"><tt>label</tt></i> must have previously been added to the
list with the <a href="class-gtkwidget.html#method-gtkwidget--add-mnemonic-label" title="gtk.Widget.add_mnemonic_label"><tt class="methodname">add_mnemonic_label()</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkwidget--menu-get-for-attach-widget"></a><h3>gtk.Widget.menu_get_for_attach_widget</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">menu_get_for_attach_widget</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt></tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a list of menus attached to this widget.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.6 and above.</p></div><p>The <tt class="methodname">menu_get_for_attach_widget</tt>() method
returns a list of the menus that are attached to this widget.</p></div></div><div class="refsect1" lang="en"><a name="id3639689"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--widget-push-colormap"></a><h3>gtk.widget_push_colormap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_push_colormap</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>cmap</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>cmap</tt></b>:</span></td><td>a <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a></td></tr></tbody></table><p>The <tt class="function">gtk.widget_push_colormap</tt>() function
pushes the <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
specified by <i class="parameter"><tt>cmap</tt></i> onto a global stack of colormaps.
The topmost colormap on the stack will be used when creating widgets. Remove
<i class="parameter"><tt>cmap</tt></i> with the <a href="class-gtkwidget.html#function-gtk--widget-pop-colormap" title="gtk.widget_pop_colormap"><tt class="function">gtk.widget_pop_colormap</tt>()</a> 
function. There's little reason to use this function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-push-composite-child"></a><h3>gtk.widget_push_composite_child</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_push_composite_child</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="function">gtk.widget_push_composite_child</tt>()
function creates all new widgets as composite children until the
corresponding <a href="class-gtkwidget.html#function-gtk--widget-pop-composite-child" title="gtk.widget_pop_composite_child"><tt class="function">gtk.widget_pop_composite_child</tt>()</a> 
function call. A composite child is a child that's an implementation detail
of the container it's inside and should not be visible to people using the
container. Composite children aren't treated differently (but see the <a href="class-gtkcontainer.html#method-gtkcontainer--foreach" title="gtk.Container.foreach"><tt class="methodname">gtk.Container.foreach</tt>()</a> 
method vs. the <a href="class-gtkcontainer.html#method-gtkcontainer--forall" title="gtk.Container.forall"><tt class="methodname">gtk.Container.forall</tt>()</a> 
method), but e.g. GUI builders might want to treat them in a different
way.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-pop-composite-child"></a><h3>gtk.widget_pop_composite_child</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_pop_composite_child</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="function">gtk.widget_pop_composite_child</tt>()
function cancels the effect of a previous call to the <a href="class-gtkwidget.html#function-gtk--widget-push-composite-child" title="gtk.widget_push_composite_child"><tt class="function">gtk.widget_push_composite_child</tt>()</a> 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-pop-colormap"></a><h3>gtk.widget_pop_colormap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_pop_colormap</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="function">gtk.widget_pop_colormap</tt>() function
removes the <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
on the top of the global stack of colormaps. This function reverses the
effect of the <a href="class-gtkwidget.html#function-gtk--widget-push-colormap" title="gtk.widget_push_colormap"><tt class="function">gtk.widget_push_colormap</tt>()</a>
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-get-default-style"></a><h3>gtk.widget_get_default_style</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_get_default_style</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the default <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a></td></tr></tbody></table><p>The <tt class="function">gtk.widget_get_default_style</tt>() function
returns the default <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> used by all
newly created widgets</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-set-default-colormap"></a><h3>gtk.widget_set_default_colormap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_set_default_colormap</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>colormap</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>colormap</tt></b>:</span></td><td>a <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
object</td></tr></tbody></table><p>The <tt class="function">gtk.widget_set_default_colormap</tt>()
function sets the default <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
to use when creating widgets to the value specified by
<i class="parameter"><tt>colormap</tt></i>. The <a href="class-gtkwidget.html#function-gtk--widget-push-colormap" title="gtk.widget_push_colormap"><tt class="function">gtk.widget_push_colormap</tt>()</a> 
function is a better function to use if you only want to affect a few
widgets, rather than all widgets.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-get-default-colormap"></a><h3>gtk.widget_get_default_colormap</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_get_default_colormap</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the default <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
object</td></tr></tbody></table><p>The <tt class="function">gtk.widget_get_default_colormap</tt>()
function returns the default <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>
used when creating new widgets.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-get-default-visual"></a><h3>gtk.widget_get_default_visual</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_get_default_visual</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the default <a href="class-gdkvisual.html" title="gtk.gdk.Visual"><tt class="classname">gtk.gdk.Visual</tt></a>
object</td></tr></tbody></table><p>The <tt class="function">gtk.widget_get_default_visual</tt>()
function returns the default <a href="class-gdkvisual.html" title="gtk.gdk.Visual"><tt class="classname">gtk.gdk.Visual</tt></a> of
the default <a href="class-gdkcolormap.html" title="gtk.gdk.Colormap"><tt class="classname">gtk.gdk.Colormap</tt></a>.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-set-default-direction"></a><h3>gtk.widget_set_default_direction</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_set_default_direction</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>dir</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>dir</tt></b>:</span></td><td>the new default direction - either
<tt class="literal">gtk.TEXT_DIR_RTL</tt> or
<tt class="literal">gtk.TEXT_DIR_LTR</tt>.</td></tr></tbody></table><p>The <tt class="function">gtk.widget_set_default_direction</tt>()
function sets the default text direction to the value specified by
<i class="parameter"><tt>dir</tt></i>. The value of <i class="parameter"><tt>dir</tt></i> must be
either <tt class="literal">gtk.TEXT_DIR_RTL</tt> or
<tt class="literal">gtk.TEXT_DIR_LTR</tt>. The default text direction is used for
widgets that have not had a text direction set by the <a href="class-gtkwidget.html#method-gtkwidget--set-direction" title="gtk.Widget.set_direction"><tt class="methodname">set_direction</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-get-default-direction"></a><h3>gtk.widget_get_default_direction</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_get_default_direction</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the default text direction</td></tr></tbody></table><p>The <tt class="function">gtk.widget_get_default_direction</tt>()
function returns the default text direction as set by the <a href="class-gtkwidget.html#function-gtk--widget-set-default-direction" title="gtk.widget_set_default_direction"><tt class="function">gtk.widget_set_default_direction</tt>()</a> 
function.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-list-style-properties"></a><h3>gtk.widget_list_style_properties</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_list_style_properties</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a list of style properties as GParam objects </td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.4 and above.</p></div><p>The <tt class="function">gtk.widget_list_style_properties</tt>()
function returns a list of the style properties of the <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a> specified
by <i class="parameter"><tt>widget</tt></i>. The list contains a GParam object for each
style property.</p></div><div class="refsect2" lang="en"><a name="function-gtk--widget-class-install-style-property"></a><h3>gtk.widget_class_install_style_property</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.widget_class_install_style_property</span>(<span class="methodparam"><span class="parameter"><b class="parameter"><tt>widget</tt></b></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><b class="parameter"><tt>widget</tt></b>:</span></td><td>a <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a></td></tr><tr><td><span class="term"><b class="parameter"><tt>pspec</tt></b>:</span></td><td>a 4-tuple containing the property spec</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.4 and above.</p></div><p>The
<tt class="function">gtk.widget_class_install_style_property</tt>() function
installs the style property specified by <i class="parameter"><tt>pspec</tt></i> on the
<a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a>
specified by <i class="parameter"><tt>widget</tt></i>. <i class="parameter"><tt>pspec</tt></i> is
a 4-tuple containing the property name, the property type, a nickname (or
<tt class="literal">None</tt>) and a description of the property (or None).</p><p>This function raises the TypeError exception if
<i class="parameter"><tt>widget</tt></i> is not a <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a> or if the
property is already installed.</p></div></div><div class="refsect1" lang="en"><a name="id3640649"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtkwidget--accel-closures-changed"></a><h3>The "accel-closures-changed" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "accel-closures-changed" signal is emitted when an
accelerator is added to or removed from the <a href="class-gtkaccelgroup.html" title="gtk.AccelGroup"><tt class="classname">gtk.AccelGroup</tt></a>
for <i class="parameter"><tt>widget</tt></i> or an accelerator path is setup.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--button-press-event"></a><h3>The "button-press-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "button-press-event" signal is emitted when a mouse button
is pressed.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--button-release-event"></a><h3>The "button-release-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "button-release-event" signal is emitted when a mouse button
is released.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--can-activate-accel"></a><h3>The "can-activate-accel" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>signal_id</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>signal_id</tt></i>:</span></td><td> the ID of a signal installed on
	  <i class="parameter"><tt>widget</tt></i></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.4 and above.</p></div><p>The "can-activate-accel" signal is emitted when an accelerator
is about to activate <i class="parameter"><tt>widget</tt></i>. The handler determines
if the accelerator that activates the signal identified by
<i class="parameter"><tt>signal_id</tt></i> can currently be activated. This signal is
present to allow applications and derived widgets to override the default
GtkWidget handling for determining whether an accelerator can be
activated.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--child-notify"></a><h3>The "child-notify" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>child_property</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>child_property</tt></i>:</span></td><td>the name of a child property</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "child-notify" signal is emitted when
<i class="parameter"><tt>child_property</tt></i> is changed.</p><p>Child properties are available with objects derived from <a href="class-gtkcontainer.html" title="gtk.Container"><tt class="classname">gtk.Container</tt></a>. Those
properties are not specific to either the container or the child widget but
to their relation. For example, the "pack-type" property of <a href="class-gtkbox.html" title="gtk.Box"><tt class="classname">gtk.Box</tt></a> or the
"menu-label" property of <a href="class-gtknotebook.html" title="gtk.Notebook"><tt class="classname">gtk.Notebook</tt></a> are
child properties.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--client-event"></a><h3>The "client-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "client-event" signal is emitted when another application
has sent an event to <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--configure-event"></a><h3>The "configure-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "configure-event" signal is emitted when the widget's window
is allocated a size and width.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--delete-event"></a><h3>The "delete-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "delete-event" signal is emitted when a request is made to
delete <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--destroy-event"></a><h3>The "destroy-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "destroy-event" signal is emitted when a <a href="class-gdkwindow.html" title="gtk.gdk.Window"><tt class="classname">gtk.gdk.Window</tt></a> is
destroyed.  You rarely get this signal, because most widgets disconnect
themselves from their window before they destroy it, so no widget owns the
window at destroy time.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--direction-changed"></a><h3>The "direction-changed" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>direction</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>direction</tt></i>:</span></td><td>the previous direction:
<tt class="literal">gtk.TEXT_DIR_NONE</tt>, <tt class="literal">gtk.TEXT_DIR_LTR</tt> or
<tt class="literal">gtk.TEXT_DIR_RTL</tt></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "direction-changed" signal is emitted when the reading
direction of <i class="parameter"><tt>widget</tt></i> is changed (usually with the
<a href="class-gtkwidget.html#method-gtkwidget--set-direction" title="gtk.Widget.set_direction"><tt class="methodname">set_direction</tt>()</a> 
method)</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-begin"></a><h3>The "drag-begin" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "drag-begin" signal is emitted when the user initiates a
drag operation on <i class="parameter"><tt>widget</tt></i>. A typical reason to connect
to this signal is to set up a custom drag icon with the <a href="class-gtkwidget.html#method-gtkwidget--drag-source-set-icon" title="gtk.Widget.drag_source_set_icon"><tt class="methodname">drag_source_set_icon</tt>()</a>
method.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-data-delete"></a><h3>The "drag-data-delete" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "drag-data-delete" signal is emitted when the drag completes
a move operation and requires the source data to be deleted. The signal
handler is responsible for deleting the data that has been dropped.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-data-get"></a><h3>The "drag-data-get" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>info</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>selection_data</tt></i>:</span></td><td>a <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a> object</td></tr><tr><td><span class="term"><i class="parameter"><tt>info</tt></i>:</span></td><td>an integer ID for the drag</td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time of the drag event</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "drag-data-get" signal is emitted when a drag operation
completes that copies data or when a drag drop occurs using the
<tt class="literal">gtk.gdk.DRAG_PROTO_ROOTWIN</tt> protocol. The drag source
rev=ceives this signal when the drag destination requests the data using the
<a href="class-gtkwidget.html#method-gtkwidget--drag-get-data" title="gtk.Widget.drag_get_data"><tt class="methodname">drag_get_data</tt>()</a>
method. The handler needs to fill <i class="parameter"><tt>selection_data</tt></i> with
the data in the format specified by the target associated with
<i class="parameter"><tt>info</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-data-received"></a><h3>The "drag-data-received" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>x</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>y</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>info</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i>:</span></td><td>the X position of the drop</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i>:</span></td><td>the Y position of the drop</td></tr><tr><td><span class="term"><i class="parameter"><tt>selection_data</tt></i>:</span></td><td>a <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a> 
object</td></tr><tr><td><span class="term"><i class="parameter"><tt>info</tt></i>:</span></td><td>an integer ID for the drag</td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time of the drag event</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "drag-data-received" signal is emitted when the drag
destination receives the data from the drag operation. If the data was
received in order to determine whether the drop will be accepted, the
handler is expected to call the <a href="class-gdkdragcontext.html#method-gdkdragcontext--drag-status" title="gtk.gdk.DragContext.drag_status"><tt class="methodname">gtk.gdk.DragContext.drag_status</tt>()</a>
method and not finish the drag. If the data was received in response to a
"drag-drop" signal (and this is the last target to be received), the handler
for this signal is expected to process the received data and then call the
<a href="class-gdkdragcontext.html#method-gdkdragcontext--finish" title="gtk.gdk.DragContext.finish"><tt class="methodname">gtk.gdk.DragContext.finish</tt>()</a>
method, setting the <i class="parameter"><tt>success</tt></i> parameter to
<tt class="literal">TRUE</tt> if the data was processed successfully.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-drop"></a><h3>The "drag-drop" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>x</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>y</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i>:</span></td><td>the X position of the drop</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i>:</span></td><td>the Y position of the drop</td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time of the drag event</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the cursor is in a
	drop zone</td></tr></tbody></table><p>The "drag-drop" signal is emitted when the drag initiates a drop
operation on the destination <i class="parameter"><tt>widget</tt></i>. The signal
handler must determine whether the cursor position is in a drop zone or
not. If it is not in a drop zone, it returns <tt class="literal">FALSE</tt> and no
further processing is necessary. Otherwise, the handler returns
<tt class="literal">TRUE</tt>. In this case, the handler must ensure that the
<a href="class-gdkdragcontext.html#method-gdkdragcontext--finish" title="gtk.gdk.DragContext.finish"><tt class="methodname">gtk.gdk.DragContext.finish</tt>()</a>
method is called to let the source know that the drop is done. The call to
the <a href="class-gdkdragcontext.html#method-gdkdragcontext--finish" title="gtk.gdk.DragContext.finish"><tt class="methodname">gtk.gdk.DragContext.finish</tt>()</a>
method can be done either directly or in a "drag-data-received" handler that
gets triggered by calling the <a href="class-gtkwidget.html#method-gtkwidget--drag-get-data" title="gtk.Widget.drag_get_data"><tt class="methodname">drag_get_data</tt>()</a>
method to receive the data for one or more of the supported targets.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-end"></a><h3>The "drag-end" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "drag-end" signal is emitted when the drag operation is
completed. A typical reason to connect to this signal is to undo things done
in a "drag-begin" handler.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-leave"></a><h3>The "drag-leave" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time of the drag event</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "drag-leave" signal is emitted when the drag operation moves
off of a drop target widget. A typical reason to connect to this signal is
to undo things done in a "drag-motion" handler, e.g. undo highlighting with
the <a href="class-gtkwidget.html#method-gtkwidget--drag-unhighlight" title="gtk.Widget.drag_unhighlight"><tt class="methodname">drag_unhighlight</tt>()</a>
method.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--drag-motion"></a><h3>The "drag-motion" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>drag_context</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>x</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>y</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>drag_context</tt></i>:</span></td><td>the <a href="class-gdkdragcontext.html" title="gtk.gdk.DragContext"><tt class="classname">gtk.gdk.DragContext</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i>:</span></td><td>the X position of the drop</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i>:</span></td><td>the Y position of the drop</td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time of the drag event</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if the cursor is in a
	drop zone</td></tr></tbody></table><p>The "drag-motion" signal is emitted when the drag operation
moves over a drop target widget. The signal handler must determine if the
cursor position is in a drop zone or not. If it is not in a drop zone, it
should return <tt class="literal">FALSE</tt> and no further processing is
necessary. Otherwise, the handler should return <tt class="literal">TRUE</tt>. In
this case, the handler is responsible for providing the necessary
information for displaying feedback to the user, by calling the <a href="class-gdkdragcontext.html#method-gdkdragcontext--drag-status" title="gtk.gdk.DragContext.drag_status"><tt class="methodname">gtk.gdk.DragContext.drag_status</tt>()</a>
method. If the decision to accept or reject the drop can't be made based
solely on the cursor position and the type of the data, the handler may
inspect the dragged data by calling the <a href="class-gtkwidget.html#method-gtkwidget--drag-get-data" title="gtk.Widget.drag_get_data"><tt class="methodname">drag_get_data</tt>()</a>
method and defer the <a href="class-gdkdragcontext.html#method-gdkdragcontext--drag-status" title="gtk.gdk.DragContext.drag_status"><tt class="methodname">gtk.gdk.DragContext.drag_status</tt>()</a>
method call to the "drag-data-received" handler.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There is no "drag-enter" signal. The drag receiver has to keep
track of any "drag-motion" signals received since the last "drag-leave"
signal. The first "drag-motion" signal received after a "drag_leave" signal
should be treated as an "enter" signal. Upon an "enter", the handler will
typically highlight the drop site with the <a href="class-gtkwidget.html#method-gtkwidget--drag-highlight" title="gtk.Widget.drag_highlight"><tt class="methodname">drag_highlight</tt>()</a>
method.</p></div></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--enter-notify-event"></a><h3>The "enter-notify-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "enter-notify-event" signal is emitted when the mouse
pointer enters <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--event"></a><h3>The "event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "event" signal is emitted when any <a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a> occurs
on <i class="parameter"><tt>widget</tt></i>. The "event" signal is emitted before any
of the specific <a href="class-gdkevent.html" title="gtk.gdk.Event"><tt class="classname">gtk.gdk.Event</tt></a> signals
are emitted.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--event-after"></a><h3>The "event-after" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "event-after" signal is emitted after any other event
handling has occurred for <i class="parameter"><tt>widget</tt></i></p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--expose-event"></a><h3>The "expose-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "expose-event" signal is emitted when
<i class="parameter"><tt>widget</tt></i> needs to be repainted because it is first
displayed or has been partially or fully obscured by another window.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--focus"></a><h3>The "focus" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>direction</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>direction</tt></i>:</span></td><td>the direction:
<tt class="literal">gtk.DIR_TAB_FORWARD</tt>,
<tt class="literal">gtk.DIR_TAB_BACKWARD</tt>, <tt class="literal">gtk.DIR_UP</tt>,
<tt class="literal">gtk.DIR_DOWN</tt>, <tt class="literal">gtk.DIR_LEFT</tt> or
<tt class="literal">gtk.DIR_RIGHT</tt></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "focus" signal is emitted when <i class="parameter"><tt>widget</tt></i>
receives the focus.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--focus-in-event"></a><h3>The "focus-in-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "focus-in-event" signal is emitted when the focus changes to
<i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--focus-out-event"></a><h3>The "focus-out-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "focus-out-event" signal is emitted when the focus leaves
<i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--grab-focus"></a><h3>The "grab-focus" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "grab-focus" signal is emitted when
<i class="parameter"><tt>widget</tt></i> grabs the focus usually by calling the <a href="class-gtkwidget.html#method-gtkwidget--grab-focus" title="gtk.Widget.grab_focus"><tt class="methodname">grab_focus</tt>()</a> 
method or by the user using a mnemonic accelerator..</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--grab-notify"></a><h3>The "grab-notify" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>was_grabbed</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>was_grabbed</tt></i>:</span></td><td>if <tt class="literal">TRUE</tt>
<i class="parameter"><tt>widget</tt></i> had grabbed the focus</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "grab-notify" signal is emitted when widget (or its
ancestor) either is grabbing the focus or has the focus grabbed from
it.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--hide"></a><h3>The "hide" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "hide" signal is emitted when <i class="parameter"><tt>widget</tt></i>
is hidden usually by calling the <a href="class-gtkwidget.html#method-gtkwidget--hide" title="gtk.Widget.hide"><tt class="methodname">hide</tt>()</a>
method.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--hierarchy-changed"></a><h3>The "hierarchy-changed" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>previous_toplevel</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>previous_toplevel</tt></i>:</span></td><td>the toplevel widget in the previous hierarchy
containing <i class="parameter"><tt>widget</tt></i></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "hierarchy-changed" signal is emitted when
<i class="parameter"><tt>widget</tt></i> is unparented or has a new parent set.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--key-press-event"></a><h3>The "key-press-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "key-press-event" signal is emitted when the user presses a
key on the keyboard.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--key-release-event"></a><h3>The "key-release-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "key-release-event" signal is emitted when the user releases
a key on the keyboard.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--leave-notify-event"></a><h3>The "leave-notify-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "leave-notify-event" signal is emitted when the mouse
pointer leaves the area of <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--map"></a><h3>The "map" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "map" signal is emitted when <i class="parameter"><tt>widget</tt></i>
requests to be mapped onto the display usually by calling the <a href="class-gtkwidget.html#method-gtkwidget--show" title="gtk.Widget.show"><tt class="methodname">show</tt>()</a> or
<a href="class-gtkwidget.html#method-gtkwidget--map" title="gtk.Widget.map"><tt class="methodname">map</tt>()</a>
methods.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--map-event"></a><h3>The "map-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "map-event" signal is emitted when
<i class="parameter"><tt>widget</tt></i> has been mapped onto the display.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--mnemonic-activate"></a><h3>The "mnemonic-activate" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>group_cycling</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>group_cycling</tt></i>:</span></td><td>if <tt class="literal">TRUE</tt> shifts the focus instead of activating <i class="parameter"><tt>widget</tt></i></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "mnemonic-activate" signal is emitted when the user uses a
mnemonic accelerator to activate <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--motion-notify-event"></a><h3>The "motion-notify-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "motion-notify-event" signal is emitted when the mouse
pointer moves while over <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--no-expose-event"></a><h3>The "no-expose-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr></tbody></table><p>The "no-expose-event" signal is emitted when a no expose event
occurs.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--parent-set"></a><h3>The "parent-set" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>old_parent</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>old_parent</tt></i>:</span></td><td>the previous parent of
<i class="parameter"><tt>widget</tt></i></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "parent-set" signal is emitted when the parent of
<i class="parameter"><tt>widget</tt></i> is set or unset.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--popup-menu"></a><h3>The "popup-menu" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> if a menu was
	activated</td></tr></tbody></table><p>The "popup-menu" signal is emitted when the user presses the
<span><b class="keycap">Shift</b></span>+<span><b class="keycap">F10</b></span> or
<span><b class="keycap">Menu</b></span> keys when <i class="parameter"><tt>widget</tt></i> has the focus
to popup a menu.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--property-notify-event"></a><h3>The "property-notify-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "property-notify-event" signal is emitted when a window
property value has changed. This is used for selection data
retrieval.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--proximity-in-event"></a><h3>The "proximity-in-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "proximity-in-event" (available for devices like touch
screens or graphics tablets) is emitted when the pen touches the tablet or
when the user's finger touches the screen.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--proximity-out-event"></a><h3>The "proximity-out-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "proximity-out-event" (available for devices like touch
screens or graphics tablets) is emitted when the pen leaves the tablet or
when the user's finger leaves the screen.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--realize"></a><h3>The "realize" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "realize" signal is emitted when
<i class="parameter"><tt>widget</tt></i> requests to be realized by calling the <a href="class-gtkwidget.html#method-gtkwidget--realize" title="gtk.Widget.realize"><tt class="methodname">realize</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--screen-changed"></a><h3>The "screen-changed" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>screen</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This signal is available in GTK+ 2.4 and above.</p></div><p>The "screen-changed" signal is emitted when
<i class="parameter"><tt>screen</tt></i> becomes the new <a href="class-gdkscreen.html" title="gtk.gdk.Screen"><tt class="classname">gtk.gdk.Screen</tt></a> for
<i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--scroll-event"></a><h3>The "scroll-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "scroll-event" signal is emitted when widget receives a
scroll event.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--selection-clear-event"></a><h3>The "selection-clear-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "selection-clear-event" signal is emitted when the selection
needs to be cleared.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--selection-get"></a><h3>The "selection-get" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>info</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>selection_data</tt></i>:</span></td><td>a <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a> 
object</td></tr><tr><td><span class="term"><i class="parameter"><tt>info</tt></i>:</span></td><td>an integer ID for the
selection</td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time the event
occurred</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "selection-get" signal is emitted when the selection data is
requested from <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--selection-notify-event"></a><h3>The "selection-notify-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "selection-notify-event" signal is emitted when the
selection owner has responded to the selection conversion request.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--selection-received"></a><h3>The "selection-received" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>selection_data</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>timestamp</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>selection_data</tt></i>:</span></td><td>a <a href="class-gtkselectiondata.html" title="gtk.SelectionData"><tt class="classname">gtk.SelectionData</tt></a> 
object</td></tr><tr><td><span class="term"><i class="parameter"><tt>timestamp</tt></i>:</span></td><td>the time the event
occurred</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "selection-received" signal is emitted when the selection
owner has responded to the request for the selection data.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--selection-request-event"></a><h3>The "selection-request-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "selection-request-event" signal is emitted when a selection
request is made on <i class="parameter"><tt>widget</tt></i>.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--show"></a><h3>The "show" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "show" signal is emitted when <i class="parameter"><tt>widget</tt></i>
requests to be displayed using either the <a href="class-gtkwidget.html#method-gtkwidget--show" title="gtk.Widget.show"><tt class="methodname">show</tt>()</a> or
<a href="class-gtkwidget.html#method-gtkwidget--show-all" title="gtk.Widget.show_all"><tt class="methodname">show_all</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--show-help"></a><h3>The "show-help" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>help_type</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>help_type</tt></i>:</span></td><td>the help type; either
<tt class="literal">gtk.WIDGET_HELP_TOOLTIP</tt> or
<tt class="literal">gtk.WIDGET_HELP_WHATS_THIS</tt></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked.</td></tr></tbody></table><p>The "show-help" signal is emitted when the user presses the
<span><b class="keycap">Control</b></span>+<span><b class="keycap">F1</b></span> key
combination.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--size-allocate"></a><h3>The "size-allocate" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>allocation</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>allocation</tt></i>:</span></td><td>the widget's space allocation in a <a href="class-gdkrectangle.html" title="gtk.gdk.Rectangle"><tt class="classname">gtk.gdk.Rectangle</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "size-allocate" signal is emitted when widget is given a new
space allocation.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--size-request"></a><h3>The "size-request" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>requisition</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>requisition</tt></i>:</span></td><td>the widget's requested size as a <a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "size-request" signal is emitted when a new size is
requested for <i class="parameter"><tt>widget</tt></i> using the <a href="class-gtkwidget.html#method-gtkwidget--set-size-request" title="gtk.Widget.set_size_request"><tt class="methodname">set_size_request</tt>()</a> 
method.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--state-changed"></a><h3>The "state-changed" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>state</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>state</tt></i>:</span></td><td>the previous widget state:
<tt class="literal">gtk.STATE_NORMAL</tt>, <tt class="literal">gtk.STATE_ACTIVE</tt>,
<tt class="literal">gtk.STATE_PRELIGHT</tt>, <tt class="literal">gtk.STATE_SELECTED</tt>
or <tt class="literal">gtk.STATE_INSENSITIVE</tt></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "state-changed" signal is emitted when the state of
<i class="parameter"><tt>widget</tt></i> changes.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--style-set"></a><h3>The "style-set" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>previous_style</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>previous_style</tt></i>:</span></td><td>the previous widget <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a></td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "style-set" signal is emitted when the <a href="class-gtkstyle.html" title="gtk.Style"><tt class="classname">gtk.Style</tt></a> of
<i class="parameter"><tt>widget</tt></i> is set.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--unmap"></a><h3>The "unmap" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "unmap" signal is emitted when <i class="parameter"><tt>widget</tt></i>
requests to be unmapped from the display.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--unmap-event"></a><h3>The "unmap-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "unmap-event" signal is emitted when
<i class="parameter"><tt>widget</tt></i> has been unmapped from the display.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--unrealize"></a><h3>The "unrealize" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr></tbody></table><p>The "unrealize" signal is emitted when
<i class="parameter"><tt>widget</tt></i> requests to be unrealized (i.e. have all its
resources released).</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--visibility-notify-event"></a><h3>The "visibility-notify-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "visibility-notify-event" signal is emitted when the
visibility of <i class="parameter"><tt>widget</tt></i> changes i.e. it has been
obscured or unobscured.</p></div><div class="refsect2" lang="en"><a name="signal-gtkwidget--window-state-event"></a><h3>The "window-state-event" gtk.Widget Signal</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><i class="parameter"><tt>widget</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>event</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>user_param1</tt></i></span></span>, <span class="methodparam"><span class="parameter"><i class="parameter"><tt>...</tt></i></span></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i>:</span></td><td>the widget that received the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>event</tt></i>:</span></td><td>the event that triggered the
signal</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_param1</tt></i>:</span></td><td>the first user parameter (if any) specified
with the <a href="class-gobject.html#method-gobject--connect" title="gobject.GObject.connect"><tt class="methodname">connect</tt>()</a>
method</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i>:</span></td><td>additional user parameters (if
any)</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td><tt class="literal">TRUE</tt> to stop other handlers
	from being invoked for the event. <tt class="literal">FALSE</tt> to
	propagate the event further.</td></tr></tbody></table><p>The "window-state-event" signal is emitted when window state of
widget changes. For example, for a toplevel window this event is signaled
when the window is iconified, deiconified, minimized, maximized, made
sticky, made not sticky, shaded or unshaded.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkviewport.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtkwindow.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Viewport</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.Window</td></tr></table></div></body></html>