vbox.add(apiEntry)
ok_button = dialog.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
+ cancel_button = dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
dialog.show_all()
result = dialog.run()
while not valid_credentials:
if result == gtk.RESPONSE_OK:
uid = uidEntry.get_text()
- api_key = apiEntry.get_text()
+ # auth() fails if api_key has lower-case characters
+ api_key = apiEntry.get_text().upper()
try:
validation.uid(uid)
self.controller = controller
gtk.set_application_name("mEveMon")
+ def run(self):
# create the main window
self.win = hildon.Window()
self.win.connect("destroy", self.controller.quit)