Exemplo n.º 1
0
    def apply_style(self, seen=None):
        BinillaWidget.apply_style(self, seen)
        if self.disabled:
            bg = self.entry_disabled_color
            fg = self.text_disabled_color
        else:
            bg = self.enum_normal_color
            fg = self.text_normal_color

        menu_width = self.menu_width if self.menu_width else self.scroll_menu_width
        self.sel_label.config(bg=bg,
                              fg=fg,
                              width=max(
                                  min(menu_width, self.scroll_menu_max_width),
                                  1))
        self.option_box.config(width=menu_width)
 def apply_style(self, seen=None):
     BinillaWidget.apply_style(self, seen)
     self.update()
     w, h = self.winfo_reqwidth(), self.winfo_reqheight()
     self.geometry("%sx%s" % (w, h))
     self.minsize(width=w, height=h)
Exemplo n.º 3
0
    def apply_style(self, seen=None):
        BinillaWidget.apply_style(self, seen)
        self.tags_tree_frame.config(bg=self.default_bg_color)

        dir_tree = self.tags_tree
        self.highlight_tags_dir()
Exemplo n.º 4
0
 def apply_style(self, seen=None):
     BinillaWidget.apply_style(self, seen)
     self.root_canvas.config(bg=self.default_bg_color)
     self.root_frame.config(bg=self.default_bg_color)