I am making my first foray into GUI programming and I am trying to deal with wxPython. I am trying to use wxGlade, but that turns out to be a bit of a mistake.
I am making a layout using a GridSizer.
I found out that every time you add something to the sizer, it is placed in the next cell. This means that if you have an empty cell, you need to fill in something. I'm right?
This is the layout I'm going to do (wxGlade screenshot):

The problem is that I am generating code from this:

grid_sizer_1 = wx.GridSizer(3, 3, 0, 0) grid_sizer_1.Add(self.button_last_page, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.button_up, 0, wx.ALIGN_BOTTOM|wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_1.Add(self.button_next_page, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.button_left, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.button_select, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.button_right, 0, wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_1.Add(self.button_down, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
Apparently, because the Down button is entered in the 7th cell instead of the 8th.
What is the standard way to deal with this? Would you put some kind of dummy widget to fill an empty cell? If so, which widget? Or am I using the wrong kind of sizer?
Thanks!