+#Pedometer Home Widget
+#Author: Mirestean Andrei < andrei.mirestean at gmail.com >
+#
+#This program is free software: you can redistribute it and/or modify
+#it under the terms of the GNU General Public License as published by
+#the Free Software Foundation, either version 3 of the License, or
+#(at your option) any later version.
+#
+#This program is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#GNU General Public License for more details.
+#
+#You should have received a copy of the GNU General Public License
+#along with this program. If not, see <http://www.gnu.org/licenses/>.
+
import gtk
import cairo
import hildondesktop
logging = False
def __init__(self):
-
gtk.gdk.threads_init()
#gobject.threads_init()
hildondesktop.HomePluginItem.__init__(self)
logButton.set_active(widget.logging)
logButton.connect("toggled", logButton_changed)
- dialog.vbox.add(button)
- dialog.vbox.add(modePicker)
- dialog.vbox.add(heightPicker)
- dialog.vbox.add(unitPicker)
- dialog.vbox.add(UIPicker)
- dialog.vbox.add(logButton)
-
+ pan_area = hildon.PannableArea()
+ vbox = gtk.VBox()
+ vbox.add(button)
+ vbox.add(modePicker)
+ vbox.add(heightPicker)
+ vbox.add(unitPicker)
+ vbox.add(UIPicker)
+ vbox.add(logButton)
+
+ pan_area.add_with_viewport(vbox)
+ pan_area.set_size_request(-1, 600)
+ dialog.vbox.add(pan_area)
dialog.show_all()
response = dialog.run()
#hildon.hildon_banner_show_information(self, "None", "You have to Stop/Start the counter to apply the new settings")