Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browseeditpanel.py
diff options
context:
space:
mode:
Diffstat (limited to 'browseeditpanel.py')
-rw-r--r--browseeditpanel.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/browseeditpanel.py b/browseeditpanel.py
index 71e9871..3a8d324 100644
--- a/browseeditpanel.py
+++ b/browseeditpanel.py
@@ -40,14 +40,12 @@ import FlashcardActivity
#
class BrowseEditPanel(gtk.VBox):
- def __init__(self, activity_root):
+ def __init__(self, deckfile):
gtk.VBox.__init__(self)
- self.activity_root = activity_root
-
# Loading in tree of cards
- self.testfile = "testfile.xml"
- self.tree = xml.etree.ElementTree.parse(self.testfile)
+ self.deckfile = deckfile
+ self.tree = xml.etree.ElementTree.parse(self.deckfile)
self.deck_element = self.tree.getroot()
self.deck = self.deck_element.findall("card")