diff options
| author | markleigh <mark@variousandsundry.ca> | 2020-12-23 10:59:58 -0800 |
|---|---|---|
| committer | markleigh <mark@variousandsundry.ca> | 2020-12-23 10:59:58 -0800 |
| commit | 7019504be2d831482915aea298fc4d0b4b1ccad6 (patch) | |
| tree | e4aa6abea0bdbff568582d697d1b58326f5e9741 | |
| parent | 2ab1f3618f01fa3e1ebe53cbb58ce915269a3c74 (diff) | |
| download | chirp-7019504be2d831482915aea298fc4d0b4b1ccad6.tar.gz chirp-7019504be2d831482915aea298fc4d0b4b1ccad6.tar.xz | |
Gtk/gdk fix for RadioReference import/query. Fixes #10
Fixed in the same way a previous author fixed the repeaterbook import. Not sure this is the best way, but it works. Tested py3.6 debian. Could not convince tox to run but code is pep8, and drivers were untouched.
| -rw-r--r-- | chirp/ui/mainapp.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chirp/ui/mainapp.py b/chirp/ui/mainapp.py index a2cd9e4..eabdc14 100644 --- a/chirp/ui/mainapp.py +++ b/chirp/ui/mainapp.py @@ -1377,7 +1377,7 @@ of file. return False def do_radioreference(self, do_import): - self.window.set_cursor(Gtk.Gdk.Cursor(Gtk.Gdk.WATCH)) + self.window.set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) if not self.do_radioreference_prompt(): self.window.set_cursor(None) return @@ -1388,9 +1388,9 @@ of file. # Do this in case the import process is going to take a while # to make sure we process events leading up to this - Gtk.Gdk.window_process_all_updates() - while Gtk.events_pending(): - Gtk.main_iteration(False) + #Gtk.Gdk.window_process_all_updates() + #while Gtk.events_pending(): + # Gtk.main_iteration(False) if do_import: eset = self.get_current_editorset() @@ -1776,8 +1776,8 @@ of file. <menuitem action="irfinder"/> --> </menu> <menu action="querysrc" name="querysrc"> - <!-- <menuitem action="qdmrmarc"/> - <menuitem action="qradioreference"/> --> + <!-- <menuitem action="qdmrmarc"/> --> + <menuitem action="qradioreference"/> <menu action="qrbook" name="qrbook"> <menuitem action="qrbookpolitical"/> <menuitem action="qrbookproximity"/> |
