Esempio n. 1
0
	def __init__(self, **kwargs):
		VBox.__init__(self, name='tooltip_background', padding=0)
		TilingBackground.__init__(self,
			amount=0,
			base_path="content/gui/images/background/widgets/tooltip_bg_",
			start_img="top.png", tiles_img="middle.png", final_img="bottom.png",
			**kwargs)
Esempio n. 2
0
	def __init__(self, **kwargs):
		VBox.__init__(self, name='tab_background_icons', padding=0)
		TilingBackground.__init__(self,
			amount=0,
			base_path="content/gui/images/tabwidget/main_bg_",
			start_img="top.png", tiles_img="fill.png", final_img="bottom.png",
			**kwargs)
Esempio n. 3
0
	def __init__(self, **kwargs):
		VBox.__init__(self, name='tab_background_icons', padding=0)
		TilingBackground.__init__(self,
			amount=0,
			base_path="content/gui/images/tabwidget/main_bg_",
			start_img="top.png", tiles_img="fill.png", final_img="bottom.png",
			**kwargs)
Esempio n. 4
0
	def __init__(self, **kwargs):
		VBox.__init__(self, name='tooltip_background', padding=0)
		TilingBackground.__init__(self,
			amount=0,
			base_path="content/gui/images/background/widgets/tooltip_bg_",
			start_img="top.png", tiles_img="middle.png", final_img="bottom.png",
			**kwargs)
Esempio n. 5
0
    def update(self):
        self.removeAllChildren()
        vbox = VBox(padding=0)
        vbox.width = self.width
        current_hbox = HBox(padding=0)

        # draw the content
        self._draw(vbox, current_hbox)

        self.adaptLayout()
        self.stylize("menu_black")
Esempio n. 6
0
    def update(self):
        self.removeAllChildren()
        if self.display_legend:
            self.addChildren(self.__icon, self.legend)
        vbox = VBox(padding=0)
        vbox.width = self.width
        current_hbox = HBox(padding=0)

        # draw the content
        self._draw(vbox, current_hbox)

        self.adaptLayout()
	def update(self):
		self.removeAllChildren()
		if self.display_legend:
			self.addChildren(self.__icon, self.legend)
		vbox = VBox(padding=0)
		vbox.width = self.width
		current_hbox = HBox(padding=0)

		# draw the content
		self._draw(vbox, current_hbox)

		self.adaptLayout()
Esempio n. 8
0
 def __init__(self, min_size=(0, 0), max_size=(9999, 9999), border_size=1,
              **kwargs):
     self._min_size = min_size
     self._max_size = max_size
     self.views = {}
     tab_bar = HBox(name='tabBar')
     tab_bar.min_size = (0, 20)
     tab_bar.max_size = (9999, 20)
     self.view = ScrollArea(name='view')
     self.view.min_size = self._min_size
     self.view.max_size = self._max_size
     self.view.border_size = border_size
     frame = VBox(name='frame')
     frame.border_size = border_size
     frame.opaque = 0
     frame.addChild(self.view)
     VBox.__init__(self, **kwargs)
     self.padding = 0
     VBox.addChild(self, tab_bar)
     VBox.addChild(self, frame)
     self.adaptLayout()