def on_edit_current_button_clicked(self, selection): dialog = AddressDialog("New Address", "Enter the address associated with the current network.", self.address) response = dialog.run() if response == Gtk.ResponseType.OK: try: manual = self.provider.get_proxy() manual.SetAddress(0, dialog.address) except Exception, e: print "D-Bus error: %s" % e # FIXME: the new address doesn't show up in the UI self.update_current_address(dialog.address)
def on_edit_current_button_clicked (self, selection): dialog = AddressDialog("New Address", "Enter an address.", self.address) response = dialog.run () if response == Gtk.ResponseType.OK: try: localnet = self.provider.get_proxy() localnet.SetAddress (dialog.address) except Exception, e: print "D-Bus error: %s" % e #FIXME: the new address doesn't show up in the UI self.update_current_address (dialog.address) self.load_addresses ()
def on_edit_button_clicked (self): dialog = AddressDialog() print dialog.run ()