def _get_name_element(self, name): painter = functions.obtain_valid_painter(painterstyle.DEF_PAINTER, size=style.SIZE) el = Clickable(name) el.set_painter(painter) el.finish() return el
def _get_name_element(self, name): painter = functions.obtain_valid_painter(painterstyle.DEF_PAINTER, size=style.SIZE) el = Clickable(name) el.set_painter(painter) el.finish() return el
def make_image_button_with_frame(img_normal, img_pressed=None, img_hover=None, alpha=255, colorkey=None, text=""): e = Clickable(text,finish=False) painter = ButtonImage(img_normal, img_pressed, img_hover, alpha, colorkey) e.set_painter(painter) e.finish() return e
def make_image_button(img_normal, img_pressed=None, img_hover=None, alpha=255, colorkey=None, text=""): e = Clickable(text) painter = ButtonImage(img_normal, img_pressed, img_hover, alpha, colorkey) e.set_painter(painter) e.finish() return e
def _get_name_element(self, name, namestyle): painter = functions.obtain_valid_painter( painterstyle.INSERTER_NAME_PAINTER, size=style.SIZE) el = Clickable(name, finish=False) el.set_painter(painter) if namestyle: el.set_style(namestyle) el.finish() return el
def make_image_button(img_normal, img_pressed=None, img_hover=None, alpha=255, colorkey=None, text="", force_convert_alpha=False): e = Clickable(text,finish=False) painter = ImageButton(img_normal, img_pressed, img_hover, alpha, colorkey, force_convert_alpha=force_convert_alpha) e.set_painter(painter) e.finish() return e
def get_launcher_element(self, name): size = (style.SIZE[0], style.Y_SMALL_SIZE) painter = functions.obtain_valid_painter( painterstyle.BROWSER_LAUNCHER_PAINTER, size=size) el = Clickable(name) el.set_painter(painter) el.set_style(style.STYLE_BROWSER_LAUNCHER) el.finish() return el
def _get_name_element(self, name, namestyle): painter = functions.obtain_valid_painter( painterstyle.INSERTER_NAME_PAINTER, size=style.SIZE) el = Clickable(name) el.set_painter(painter) if namestyle: el.set_style(namestyle) el.finish() return el
def get_launcher_element(self, name): size = (style.SIZE[0], style.Y_SMALL_SIZE) painter = functions.obtain_valid_painter( painterstyle.BROWSER_LAUNCHER_PAINTER, size=size) el = Clickable(name) el.set_painter(painter) el.set_style(style.STYLE_BROWSER_LAUNCHER) el.finish() return el