From d62a5d1d824ae0f96c33cbdbd64947c07039122b Mon Sep 17 00:00:00 2001 From: James Boisture Date: Wed, 04 Aug 2010 19:35:25 +0000 Subject: added a "cancel" button to the upload popup --- diff --git a/turtleart.py b/turtleart.py index ee17366..1b2dc8d 100755 --- a/turtleart.py +++ b/turtleart.py @@ -523,13 +523,20 @@ http://turtleartsite.sugarlabs.org to upload your project.')) self.Hbox4.add(description_label) self.Hbox4.add(self.description_entry) + self.Hbox5 = gtk.HBox() + table.attach(self.Hbox5, 0, 1, 6, 7) self.submit_button = gtk.Button(_('Submit to Web')) - self.submit_button.set_size_request(600, 25) + self.submit_button.set_size_request(300, 25) self.submit_button.connect('pressed', self._do_remote_logon) - table.attach(self.submit_button, 0, 1, 6, 7) + self.Hbox5.add(self.submit_button) + self.cancel_button = gtk.Button(_("Cancel")) + self.cancel_button.set_size_request(300, 25) + self.cancel_button.connect('pressed', self._stop_uploading) + self.Hbox5.add(self.submit_button) + self.Hbox5.add(self.cancel_button) self.pop_up.show_all() - def _stop_uploading(self, widget, event): + def _stop_uploading(self, widget, event=None): """ Hide the popup when the upload is complte """ self.uploading = False self.pop_up.hide() -- cgit v0.9.1