wxPython/wxGlade-0.9.1/widgets/splitter_window/splitter_window.py
def free_slot(self, pos, force_layout=True):
        "Replaces the element at pos with an empty slot"
        if self.window.orientation=="wxSPLIT_VERTICAL":
            labels = ("SLOT Left","SLOT Right")
        else:
            labels = ("SLOT Top","SLOT Bottom")
        if pos == 1:
            if self.window.widget and self.window._window_1 and self.window._window_1.widget:
                self.window.widget.Unsplit(self.window._window_1.widget)
            old_node = self.window._window_1.node
            slot = SizerSlot(self.window, self, pos, labels[0]) # XXX no node, no tree visualization?
            self.window._window_1 = slot
            w = self.window._window_1
        else:
            if self.window.widget and self.window._window_2 and self.window._window_2.widget:
                self.window.widget.Unsplit(self.window._window_1.widget)
            old_node = self.window._window_2.node
            slot = SizerSlot(self.window, self, pos, labels[1]) # XXX no node, no tree visualization?
            self.window._window_2 = slot
            w = self.window._window_2
        w.node = node = SlotNode(w)
        common.app_tree.change_node( old_node, w, node )
        self.window.split()
        return slot
Replaces the element at pos with an empty slot
Replaces the element at pos with an empty slot
Replaces the element at pos with an empty slot
def free_slot(self, pos, force_layout=True):
        if self.window.orientation=="wxSPLIT_VERTICAL":
            labels = ("SLOT Left","SLOT Right")
        else:
            labels = ("SLOT Top","SLOT Bottom")
        if pos == 1:
            if self.window.widget and self.window._window_1 and self.window._window_1.widget:
                self.window.widget.Unsplit(self.window._window_1.widget)
            old_node = self.window._window_1.node
            slot = SizerSlot(self.window, self, pos, labels[0]) 
            self.window._window_1 = slot
            w = self.window._window_1
        else:
            if self.window.widget and self.window._window_2 and self.window._window_2.widget:
                self.window.widget.Unsplit(self.window._window_1.widget)
            old_node = self.window._window_2.node
            slot = SizerSlot(self.window, self, pos, labels[1]) 
            self.window._window_2 = slot
            w = self.window._window_2
        w.node = node = SlotNode(w)
        common.app_tree.change_node( old_node, w, node )
        self.window.split()
        return slot
def free_slot ( self , pos , force_layout = True ) : if self . window . orientation == "wxSPLIT_VERTICAL" : labels = ( "SLOT Left" , "SLOT Right" ) else : labels = ( "SLOT Top" , "SLOT Bottom" ) if pos == 1 : if self . window . widget and self . window . _window_1 and self . window . _window_1 . widget : self . window . widget . Unsplit ( self . window . _window_1 . widget ) old_node = self . window . _window_1 . node slot = SizerSlot ( self . window , self , pos , labels [ 0 ] ) self . window . _window_1 = slot w = self . window . _window_1 else : if self . window . widget and self . window . _window_2 and self . window . _window_2 . widget : self . window . widget . Unsplit ( self . window . _window_1 . widget ) old_node = self . window . _window_2 . node slot = SizerSlot ( self . window , self , pos , labels [ 1 ] ) self . window . _window_2 = slot w = self . window . _window_2 w . node = node = SlotNode ( w ) common . app_tree . change_node ( old_node , w , node ) self . window . split ( ) return slot
Replaces the element at pos with an empty slot
Replaces the element at pos with an empty slot
"Replaces the element at pos with an empty slot" # XXX no node, no tree visualization? # XXX no node, no tree visualization?
self
pos
force_layout