Exemplo n.º 1
0
	def __init__(self, parent=None, **kwargs):
		self._background_color = None
		self._border_color = None
		self._border_width = None

		Control.__init__(self, parent, **kwargs)
		InputControl.__init__(self)
Exemplo n.º 2
0
	def __init__(self, parent=None, label='', **kwargs):
		self._autosize = kwargs.get('autosize', True)
		self._wrap = False
		self._color = (1., 1., 1., 1.)
		self._font = soya.pudding.STYLE.default_font
		self._clip = CLIP_LEFT
		
		Control.__init__(self, parent, **kwargs)

		self.display_list = glGenLists(1)
		
		self._text = label
		self._display_text = ''

		self.update()
Exemplo n.º 3
0
	def __init__(self, parent=None, material=None, **kwargs):

		self._material = material

		self._tex_top = 0.
		self._tex_left = 0.
		self._tex_right = 1.
		self._tex_bottom = 1.

		self._rotation = 0.
		self._shade = None

		self._display_list = glGenLists(1)
		self._modified = 1

		Control.__init__(self, parent, **kwargs)