Example #1
0
 def get_icon(self):
     if self.system_icon:
         return self.__icon
     else:
         image = Utility.load_and_scale_image(self.__icon, 16, 16)
         image.show()
         return image
Example #2
0
 def build(cls, name, icon_path, icon_id, action):
     image = Utility.load_and_scale_image(icon_path, 12, 12)
     if image is None:
         return TrayAction(name, icon_id, action, True)
     else:
         return TrayAction(name, icon_path, action, False)