diff options
author | flavio <fdanesse@gmail.com> | 2013-08-06 22:39:18 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-09-02 17:50:01 (GMT) |
commit | 3a738d25d4f88e023c5f9a81d463ce12b89e3d9a (patch) | |
tree | 30fa0cd08bf6903e584349faba35892e7a7f77b2 | |
parent | 99da8dd62b6f2df8ce0b52a5520a4f1629b0353d (diff) |
Correcciones
-rw-r--r-- | PollSession.py | 6 | ||||
-rw-r--r-- | Widgets.py | 6 | ||||
-rw-r--r-- | poll.py | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/PollSession.py b/PollSession.py index 2c816c4..71ede76 100644 --- a/PollSession.py +++ b/PollSession.py @@ -25,6 +25,12 @@ import base64 from datetime import date +try: + from hashlib import sha1 +except ImportError: + # Python < 2.5 + from sha import new as sha1 + from dbus.service import method, signal from dbus.gobject_service import ExportedGObject @@ -144,7 +144,7 @@ class NewPollCanvas(Gtk.Box): hbox.pack_start(button, True, True, 10) button = Gtk.Button(_("Step 2: Save")) - button.connect('clicked', self.__button_save_cb) + button.connect('clicked', self._button_save_cb) hbox.pack_start(button, True, True, 10) self.pack_start(hbox, False, False, 10) @@ -233,7 +233,7 @@ class NewPollCanvas(Gtk.Box): parent_box.pack_start(hbox, True, True, 0) - def __button_save_cb(self, button): + def _button_save_cb(self, button): """ Save button clicked. """ @@ -491,7 +491,7 @@ class OptionsCanvas(Gtk.Box): Callback for alert events """ - self.get_toplevel().remove_alert(alert) + self.poll_activity.remove_alert(alert) class SelectCanvas(Gtk.Box): @@ -492,7 +492,7 @@ class PollBuilder(activity.Activity): button.connect('clicked', self.__button_edit_clicked) button_box.pack_start(button, True, True, 0) button = Gtk.Button(_("Save Poll")) - button.connect('clicked', self.get_canvas().button_save_cb) + button.connect('clicked', self.get_canvas()._button_save_cb) button_box.pack_start(button, True, True, 0) self.poll_details_box_tail.pack_start(button_box, True, True, 0) |