Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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
Пример #4
0
 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)
Пример #5
0
 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)