Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Char.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-01-20 04:08:48 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-01-21 11:51:12 (GMT)
commit3978a402ba1bdef5bf21772e6fa59364807c8c97 (patch)
tree995d4e23c5e9db7a2a6a3e06c1cbfcdc1818d9b1 /Char.py
parente9e55bfa06421753ff2f8c5cbc59328628c69fd4 (diff)
...
Diffstat (limited to 'Char.py')
-rw-r--r--Char.py34
1 files changed, 18 insertions, 16 deletions
diff --git a/Char.py b/Char.py
index 9666543..6450cd5 100644
--- a/Char.py
+++ b/Char.py
@@ -17,24 +17,26 @@ from gettext import gettext as _
import Theme
+class Char:
+ def __init__(self, name, file, dir, custom):
+ self.name = name
+ self.pixbuf = Theme.pixbuf(file, Theme.THUMB_SIZE)
+ self.dir = dir
+ self.custom = custom
+
+ def thumb(self):
+ return self.pixbuf
+
THEMES = (
- { 'name' : _('Elephant'),
- 'pixbuf': Theme.pixmap('images/pics/Elephant/bigelephant0.gif'),
- 'dir' : 'images/pics/Elephant',
- 'custom': None },
- { 'name' : _('Space Blob'),
- 'pixbuf': Theme.pixmap('images/pics/SpaceBlob/bigblob8.gif'),
- 'dir' : 'images/pics/SpaceBlob',
- 'custom': None },
- { 'name' : _('Turkey'),
- 'pixbuf': Theme.pixmap('images/pics/Turkey/bigturkey1.gif'),
- 'dir' : 'images/pics/Turkey',
- 'custom': None },
+ Char(_('Elephant'), 'images/pics/Elephant/bigelephant0.gif',
+ 'images/pics/Elephant', None),
+ Char(_('Space Blob'), 'images/pics/SpaceBlob/bigblob8.gif',
+ 'images/pics/SpaceBlob', None),
+ Char(_('Turkey'), 'images/pics/Turkey/bigturkey1.gif',
+ 'images/pics/Turkey', None),
None,
- { 'name' : _('Custom'),
- 'pixbuf': Theme.pixmap('images/pics/custom.png'),
- 'dir' : None,
- 'custom': True } )
+ Char(_('Custom'), 'images/pics/custom.png',
+ None, True) )