Logo Search packages:      
Sourcecode: harpia version File versions  Download package

def harpia::harpiagcfrontend::S2iHarpiaFrontend::on_CloseMenuBar_activate (   self,
  args 
)

Callback funtion called when CloseMenuBar is activated. Close the current diagram tab.

Definition at line 1027 of file harpiagcfrontend.py.

01027                                               :
            """
            Callback funtion called when CloseMenuBar is activated. Close the current diagram tab.
            """

            t_nCurrentTabIndex = self.widgets['WorkArea'].get_current_page()

            if t_nCurrentTabIndex <> -1:
                  
                  self.widgets["WorkArea"].remove_page( t_nCurrentTabIndex )

                  if self.m_oGcDiagrams.has_key(t_nCurrentTabIndex):
                        del self.m_oGcDiagrams[t_nCurrentTabIndex]

                  t_oGcDiagrams = {}
            
                  for t_nTabIndex,t_nOldTabIndex in enumerate(self.m_oGcDiagrams.keys()):

                        t_oGcDiagrams[t_nTabIndex] = self.m_oGcDiagrams[t_nOldTabIndex]
                  
                  self.m_oGcDiagrams = t_oGcDiagrams
            
      #----------------------------------------------------------------------


Generated by  Doxygen 1.6.0   Back to index