diff options
Diffstat (limited to 'view.py')
-rw-r--r-- | view.py | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -1,7 +1,7 @@ """ Copyright (C) 2009 Mike Major <ossfm@yahoo.com> - This file is part of HopAround. + This file is part of Hop-A-Round. Hop-A-Round is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,7 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with Hop-A-Round. If not, see <http://www.gnu.org/licenses/>. + along with this program. If not, see <http://www.gnu.org/licenses/>. """ import gtk @@ -29,7 +29,7 @@ class Views(): self.user_interaction = gtk.VBox() self.activity = gtk.Notebook() self.activity.set_show_tabs(False) - self.activity.set_size_request(800, 600) + self.activity.set_size_request(800, 560) self.user_interaction.pack_start(self.activity, False, False, 10) # navigation self.navigation = gtk.HButtonBox() @@ -227,3 +227,14 @@ class Views(): def locl(self, characters): return str(locale.format("%d", characters, True)) + +class SettingsToolbar(gtk.Toolbar): + def __init__(self, data): + gtk.Toolbar.__init__(self) + self.question_count_spin_adj = gtk.Adjustment(data.question_max, 1, 100, 1, 1, 0) + self.question_count_spin = gtk.SpinButton(self.question_count_spin_adj, 0, 0) + self.question_count_spin.set_numeric(True) + self.question_count_spin.show() + tool_item_question_count = gtk.ToolItem() + tool_item_question_count.add(self.question_count_spin) + self.insert(tool_item_question_count, -1) |