File: wx.aui.AuiNotebook.txt

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (1181 lines) | stat: -rw-r--r-- 27,685 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
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2018 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc



.. _wx.aui.AuiNotebook:

==========================================================================================================================================
|phoenix_title|  **wx.aui.AuiNotebook**
==========================================================================================================================================

:ref:`wx.aui.AuiNotebook`  is part of the ``AUI`` class framework, which represents a notebook control, managing multiple windows with associated tabs.          

See also :ref:`AUI Overview <aui overview>`. 

:ref:`wx.aui.AuiNotebook`  is a notebook control which implements many features common in applications with dockable panes. Specifically, :ref:`wx.aui.AuiNotebook`  implements functionality which allows the user to rearrange tab order via drag-and-drop, split the tab window into many different splitter configurations, and toggle through different themes to customize the control's look and feel. 

The default theme that is used is :ref:`wx.aui.AuiDefaultTabArt`, which provides a modern, glossy look and feel. The theme can be changed by calling :meth:`wx.aui.AuiNotebook.SetArtProvider` . 





.. _AuiNotebook-styles:

|styles| Window Styles
================================

This class supports the following styles: 

  

- ``wx.aui.AUI_NB_DEFAULT_STYLE``: Defined as ``wx.aui.AUI_NB_TOP`` | ``wx.aui.AUI_NB_TAB_SPLIT`` | ``wx.aui.AUI_NB_TAB_MOVE`` | ``wx.aui.AUI_NB_SCROLL_BUTTONS`` | ``wx.aui.AUI_NB_CLOSE_ON_ACTIVE_TAB`` | ``wx.aui.AUI_NB_MIDDLE_CLICK_CLOSE``.  
- ``wx.aui.AUI_NB_TAB_SPLIT``: Allows the tab control to be split by dragging a tab.  
- ``wx.aui.AUI_NB_TAB_MOVE``: Allows a tab to be moved horizontally by dragging.  
- ``wx.aui.AUI_NB_TAB_EXTERNAL_MOVE``: Allows a tab to be moved to another tab control.  
- ``wx.aui.AUI_NB_TAB_FIXED_WIDTH``: With this style, all tabs have the same width.  
- ``wx.aui.AUI_NB_SCROLL_BUTTONS``: With this style, left and right scroll buttons are displayed.  
- ``wx.aui.AUI_NB_WINDOWLIST_BUTTON``: With this style, a drop-down list of windows is available.  
- ``wx.aui.AUI_NB_CLOSE_BUTTON``: With this style, a close button is available on the tab bar.  
- ``wx.aui.AUI_NB_CLOSE_ON_ACTIVE_TAB``: With this style, the close button is visible on the active tab.  
- ``wx.aui.AUI_NB_CLOSE_ON_ALL_TABS``: With this style, the close button is visible on all tabs.  
- ``wx.aui.AUI_NB_MIDDLE_CLICK_CLOSE``: With this style, middle click on a tab closes the tab.  
- ``wx.aui.AUI_NB_TOP``: With this style, tabs are drawn along the top of the notebook.  
- ``wx.aui.AUI_NB_BOTTOM``: With this style, tabs are drawn along the bottom of the notebook.  








.. _AuiNotebook-events:

|events| Events Emitted by this Class
=====================================

Handlers bound for the following event types will receive a :ref:`wx.aui.AuiNotebookEvent` parameter.


- EVT_AUINOTEBOOK_PAGE_CLOSE: A page is about to be closed. Processes a  ``wxEVT_AUINOTEBOOK_PAGE_CLOSE``   event.   
- EVT_AUINOTEBOOK_PAGE_CLOSED(winid,  fn): A page has been closed. Processes a  ``wxEVT_AUINOTEBOOK_PAGE_CLOSED``   event.   
- EVT_AUINOTEBOOK_PAGE_CHANGED: The page selection was changed. Processes a  ``wxEVT_AUINOTEBOOK_PAGE_CHANGED``   event.   
- EVT_AUINOTEBOOK_PAGE_CHANGING: The page selection is about to be changed. Processes a  ``wxEVT_AUINOTEBOOK_PAGE_CHANGING``   event. This event can be vetoed.   
- EVT_AUINOTEBOOK_BUTTON: The window list button has been pressed. Processes a  ``wxEVT_AUINOTEBOOK_BUTTON``   event.   
- EVT_AUINOTEBOOK_BEGIN_DRAG: Dragging is about to begin. Processes a  ``wxEVT_AUINOTEBOOK_BEGIN_DRAG``   event.   
- EVT_AUINOTEBOOK_END_DRAG: Dragging has ended. Processes a  ``wxEVT_AUINOTEBOOK_END_DRAG``   event.   
- EVT_AUINOTEBOOK_DRAG_MOTION: Emitted during a drag and drop operation. Processes a  ``wxEVT_AUINOTEBOOK_DRAG_MOTION``   event.   
- EVT_AUINOTEBOOK_ALLOW_DND: Whether to allow a tab to be dropped. Processes a  ``wxEVT_AUINOTEBOOK_ALLOW_DND``   event. This event must be specially allowed.   
- EVT_AUINOTEBOOK_DRAG_DONE(winid,  fn): Notify that the tab has been dragged. Processes a  ``wxEVT_AUINOTEBOOK_DRAG_DONE``   event.   
- EVT_AUINOTEBOOK_TAB_MIDDLE_DOWN(winid,  fn): The middle mouse button is pressed on a tab. Processes a  ``wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN``   event.   
- EVT_AUINOTEBOOK_TAB_MIDDLE_UP(winid,  fn): The middle mouse button is released on a tab. Processes a  ``wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP``   event.   
- EVT_AUINOTEBOOK_TAB_RIGHT_DOWN(winid,  fn): The right mouse button is pressed on a tab. Processes a  ``wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN``   event.   
- EVT_AUINOTEBOOK_TAB_RIGHT_UP(winid,  fn): The right mouse button is released on a tab. Processes a  ``wxEVT_AUINOTEBOOK_TAB_RIGHT_UP``   event.   
- EVT_AUINOTEBOOK_BG_DCLICK(winid,  fn): Double clicked on the tabs background area. Processes a  ``wxEVT_AUINOTEBOOK_BG_DCLICK``   event.   










|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>AuiNotebook</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.aui.AuiNotebook_inheritance.png" alt="Inheritance diagram of AuiNotebook" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Control.html" title="wx.Control" alt="" coords="145,237,233,267"/> <area shape="rect" id="node5" href="wx.BookCtrlBase.html" title="wx.BookCtrlBase" alt="" coords="61,315,189,344"/> <area shape="rect" id="node2" href="wx.Window.html" title="wx.Window" alt="" coords="145,160,233,189"/> <area shape="rect" id="node3" href="wx.Object.html" title="wx.Object" alt="" coords="91,5,172,35"/> <area shape="rect" id="node4" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="133,83,244,112"/> <area shape="rect" id="node7" href="wx.aui.AuiNotebook.html" title="wx.aui.AuiNotebook" alt="" coords="52,392,199,421"/> <area shape="rect" id="node6" href="wx.WithImages.html" title="wx.WithImages" alt="" coords="5,237,120,267"/> <area shape="rect" id="node8" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="197,5,299,35"/> </map> 
   </p>

|


|sub_classes| Known Subclasses
==============================

:ref:`wx.aui.AuiMDIClientWindow`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.aui.AuiNotebook.__init__`                                             Default constructor.
:meth:`~wx.aui.AuiNotebook.AddPage`                                              Adds a page.
:meth:`~wx.aui.AuiNotebook.AdvanceSelection`                                     Sets the selection to the next or previous page.
:meth:`~wx.aui.AuiNotebook.ChangeSelection`                                      Changes the selection for the given page, returning the previous selection.
:meth:`~wx.aui.AuiNotebook.Create`                                               Creates the notebook window.
:meth:`~wx.aui.AuiNotebook.DeleteAllPages`                                       Deletes all pages.
:meth:`~wx.aui.AuiNotebook.DeletePage`                                           Deletes a page at the given index.
:meth:`~wx.aui.AuiNotebook.GetArtProvider`                                       Returns the associated art provider.
:meth:`~wx.aui.AuiNotebook.GetCurrentPage`                                       Returns the currently selected page or ``None``.
:meth:`~wx.aui.AuiNotebook.GetHeightForPageHeight`                               Returns the desired height of the notebook for the given page height.
:meth:`~wx.aui.AuiNotebook.GetPage`                                              Returns the page specified by the given index.
:meth:`~wx.aui.AuiNotebook.GetPageBitmap`                                        Returns the tab bitmap for the page.
:meth:`~wx.aui.AuiNotebook.GetPageCount`                                         Returns the number of pages in the notebook.
:meth:`~wx.aui.AuiNotebook.GetPageImage`                                         Returns the image index for the given page.
:meth:`~wx.aui.AuiNotebook.GetPageIndex`                                         Returns the page index for the specified window.
:meth:`~wx.aui.AuiNotebook.GetPageText`                                          Returns the tab label for the page.
:meth:`~wx.aui.AuiNotebook.GetPageToolTip`                                       Returns the tooltip for the tab label of the page.
:meth:`~wx.aui.AuiNotebook.GetSelection`                                         Returns the currently selected page.
:meth:`~wx.aui.AuiNotebook.GetTabCtrlHeight`                                     Returns the height of the tab control.
:meth:`~wx.aui.AuiNotebook.InsertPage`                                           :meth:`~AuiNotebook.InsertPage`   is similar to AddPage, but allows the ability to specify the insert location.
:meth:`~wx.aui.AuiNotebook.RemovePage`                                           Removes a page, without deleting the window pointer.
:meth:`~wx.aui.AuiNotebook.SetArtProvider`                                       Sets the art provider to be used by the notebook.
:meth:`~wx.aui.AuiNotebook.SetFont`                                              Sets the font for drawing the tab labels, using a bold version of the font for selected tab labels.
:meth:`~wx.aui.AuiNotebook.SetMeasuringFont`                                     Sets the font for measuring tab labels.
:meth:`~wx.aui.AuiNotebook.SetNormalFont`                                        Sets the font for drawing unselected tab labels.
:meth:`~wx.aui.AuiNotebook.SetPageBitmap`                                        Sets the bitmap for the page.
:meth:`~wx.aui.AuiNotebook.SetPageImage`                                         Sets the image index for the given page.
:meth:`~wx.aui.AuiNotebook.SetPageText`                                          Sets the tab label for the page.
:meth:`~wx.aui.AuiNotebook.SetPageToolTip`                                       Sets the tooltip displayed when hovering over the tab label of the page.
:meth:`~wx.aui.AuiNotebook.SetSelectedFont`                                      Sets the font for drawing selected tab labels.
:meth:`~wx.aui.AuiNotebook.SetSelection`                                         Sets the page selection.
:meth:`~wx.aui.AuiNotebook.SetTabCtrlHeight`                                     Sets the tab height.
:meth:`~wx.aui.AuiNotebook.SetUniformBitmapSize`                                 Ensure that all tabs have the same height, even if some of them don't have bitmaps.
:meth:`~wx.aui.AuiNotebook.ShowWindowMenu`                                       Shows the window menu for the active tab control associated with this notebook, and returns ``True`` if a selection was made.
:meth:`~wx.aui.AuiNotebook.Split`                                                Split performs a split operation programmatically.
================================================================================ ================================================================================


|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.aui.AuiNotebook.ArtProvider`                                          See :meth:`~wx.aui.AuiNotebook.GetArtProvider` and :meth:`~wx.aui.AuiNotebook.SetArtProvider`
:attr:`~wx.aui.AuiNotebook.CurrentPage`                                          See :meth:`~wx.aui.AuiNotebook.GetCurrentPage`
:attr:`~wx.aui.AuiNotebook.PageCount`                                            See :meth:`~wx.aui.AuiNotebook.GetPageCount`
:attr:`~wx.aui.AuiNotebook.Selection`                                            See :meth:`~wx.aui.AuiNotebook.GetSelection` and :meth:`~wx.aui.AuiNotebook.SetSelection`
:attr:`~wx.aui.AuiNotebook.TabCtrlHeight`                                        See :meth:`~wx.aui.AuiNotebook.GetTabCtrlHeight` and :meth:`~wx.aui.AuiNotebook.SetTabCtrlHeight`
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: wx.aui.AuiNotebook(BookCtrlBase)

   **Possible constructors**::

       AuiNotebook()
       
       AuiNotebook(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize,
                   style=AUI_NB_DEFAULT_STYLE)
       
   
   AuiNotebook is part of the ``AUI`` class framework, which represents a
   notebook control, managing multiple windows with associated tabs.



   .. method:: __init__(self, *args, **kw)



      |overload| Overloaded Implementations:

      **~~~**

      
      **__init__** `(self)`
      
      Default constructor.                   
      
      
      
      
      **~~~**

      
      **__init__** `(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=AUI_NB_DEFAULT_STYLE)`
      
      Constructor.                  
      
      Creates a AuiNotebok control.                  
      
      
      :param `parent`: 
      :type `parent`: wx.Window
      :param `id`: 
      :type `id`: wx.WindowID
      :param `pos`: 
      :type `pos`: wx.Point
      :param `size`: 
      :type `size`: wx.Size
      :param `style`: 
      :type `style`: long
      
      
      
      
      
      
      **~~~**






   .. method:: AddPage(self, *args, **kw)



      |overload| Overloaded Implementations:

      **~~~**

      
      **AddPage** `(self, page, caption, select=False, bitmap=NullBitmap)`
      
      Adds a page.                  
      
      If the `select`  parameter is ``True``, calling this will generate a page change event.                  
      
      
      :param `page`: 
      :type `page`: wx.Window
      :param `caption`: 
      :type `caption`: string
      :param `select`: 
      :type `select`: bool
      :param `bitmap`: 
      :type `bitmap`: wx.Bitmap
      
      
      
      
      :rtype: `bool`
      
      
      
      
      
      
      
      **~~~**

      
      **AddPage** `(self, page, text, select, imageId)`
      
      Adds a new page.                  
      
      The page must have the book control itself as the parent and must not have been added to this control previously. 
      
      The call to this function may generate the page changing events. 
      
      
      
      
      :param `page`: Specifies the new page.   
      :type `page`: wx.Window
      :param `text`: Specifies the text for the new page.   
      :type `text`: string
      :param `select`: Specifies whether the page should be selected.   
      :type `select`: bool
      :param `imageId`: Specifies the optional image index for the new page.  
      :type `imageId`: int
      
      
      
      
      
      
      
      
      
      
      
      
      :rtype: `bool`
      
      
      
                        
      
      
      
      :returns: 
      
         ``True`` if successful, ``False`` otherwise.  
      
      
      
      
      
      
      
      .. versionadded:: 2.9.3 
           
      
      
      
      
      
      
      
      .. note:: 
      
         Do not delete the page, it will be deleted by the book control.  
      
      
      
      
      
      
      
      .. seealso:: :meth:`InsertPage`     
      
      
      
      
      
      
      
      **~~~**






   .. method:: AdvanceSelection(self, forward=True)

      Sets the selection to the next or previous page.                  


      :param `forward`: 
      :type `forward`: bool







   .. method:: ChangeSelection(self, n)

      Changes the selection for the given page, returning the previous selection.                  

      This function behaves as :meth:`SetSelection`   but does `not`  generate the page changing events. 

      See :ref:`User Generated Events vs Programmatically Generated Events <user generated events vs programmatically generated events>`  for more information.                  


      :param `n`: 
      :type `n`: int




      :rtype: `int`







      .. versionadded:: 2.9.3 
     








   .. method:: Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0)

      Creates the notebook window.                  


      :param `parent`: 
      :type `parent`: wx.Window
      :param `id`: 
      :type `id`: wx.WindowID
      :param `pos`: 
      :type `pos`: wx.Point
      :param `size`: 
      :type `size`: wx.Size
      :param `style`: 
      :type `style`: long




      :rtype: `bool`








   .. method:: DeleteAllPages(self)

      Deletes all pages.                  

                

      :rtype: `bool`







      .. versionadded:: 2.9.3 
     








   .. method:: DeletePage(self, page)

      Deletes a page at the given index.                  

      Calling this method will generate a page change event.                  


      :param `page`: 
      :type `page`: int




      :rtype: `bool`








   .. method:: GetArtProvider(self)

      Returns the associated art provider.                  

      :rtype: :ref:`wx.aui.AuiTabArt`








   .. method:: GetCurrentPage(self)

      Returns the currently selected page or ``None``.                  

                

      :rtype: :ref:`Window`







      .. versionadded:: 2.9.3 
     








   .. method:: GetHeightForPageHeight(self, pageHeight)

      Returns the desired height of the notebook for the given page height.                  

      Use this to fit the notebook to a given page size.                  


      :param `pageHeight`: 
      :type `pageHeight`: int




      :rtype: `int`








   .. method:: GetPage(self, page_idx)

      Returns the page specified by the given index.                  


      :param `page_idx`: 
      :type `page_idx`: int




      :rtype: :ref:`Window`








   .. method:: GetPageBitmap(self, page)

      Returns the tab bitmap for the page.                  


      :param `page`: 
      :type `page`: int




      :rtype: :ref:`Bitmap`








   .. method:: GetPageCount(self)

      Returns the number of pages in the notebook.                  

      :rtype: `int`








   .. method:: GetPageImage(self, nPage)

      Returns the image index for the given page.                  


      :param `nPage`: 
      :type `nPage`: int




      :rtype: `int`








   .. method:: GetPageIndex(self, page_wnd)

      Returns the page index for the specified window.                  

      If the window is not found in the notebook, ``wx.NOT_FOUND`` is returned.                  


      :param `page_wnd`: 
      :type `page_wnd`: wx.Window




      :rtype: `int`








   .. method:: GetPageText(self, page)

      Returns the tab label for the page.                  


      :param `page`: 
      :type `page`: int




      :rtype: `string`








   .. method:: GetPageToolTip(self, pageIdx)

      Returns the tooltip for the tab label of the page.                  

                


      :param `pageIdx`: 
      :type `pageIdx`: int




      :rtype: `string`







      .. versionadded:: 2.9.4 
     








   .. method:: GetSelection(self)

      Returns the currently selected page.                  

      :rtype: `int`








   .. method:: GetTabCtrlHeight(self)

      Returns the height of the tab control.                  

      :rtype: `int`








   .. method:: InsertPage(self, *args, **kw)



      |overload| Overloaded Implementations:

      **~~~**

      
      **InsertPage** `(self, page_idx, page, caption, select=False, bitmap=NullBitmap)`
      
      :meth:`InsertPage`   is similar to AddPage, but allows the ability to specify the insert location.                  
      
      If the `select`  parameter is ``True``, calling this will generate a page change event.                  
      
      
      :param `page_idx`: 
      :type `page_idx`: int
      :param `page`: 
      :type `page`: wx.Window
      :param `caption`: 
      :type `caption`: string
      :param `select`: 
      :type `select`: bool
      :param `bitmap`: 
      :type `bitmap`: wx.Bitmap
      
      
      
      
      :rtype: `bool`
      
      
      
      
      
      
      
      **~~~**

      
      **InsertPage** `(self, index, page, text, select, imageId)`
      
      Inserts a new page at the specified position.                  
      
      
      
      
      :param `index`: Specifies the position for the new page.   
      :type `index`: int
      :param `page`: Specifies the new page.   
      :type `page`: wx.Window
      :param `text`: Specifies the text for the new page.   
      :type `text`: string
      :param `select`: Specifies whether the page should be selected.   
      :type `select`: bool
      :param `imageId`: Specifies the optional image index for the new page.  
      :type `imageId`: int
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      :rtype: `bool`
      
      
      
                        
      
      
      
      :returns: 
      
         ``True`` if successful, ``False`` otherwise.  
      
      
      
      
      
      
      
      .. versionadded:: 2.9.3 
           
      
      
      
      
      
      
      
      .. note:: 
      
         Do not delete the page, it will be deleted by the book control.  
      
      
      
      
      
      
      
      .. seealso:: :meth:`AddPage`     
      
      
      
      
      
      
      
      **~~~**






   .. method:: RemovePage(self, page)

      Removes a page, without deleting the window pointer.                  


      :param `page`: 
      :type `page`: int




      :rtype: `bool`








   .. method:: SetArtProvider(self, art)

      Sets the art provider to be used by the notebook.                  


      :param `art`: 
      :type `art`: wx.aui.AuiTabArt







   .. method:: SetFont(self, font)

      Sets the font for drawing the tab labels, using a bold version of the font for selected tab labels.                  


      :param `font`: 
      :type `font`: wx.Font




      :rtype: `bool`








   .. method:: SetMeasuringFont(self, font)

      Sets the font for measuring tab labels.                  


      :param `font`: 
      :type `font`: wx.Font







   .. method:: SetNormalFont(self, font)

      Sets the font for drawing unselected tab labels.                  


      :param `font`: 
      :type `font`: wx.Font







   .. method:: SetPageBitmap(self, page, bitmap)

      Sets the bitmap for the page.                  

      To remove a bitmap from the tab caption, pass NullBitmap.                  


      :param `page`: 
      :type `page`: int
      :param `bitmap`: 
      :type `bitmap`: wx.Bitmap




      :rtype: `bool`








   .. method:: SetPageImage(self, n, imageId)

      Sets the image index for the given page.                  

      `image`  is an index into the image list which was set with :meth:`SetImageList` .                  


      :param `n`: 
      :type `n`: int
      :param `imageId`: 
      :type `imageId`: int




      :rtype: `bool`







      .. versionadded:: 2.9.3 
     








   .. method:: SetPageText(self, page, text)

      Sets the tab label for the page.                  


      :param `page`: 
      :type `page`: int
      :param `text`: 
      :type `text`: string




      :rtype: `bool`








   .. method:: SetPageToolTip(self, page, text)

      Sets the tooltip displayed when hovering over the tab label of the page.                  

                


      :param `page`: 
      :type `page`: int
      :param `text`: 
      :type `text`: string




      :rtype: `bool`







      :returns: 

         ``True`` if tooltip was updated, ``False`` if it failed, e.g. because the page index is invalid.  







      .. versionadded:: 2.9.4 
     








   .. method:: SetSelectedFont(self, font)

      Sets the font for drawing selected tab labels.                  


      :param `font`: 
      :type `font`: wx.Font







   .. method:: SetSelection(self, new_page)

      Sets the page selection.                  

      Calling this method will generate a page change event.                  


      :param `new_page`: 
      :type `new_page`: int




      :rtype: `int`








   .. method:: SetTabCtrlHeight(self, height)

      Sets the tab height.                  

      By default, the tab control height is calculated by measuring the text height and bitmap sizes on the tab captions. Calling this method will override that calculation and set the tab control to the specified height parameter. A call to this method will override any call to :meth:`SetUniformBitmapSize` . 

      Specifying -1 as the height will return the control to its default auto-sizing behaviour.                  


      :param `height`: 
      :type `height`: int







   .. method:: SetUniformBitmapSize(self, size)

      Ensure that all tabs have the same height, even if some of them don't have bitmaps.                  

      Passing :ref:`wx.DefaultSize`  as `size`  undoes the effect of a previous call to this function and instructs the control to use dynamic tab height.                  


      :param `size`: 
      :type `size`: wx.Size







   .. method:: ShowWindowMenu(self)

      Shows the window menu for the active tab control associated with this notebook, and returns ``True`` if a selection was made.                  

      :rtype: `bool`








   .. method:: Split(self, page, direction)

      Split performs a split operation programmatically.                  

      The argument `page`  indicates the page that will be split off. This page will also become the active page after the split. 

      The `direction`  argument specifies where the pane should go, it should be one of the following: ``wx.TOP``, ``wx.BOTTOM``, ``wx.LEFT``, or ``wx.RIGHT``.                  


      :param `page`: 
      :type `page`: int
      :param `direction`: 
      :type `direction`: int







   .. attribute:: ArtProvider

      See :meth:`~wx.aui.AuiNotebook.GetArtProvider` and :meth:`~wx.aui.AuiNotebook.SetArtProvider`


   .. attribute:: CurrentPage

      See :meth:`~wx.aui.AuiNotebook.GetCurrentPage`


   .. attribute:: PageCount

      See :meth:`~wx.aui.AuiNotebook.GetPageCount`


   .. attribute:: Selection

      See :meth:`~wx.aui.AuiNotebook.GetSelection` and :meth:`~wx.aui.AuiNotebook.SetSelection`


   .. attribute:: TabCtrlHeight

      See :meth:`~wx.aui.AuiNotebook.GetTabCtrlHeight` and :meth:`~wx.aui.AuiNotebook.SetTabCtrlHeight`