parameters: (self)
return_statement: return menuOk
docstring: Simple validity check for a sensible menu item name
docstring_summary: Simple validity check for a sensible menu item name
docstring_tokens: Simple validity check for a sensible menu item name
function: def MenuOk(self):
          "Simple validity check for a sensible menu item name"
          menuOk = True
          menu = self.menu.get()
          menu.strip()
          if not menu:
              tkMessageBox.showerror(title='Menu Item Error',
                                     message='No menu item specified',
                                     parent=self)
              self.entryMenu.focus_set()
              menuOk = False
          elif len(menu) > 30:
              tkMessageBox.showerror(title='Menu Item Error',
                                     message='Menu item too long:'
                                             '\nLimit 30 characters.',
                                     parent=self)
              self.entryMenu.focus_set()
              menuOk = False
          return menuOk
function_tokens: def MenuOk ( self ) : menuOk = True menu = self . menu . get ( ) menu . strip ( ) if not menu : tkMessageBox . showerror ( title = 'Menu Item Error' , message = 'No menu item specified' , parent = self ) self . entryMenu . focus_set ( ) menuOk = False elif len ( menu ) > 30 : tkMessageBox . showerror ( title = 'Menu Item Error' , message = 'Menu item too long:' '\nLimit 30 characters.' , parent = self ) self . entryMenu . focus_set ( ) menuOk = False return menuOk