Compare commits

..

No commits in common. "27547906373f3d84f01fcade2dd3a3c93c501614" and "1fa320cbd31c17c933b47754799f3a049d010218" have entirely different histories.

1 changed files with 1 additions and 2 deletions

View File

@ -49,6 +49,7 @@ class Window(Gtk.Window):
self.api = Api(config) self.api = Api(config)
self.entry = Gtk.Entry() self.entry = Gtk.Entry()
self.entry.set_visibility(False)
self.entry.set_width_chars(32) self.entry.set_width_chars(32)
self.entry.connect('activate', self.on_entry_activate) self.entry.connect('activate', self.on_entry_activate)
self.add(self.entry) self.add(self.entry)
@ -67,8 +68,6 @@ class Window(Gtk.Window):
def on_entry_activate(self, widget): def on_entry_activate(self, widget):
results = self.api('GET', '/api/v1/organizers/%(organizer)s/checkinrpc/search/', ignore_status='true', list=self.config['list'], search=widget.get_text()) results = self.api('GET', '/api/v1/organizers/%(organizer)s/checkinrpc/search/', ignore_status='true', list=self.config['list'], search=widget.get_text())
widget.set_text('')
if results['count'] == 0: if results['count'] == 0:
self.info('Keine Ergebnisse', 'Bitte präzisiere deine Eingabe.') self.info('Keine Ergebnisse', 'Bitte präzisiere deine Eingabe.')
return return