From 7019504be2d831482915aea298fc4d0b4b1ccad6 Mon Sep 17 00:00:00 2001 From: markleigh Date: Wed, 23 Dec 2020 10:59:58 -0800 Subject: 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. --- chirp/ui/mainapp.py | 12 ++++++------ 1 file 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. --> - + + -- cgit v1.2.3