Exemple #1
0
 def remove_widget(self,widgetIndex):
     for (atomIndex,atom) in self.iteritems():
         index = atom.get_property_long('widgetIndex')
         if index==widgetIndex:
             delAtomIndex = atomIndex
         else:
             if index>widgetIndex:
                 newWidgetIndex = atom.get_property_long('widgetIndex')-1
                 atom.set_property_long('widgetIndex', newWidgetIndex)
     del self[delAtomIndex]
     self.tab.inc_session_changes()
Exemple #2
0
 def remove_tab(self,tabIndex):
     for (atomIndex,atom) in self.iteritems():
         index = atom.get_property_long('tabIndex')
         if index==tabIndex:
             delAtomIndex = atomIndex
         else:
             if index>tabIndex:
                 newTabIndex = atom.get_property_long('tabIndex')-1
                 atom.set_property_long('tabIndex', newTabIndex)
                 self.__sessionChanges[newTabIndex] = self.__sessionChanges[index]
                 
     del self[delAtomIndex]