Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ground.py
diff options
context:
space:
mode:
Diffstat (limited to 'ground.py')
-rw-r--r--ground.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ground.py b/ground.py
index c342f76..7801e67 100644
--- a/ground.py
+++ b/ground.py
@@ -33,7 +33,9 @@ def load():
class Ground:
+
def __init__(self, name, id):
+
self.name = name
self.id = id
self._thumb = None
@@ -57,7 +59,9 @@ class Ground:
class PreinstalledGround(Ground):
+
def __init__(self, name, filename):
+
Ground.__init__(self, name, filename)
self._orig = theme.pixbuf(filename)
@@ -66,7 +70,9 @@ class PreinstalledGround(Ground):
class CustomGround(Ground):
+
def __init__(self, name, filename):
+
Ground.__init__(self, name, None)
self._orig = theme.pixbuf(filename)
@@ -79,14 +85,19 @@ class CustomGround(Ground):
class RestoredGround(Ground):
+
def __init__(self, name, id, data):
+
Ground.__init__(self, name, id)
self._orig = pixbuf.from_str(data)
class JournalGround(Ground):
+
def __init__(self, jobject):
+
Ground.__init__(self, jobject.metadata['title'], jobject.object_id)
+
self._orig = theme.pixbuf(jobject.file_path)
THEMES.append(self)