def __init__(self, parent, description, item, target): KAction.__init__(self, description, parent) self.item = item self.connect(self, SIGNAL("triggered()"), self.on_triggered) self.connect(self, SIGNAL("actionSig"), target)
def __init__(self, menu, macro, callback): KAction.__init__(self, macro.TITLE.toString(), menu) self.macro = macro self.callback = callback self.connect(self, SIGNAL("triggered()"), self.on_triggered ) # TODO: SIGNAL deprecated and removed in PyQt5
def __init__(self, menu, macro, callback): KAction.__init__(self, macro.TITLE.toString(), menu) self.macro = macro self.callback = callback self.connect(self, SIGNAL("triggered()"), self.on_triggered)