def __init__(self): icon = None text = "File" AbstractMenuAction.__init__(self, icon, text) #--- self.path = "" self.position = (0, 0)
def __init__(self): icon = None text = "Close Project" AbstractMenuAction.__init__(self, icon, text) self.setToolTip("Close the active project.") self.setStatusTip("Close the active project.") #--- self.path = "File" self.position = (0, 200) self.is_menu = False
def __init__(self, dock): icon = None text = dock.windowTitle() AbstractMenuAction.__init__(self, icon, text) # self.setToolTip("Close the active project.") # self.setStatusTip("Close the active project.") # --- self.path = "Window" self.category = 0 self.priority = 0 self.dock = dock
def __init__(self): icon = IconManager.application_icon("floppy.png") text = "Save Project" shortcut = "Ctrl+S" AbstractMenuAction.__init__(self, icon, text, shortcut) self.setToolTip("Save the active project.") self.setStatusTip("Save the active project.") #--- self.path = "File" self.position = (0, 300) self.toolbar_position = (0, 200)
def __init__(self): icon = IconManager.application_icon("open.png") text = "Open Project..." shortcut = "Ctrl+O" AbstractMenuAction.__init__(self, icon, text, shortcut) self.setToolTip("Open an existing project.") self.setStatusTip("Open an existing project.") #--- self.path = "File" self.position = (0, 100) self.toolbar_position = (0, 100)
def __init__(self): icon = IconManager.application_icon("new.png") text = "New Project..." shortcut = "Ctrl+N" AbstractMenuAction.__init__(self, icon, text, shortcut) self.setToolTip("Create a new project.") self.setStatusTip("Create a new project.") #--- self.path = "File" self.position = (0, 0) self.toolbar_position = (0, 0)
def __init__(self, dock): icon = None text = dock.windowTitle() AbstractMenuAction.__init__(self, icon, text) #self.setToolTip("Close the active project.") #self.setStatusTip("Close the active project.") #--- self.path = "Window" self.category = 0 self.priority = 0 self.dock = dock
def __init__(self, icon, text, widget, shortcut=None): AbstractMenuAction.__init__(self, icon, text, shortcut) #--- self.widget = widget