aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/GUIComponent.py
blob: 5483d181773a54f08c0033630edd58505376d6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import skin

from enigma import ePoint

class GUIComponent:
	""" GUI component """
	
	def __init__(self):
		pass
	
	def execBegin(self):
		pass
	
	def execEnd(self):
		pass
	
	# this works only with normal widgets - if you don't have self.instance, override this.
	def applySkin(self, desktop):
		skin.applyAllAttributes(self.instance, desktop, self.skinAttributes)

	def move(self, x, y):
		self.instance.move(ePoint(int(x), int(y)))