Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/createcardpanel.py
diff options
context:
space:
mode:
Diffstat (limited to 'createcardpanel.py')
-rw-r--r--createcardpanel.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/createcardpanel.py b/createcardpanel.py
index 0b34ff2..5fc1366 100644
--- a/createcardpanel.py
+++ b/createcardpanel.py
@@ -48,6 +48,8 @@ class CreateCardPanel(gtk.EventBox):
self.equal_pairs = False
self._updatebutton_sensitive = False
+ self._card1_has_sound = False
+ self._card2_has_sound = False
# Set the add new pair buttom
add_icon = join(dirname(__file__), 'images', 'pair-add.svg')
@@ -58,7 +60,8 @@ class CreateCardPanel(gtk.EventBox):
self._addbutton.connect('pressed', self.emit_add_pair)
self._addbutton.set_size_request(
theme.PAIR_SIZE + theme.PAD*4, -1)
-
+ self._addbutton.set_sensitive(False)
+
# Set update selected pair buttom
update_icon = join(dirname(__file__), 'images', 'pair-update.svg')
update_image = gtk.Image()
@@ -68,7 +71,8 @@ class CreateCardPanel(gtk.EventBox):
self._updatebutton.connect('pressed', self.emit_update_pair)
self._updatebutton.set_size_request(
theme.PAIR_SIZE + theme.PAD*4, -1)
-
+ self._updatebutton.set_sensitive(False)
+
# Set card editors
self.cardeditor1 = CardEditor()
self.cardeditor2 = CardEditor()