Example #1
0
    def _on_preferences_action(self, action):
        preferences = PreferencesDialog(self)
        fs = FeedServer();

        preferences.entry.set_text(fs.apikey_get())
        response=preferences.run()
        if response == Gtk.ResponseType.OK:
            entry_value = preferences.entry.get_text()
            result_set = fs.apikey_set(entry_value)
            preferences.destroy()

        elif response == Gtk.ResponseType.CANCEL:
            preferences.destroy()
Example #2
0
 def _on_send_query(self, search_text, search_type):
     feed_server = FeedServer()
     feed_server.search(search_text, search_type, self._on_query_response)