wxPython/wxGlade-0.9.1/widgets/toolbar/toolbar.py
def remove_item(self, event):
        "Event handler called when the Remove button is clicked"
        if self.selected_index < 0: return
        index = self.selected_index+1
        for s in (self.label, self.bitmap1, self.bitmap2, self.id, self.label,
                  self.short_help, self.long_help, self.handler):
            s.SetValue("")
        self.type.SetSelection(0)
        self.items.DeleteItem(self.selected_index)
        if not self.items.GetItemCount():
            self._enable_fields(False)
        self.selected_index -= 1
        self.items.Select(self.selected_index)
Event handler called when the Remove button is clicked
Event handler called when the Remove button is clicked
Event handler called when the Remove button is clicked
def remove_item(self, event):
        if self.selected_index < 0: return
        index = self.selected_index+1
        for s in (self.label, self.bitmap1, self.bitmap2, self.id, self.label,
                  self.short_help, self.long_help, self.handler):
            s.SetValue("")
        self.type.SetSelection(0)
        self.items.DeleteItem(self.selected_index)
        if not self.items.GetItemCount():
            self._enable_fields(False)
        self.selected_index -= 1
        self.items.Select(self.selected_index)
def remove_item ( self , event ) : if self . selected_index < 0 : return index = self . selected_index + 1 for s in ( self . label , self . bitmap1 , self . bitmap2 , self . id , self . label , self . short_help , self . long_help , self . handler ) : s . SetValue ( "" ) self . type . SetSelection ( 0 ) self . items . DeleteItem ( self . selected_index ) if not self . items . GetItemCount ( ) : self . _enable_fields ( False ) self . selected_index -= 1 self . items . Select ( self . selected_index )
Event handler called when the Remove button is clicked
Event handler called when the Remove button is clicked
"Event handler called when the Remove button is clicked"
self
event