Пример #1
0
    def __init__(
            self,
            text,
            callback_action=None,
            enable_gaussian=False,
            text_color=ui_theme.get_color("link_text"),
    ):
        '''
        Initialize LinkButton class.

        @param text: Link content.
        @param link: Link address.
        @param enable_gaussian: To enable gaussian effect on link, default is True.
        @param text_color: Link color, just use when option enable_gaussian is False.
        '''
        Label.__init__(self,
                       text,
                       text_color,
                       enable_gaussian=enable_gaussian,
                       text_size=9,
                       gaussian_radious=1,
                       border_radious=0,
                       underline=True)
        self.callback_action = callback_action

        set_clickable_cursor(self)
        self.connect('button-press-event', self.button_press_action)
    def __init__(self, 
                 text, 
                 callback_action=None,
                 enable_gaussian=False, 
                 text_color=ui_theme.get_color("link_text"),
                 ):
        Label.__init__(self, text, text_color, enable_gaussian=enable_gaussian, text_size=9,
                       gaussian_radious=1, border_radious=0, underline=False)
        self.callback_action = callback_action

        set_clickable_cursor(self)
        self.connect('button-press-event', self.button_press_action)
Пример #3
0
    def __init__(
            self,
            text,
            callback_action=None,
            enable_gaussian=False,
            text_color=ui_theme.get_color("link_text"),
    ):
        Label.__init__(self,
                       text,
                       text_color,
                       enable_gaussian=enable_gaussian,
                       text_size=9,
                       gaussian_radious=1,
                       border_radious=0,
                       underline=False)
        self.callback_action = callback_action

        set_clickable_cursor(self)
        self.connect('button-press-event', self.button_press_action)
Пример #4
0
    def __init__(self, 
                 text, 
                 enable_gaussian=False, 
                 text_color=ui_theme.get_color("link_text"),
                 ):
        '''
        Initialize LinkButton class.
        
        @param text: Link content.
        @param link: Link address.
        @param enable_gaussian: To enable gaussian effect on link, default is True.
        @param text_color: Link color, just use when option enable_gaussian is False.
        '''
        Label.__init__(self, text, text_color, enable_gaussian=enable_gaussian, text_size=9,
                       gaussian_radious=1, border_radious=0, underline=True)
        self.callback_action = None

        set_clickable_cursor(self)
        self.connect('button-press-event', self.button_press_action)