Example #1
0
def present_choice(choice_component, ui_parent=None):
    if isinstance(ui_parent, wx.ToolBar):
        WxAddOn(choice_component).widget = ui_parent
        for choice in choice_component.choices:
            icon_name = choice.hints.get('icon', 'ChandlerLogo')
            icon = image.get_image(icon_name, 'Chandler_App')
            tool = ui_parent.AddRadioLabelTool(-1, choice.label, icon, clientData=choice, shortHelp=choice.help)
            if tool is not None:
                WxAddOn(choice).widget = tool
                _bind_to_choice(choice_component, tool)
        choice_component.__performer__ = _push_to_tool(choice_component)
Example #2
0
def present_choice(choice_component, ui_parent=None):
    if isinstance(ui_parent, wx.ToolBar):
        WxAddOn(choice_component).widget = ui_parent
        for choice in choice_component.choices:
            icon_name = choice.hints.get('icon', 'ChandlerLogo')
            icon = image.get_image(icon_name, 'Chandler_App')
            tool = ui_parent.AddRadioLabelTool(-1,
                                               choice.label,
                                               icon,
                                               clientData=choice,
                                               shortHelp=choice.help)
            if tool is not None:
                WxAddOn(choice).widget = tool
                _bind_to_choice(choice_component, tool)
        choice_component.__performer__ = _push_to_tool(choice_component)
Example #3
0
 def bitmapProvider(self, name):
     return get_image(name, "Chandler_App")
Example #4
0
 def bitmap(self):
     name = self.hints.get('header_icon')
     if name:
         return image.get_image(name, "Chandler_App")
     else:
         return None
Example #5
0
 def bitmapProvider(self, name):
     return get_image(name, "Chandler_App")
Example #6
0
 def bitmap(self):
     name = self.hints.get('header_icon')
     if name:
         return image.get_image(name, "Chandler_App")
     else:
         return None