From 89aa01f23e3f89c0d72d4e6d7d82b9c656e1ff30 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Sun, 01 Feb 2009 20:34:06 +0000 Subject: Fix notebook insertions while switching between toolbars --- (limited to 'activity.py') diff --git a/activity.py b/activity.py index 407e6c4..38b4270 100644 --- a/activity.py +++ b/activity.py @@ -188,9 +188,9 @@ class MemorizeActivity(Activity): if self.play_mode == False: self.hbox.remove(self.createcardpanel) self.hbox.remove(self.cardlist) - - self.hbox.pack_start(self.scoreboard) - self.hbox.pack_start(self.table, False) + if self.play_mode in (False, None): + self.hbox.pack_start(self.scoreboard) + self.hbox.pack_start(self.table, False) self.play_mode = True def restart(self, widget): -- cgit v0.9.1