def menu_document(mainwindow): return documentmenu.DocumentMenu(mainwindow)
def menu_document(self): return documentmenu.DocumentMenu(self.mainwindow())