code: def createMenu( self ):
          
          name, accepted = QInputDialog.getText( self,
                                                 'Create Menu',
                                                 'Name: ')
          
          if ( accepted ):
              self.addMenuItem(self.createMenuItem(name), 
                               self.uiMenuTREE.currentItem())
docs: Creates a new menu with the given name.