def on_execute(self, item, action):
    if (item.category() == self.ITEMCAT):
        to_clipboard = getattr(self.fakeGenerator, item.target())()
    elif (item.category() == self.ITEMRESULT):
        to_clipboard = item.label()
    kpu.set_clipboard(to_clipboard)
def on_execute(self, item, action):
    if (item.category() == self.ITEMCAT):
        to_clipboard = getattr(self.fakeGenerator, item.target())()
    elif (item.category() == self.ITEMRESULT):
        to_clipboard = item.label()
    kpu.set_clipboard(to_clipboard)