def create_menu(title, parent):
 qmenu = QtWidgets.QMenu(title, parent)
 return qmenu

def create_menu ( title , parent ) : qmenu = QtWidgets . QMenu ( title , parent ) return qmenu
create a menu and set its title .