Example #1
0
 def updateHelpText(self):
     for (actionmap, context, actions) in self.helpList:
         if context == "ColorActionsLong":
             for index, item in enumerate(actions):
                 func = qButtons.getFunction(item[0])
                 text = getPluginCaption(func)
                 actions[index] = (item[0], text)
Example #2
0
 def findButton(self, function):
     fn = ('red', 'green', 'yellow', 'blue')
     for key in fn:
         func = qButtons.getFunction(key)
         if func == function:
             key_text = 'key_%s' % (key)
             return self[key_text]
 def findButton(self, function):
     fn = ('red', 'green', 'yellow', 'blue')
     for key in fn:
         func = qButtons.getFunction(key)
         if func == function:
             key_text = 'key_%s' % (key)
             return self[key_text]
 def updateHelpText(self):
     for (actionmap, context, actions) in self.helpList:
         if context == "ColorActionsLong":
             for index, item in enumerate(actions):
                 func = qButtons.getFunction(item[0])
                 text = getPluginCaption(func)
                 actions[index] = (item[0], text)
Example #5
0
 def updateButtonText(self):
     global toggleSeenButton
     toggleSeenButton = None
     fn = ('red', 'green', 'yellow', 'blue')
     for key in fn:
         key_text = 'key_%s' % (key)
         function = qButtons.getFunction(key)
         text = getPluginCaption(function)
         self[key_text].setText(text)
         if function == "Toggle seen":
             toggleSeenButton = self[key_text]
 def updateButtonText(self):
     global toggleSeenButton
     toggleSeenButton = None
     fn = ('red', 'green', 'yellow', 'blue')
     for key in fn:
         key_text = 'key_%s' % (key)
         function = qButtons.getFunction(key)
         text = getPluginCaption(function)
         self[key_text].setText(text)
         if function == "Toggle seen":
             toggleSeenButton = self[key_text] 
 def getFunction(self, key):
     if self.qindex == 0 or not key in self.fn:
         print "stored function", key
         return qButtons.getFunction(key)
     else:
         num = self.fn.index(key)
         n = ((self.qindex - 1) * 4) + num
         print "index funktion", key, str(n)
         if n < len(self.qbuttons):
             return self.qbuttons[n][0]
         else:
             return "Nothing"
Example #8
0
 def redpressedlong(self):
     print("red long")
     self.startPlugin(qButtons.getFunction("red_long"), None)
Example #9
0
 def greenpressedlong(self):
     print("green long")
     self.startPlugin(qButtons.getFunction("green_long"), None)
Example #10
0
 def yellowpressed(self):
     self.startPlugin(qButtons.getFunction("yellow"), self["key_yellow"])
Example #11
0
 def bluepressed(self):
     self.startPlugin(qButtons.getFunction("blue"), self["key_blue"])
Example #12
0
 def redpressed(self):
     self.startPlugin(qButtons.getFunction("red"), self["key_red"])
Example #13
0
 def greenpressed(self):
     self.startPlugin(qButtons.getFunction("green"), self["key_green"])
 def greenpressed(self):
     self.startPlugin(qButtons.getFunction("green"), self["key_green"])
 def redpressed(self):
     self.startPlugin(qButtons.getFunction("red"), self["key_red"])
 def bluepressed(self):
     self.startPlugin(qButtons.getFunction("blue"), self["key_blue"])
 def yellowpressed(self):
     self.startPlugin(qButtons.getFunction("yellow"), self["key_yellow"])
Example #18
0
 def yellowpressedlong(self):
     print("yellow long")
     self.startPlugin(qButtons.getFunction("yellow_long"), None)
 def bluepressedlong(self):
     print "blue long"
     self.startPlugin(qButtons.getFunction("blue_long"), None)
 def yellowpressedlong(self):
     print "yellow long"
     self.startPlugin(qButtons.getFunction("yellow_long"), None)
 def greenpressedlong(self):
     print "green long"
     self.startPlugin(qButtons.getFunction("green_long"), None)
 def redpressedlong(self):
     print "red long"
     self.startPlugin(qButtons.getFunction("red_long"), None)
Example #23
0
 def bluepressedlong(self):
     print("blue long")
     self.startPlugin(qButtons.getFunction("blue_long"), None)
 def findButton(self, function):
     for key in self.fn:
         func = qButtons.getFunction(key)
         if func == function:
             key_text = 'key_%s' % (key)
             return self[key_text]