Beispiel #1
0
    def handlerPlusMinusLeadingSpaces(self):
        """
        Purpose:
            Add or delete leading spaces as needed
        """
        import module_leadingSpaces
        
        if DEBUG_PRINT_METHOD:
            print('\n** In ' + MODULE + '/' + 'handlerPlusMinusLeadingSpaces')
        
#        def tempDef():
# destroy any old toplevel frames
        try:
            self.myFramePMLS.destroy()
            print '\nPrevious toplevel widget removed from screen.'
        except: 
            print '\nNo previous toplevel widget to remove from screen.'
        
        self.myFramePMLS = Toplevel(
            self.parentFrame0,
            background='lightgreen'
            )
        self.myFramePMLS.transient(self.parentFrame0)
        self.myFramePMLS.title('Add/Delete Leading Spaces')
        module_leadingSpaces.leadingSpaces(self,self.myFramePMLS)  
    def spacesAddDelete(self):

        module_leadingSpaces.leadingSpaces(self,self.frameParent)
    def spacesAddDelete(self):

        module_leadingSpaces.leadingSpaces(self, self.frameParent)