diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-07-11 16:29:42 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-07-11 16:29:42 (GMT) |
commit | 02111beacdd89a4df6c2baa7b7061fb036432359 (patch) | |
tree | fc520a3e467535cd35d96c0bcd47d5c8a6ead1e3 /createcardpanel.py | |
parent | 883f3e31dad75a44a6ca538b986b34f23e91e065 (diff) | |
parent | 84731cfb87ce932324ca9f1b5a8733225651646d (diff) |
Merge branch 'master' of gitorious@git.sugarlabs.org:memorize/mainline
Diffstat (limited to 'createcardpanel.py')
-rw-r--r-- | createcardpanel.py | 8 |
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() |