Show and hide types of toolbar - adjust size and layout

I want to show a way to adjust size and change the layout of a frame
after choosing to show and hide for different types toolbar.

One good demo which is demonstrating the "show toolbar" abilities on
the fly can be found here : http://zetcode.com/wxpython/menustoolbars/.
Some of the code below is based on this example, although in my case
the size of the panel do change and no redundant spaces left.

The full code can be found here:
http://www.markandclick.com/1/post/2011/12/wxpython-show-and-hide-toolbar-adjust-size-and-layout.html

a snippet from the code presented bellow:

#init:
         self.toolbar = self.CreateToolBar()
         self.toolbar.Realize()
         _,self.toolbarH = self.toolbar.GetSize()

         self.statusbar = self.CreateStatusBar()
         self.statusbar.SetStatusText('Ready')
         _,self.statusbarH = self.statusbar.GetSize()

        self.SetSize((-1, self.sizeH))

#menu:
         self.shst = viewMenu.Append(wx.ID_ANY, 'Show statubar',
             'Show Statusbar', kind=wx.ITEM_CHECK)
         self.shtl = viewMenu.Append(wx.ID_ANY, 'Show toolbar',
             'Show Toolbar', kind=wx.ITEM_CHECK)

         viewMenu.Check(self.shst.GetId(), True)
         viewMenu.Check(self.shtl.GetId(), True)

#event handler:

    def ToggleStatusBar(self, e):

         if self.shst.IsChecked():
             self.sizeH+=self.statusbarH
             self.statusbar.Show()
         else:
             self.sizeH-=self.statusbarH
             self.statusbar.Hide()