def __init__(self, icon, text, parent, code): if icon is None: QAction.__init__(self, text, parent) else: QAction.__init__(self, icon, text, parent) STDMContent.__init__(self, code) self.Name = text + " " + QApplication.translate("STDMModule", "Module")
def __init__(self, text, conntype, parent=None): self.type = conntype icon = ConnectionManager.getConnection(self.type).icon() QAction.__init__(self, icon, text, parent)