wxPython Layout Sizer: GridBagSizer Tutorial

preview_player
Показать описание
In this Video we will take a look at the wxPython GridBagSizer, used to manage Widgets in a wxPython Window. The GridBagSizer is a really flexible Layout Sizer, allowing for rows and columns to have different sizes as well as allowing you to position widgets in specific cells.

------------------------- wxPython Layout Series -------------------------

Tutorial 1: (Layout Management in wxPython)

Tutorial 2: (BoxSizer)

Tutorial 3: (StaticBoxSizer)

Tutorial 4: (GridSizer)

Tutorial 5: (FlexGridSizer)

Tutorial 6: (GridBagSizer)

------------------------- Other Videos in the Series -------------------------

Tutorial 1: (Making a Window)

Tutorial 2: (Button Widget)

Tutorial 3: (StaticText Widget)

Tutorial 4: (TextCtrl Widget)

Tutorial 5: (StaticLine Widget)

Tutorial 6: (RadioButtons Widget)

Tutorial 7: (RadioBox Widget)

Tutorial 8: (CheckBox Widget)

Tutorial 9: (ComboBox Widget)

Tutorial 10: (StatusBar Widget)

Tutorial 11: (Menu's in wxPython)

Tutorial 12: (ToggleButton Widget)

Tutorial 13: (StaticBox Widget)

Tutorial 14: (BitmapButton Widget)

------------------------- wxPython Layout Series -------------------------

Tutorial 1: (Layout Management in wxPython)

Tutorial 2: (BoxSizer)

Tutorial 3: (StaticBoxSizer)

Tutorial 4: (GridSizer)

Tutorial 5: (FlexGridSizer)

Tutorial 6: (GridBagSizer)
Рекомендации по теме
Комментарии
Автор

Suppose I want to have multiple sections of widgets in a window. Should make those sections using Panels or Frames before putting them in a Sizer?

bobvance
Автор

The parameters to wx.GridBagSizer are vgap and hgap, not rows and columns. The number of rows and columns are determined dynamically.

pietervanoostrum
visit shbcf.ru