- def GetHome(self):
- """
- Returns the frame which this toolbar will return to when
- docked, or the parent if currently docked.
- """
- if hasattr(self, 'parentframe'):
- return self.parentframe
- else:
- return wxPyTypeCast(self.GetParent(), 'wxFrame')
- def SetHome(self, frame):
- """
- Called when docked, this will remove the toolbar from its
- current frame and attach it to another. If called when
- floating, it will dock to the frame specified when the toolbar
- window is closed.
- """
- if self.IsFloating():
- self.parentframe = frame
- self.floatframe.Reparent(frame)
- else:
- parent = wxPyTypeCast(self.GetParent(), 'wxFrame')
- self.Reparent(frame)
- parent.SetToolBar(None)
- size = parent.GetSize()
- parent.SetSize(wxSize(0,0))
- parent.SetSize(size)
- frame.SetToolBar(self)
- size = frame.GetSize()
- frame.SetSize(wxSize(0,0))
- frame.SetSize(size)
+
+
+## def GetHome(self):
+## """
+## Returns the frame which this toolbar will return to when
+## docked, or the parent if currently docked.
+## """
+## if hasattr(self, 'parentframe'):
+## return self.parentframe
+## else:
+## return wxPyTypeCast(self.GetParent(), 'wxFrame')
+
+
+## def SetHome(self, frame):
+## """
+## Called when docked, this will remove the toolbar from its
+## current frame and attach it to another. If called when
+## floating, it will dock to the frame specified when the toolbar
+## window is closed.
+## """
+## if self.IsFloating():
+## self.parentframe = frame
+## self.floatframe.Reparent(frame)
+## else:
+## parent = wxPyTypeCast(self.GetParent(), 'wxFrame')
+## self.Reparent(frame)
+## parent.SetToolBar(None)
+## size = parent.GetSize()
+## parent.SetSize(wxSize(0,0))
+## parent.SetSize(size)
+## frame.SetToolBar(self)
+## size = frame.GetSize()
+## frame.SetSize(wxSize(0,0))
+## frame.SetSize(size)
+
+