DNATool2/DNAToolApp.py
def toggleApps(self, name):
        """Remove or add apps from view"""
        print name
        if self.appsvars[name].get() == 1:
            if not hasattr(self, name):
                fr = self.createChildFrame(sidepane=True, name=name)
        else:
            if hasattr(self, name):
                if name in self.sidepane.pagenames():
                    self.sidepane.delete(name)
                else:
                    self.__dict__[name].destroy()
                    del self.__dict__[name]
        return
Remove or add apps from view
Remove or add apps from view
Remove or add apps from view
def toggleApps(self, name):
        print name
        if self.appsvars[name].get() == 1:
            if not hasattr(self, name):
                fr = self.createChildFrame(sidepane=True, name=name)
        else:
            if hasattr(self, name):
                if name in self.sidepane.pagenames():
                    self.sidepane.delete(name)
                else:
                    self.__dict__[name].destroy()
                    del self.__dict__[name]
        return
def toggleApps ( self , name ) : print name if self . appsvars [ name ] . get ( ) == 1 : if not hasattr ( self , name ) : fr = self . createChildFrame ( sidepane = True , name = name ) else : if hasattr ( self , name ) : if name in self . sidepane . pagenames ( ) : self . sidepane . delete ( name ) else : self . __dict__ [ name ] . destroy ( ) del self . __dict__ [ name ] return
Remove or add apps from view
Remove or add apps from view
"""Remove or add apps from view"""
self
name