WindowXML: onAction -> bypass non defined actions
#1
I want to hijack an action for two ID's, but without "disabling" the others.
Maybe I'm blind but how do I execute an action ID in Python?

Example:
Code:

def onAction(self, action):
        if action.getId() in [92,10]:
            self.action['call'] = 'quit'
            if action.getId() == [92]:
                self.action['id'] = ''
            self.quit()
        else:
            *** let do other IDs do there default behaviour ***
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#2
Stupid me, I've had an typo somewhere else.
The other ones aren't overwritten. My fault. Solved Wink
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
WindowXML: onAction -> bypass non defined actions00