Unable to adjust the height for GridBagSizer. I am working on python 3.10 and latest version of wxpython(4.2.1). The code snapshot is here
sub_sizer = GridBagSizer()
sub_sizer.AddGrowableRow(0)
sub_sizer.AddGrowableRow(2)
sub_sizer.AddGrowableRow(3)
sub_sizer.AddGrowableCol(0)
sub_sizer.Add(self.selection_list, flag=wx.EXPAND, pos=(0, 0), span=(1, 3))
sub_sizer.Add(self.empty_image, flag=wx.ALIGN_CENTER_HORIZONTAL, pos=(1, 0))
sub_sizer.Add(self.empty_text, flag=wx.ALIGN_CENTER_HORIZONTAL, pos=(3, 0))
sub_sizer.Add(self.loading_image, flag=wx.ALIGN_CENTER_HORIZONTAL, pos=(2,0))
sub_sizer.SetFlexibleDirection(wx.BOTH)
self.empty_image.UpdateSVG(self.image_path)
self.empty_image.statbmp.SetSize(194, 187)
it’s taking full window’s height . Is there any way to adjust height. Any suggestion/recommanded will be appreciated