(self)
return name
Return sensible ConfigParser section name or None.
Return sensible ConfigParser section name or None.
Return sensible ConfigParser section name or None .
def entry_ok(self):
        "Return sensible ConfigParser section name or None."
        name = self.entry.get().strip()
        if not name:
            self.showerror('no name specified.')
            return None
        elif len(name)>30:
            self.showerror('name is longer than 30 characters.')
            return None
        elif name in self.used_names:
            self.showerror('name is already in use.')
            return None
        return name
def entry_ok ( self ) : name = self . entry . get ( ) . strip ( ) if not name : self . showerror ( 'no name specified.' ) return None elif len ( name ) > 30 : self . showerror ( 'name is longer than 30 characters.' ) return None elif name in self . used_names : self . showerror ( 'name is already in use.' ) return None return name