[chirp_devel] [PATCH] Fix some GTK errors #7431
# HG changeset patch # User Alex Page a.t.page@gmail.com # Date 1591043001 14400 # Mon Jun 01 16:23:21 2020 -0400 # Branch py3 # Node ID cc1e5830ab0881cf22577a3a1f6255e8aa1a144c # Parent ecda15e4be6df1906a981a1c62ef2ee91e5f1305 Fix some GTK errors #7431
This patches a few exceptions I encountered when attempting to export a file.
diff --git a/chirp/ui/importdialog.py b/chirp/ui/importdialog.py --- a/chirp/ui/importdialog.py +++ b/chirp/ui/importdialog.py @@ -50,13 +50,13 @@
def grind(self): while gtk.events_pending(): - gtk.main_iteration(False) + gtk.main_iteration_do(False)
self.prog.pulse()
def set(self, fraction): while gtk.events_pending(): - gtk.main_iteration(False) + gtk.main_iteration_do(False)
self.prog.set_fraction(fraction)
@@ -299,8 +299,6 @@ self.__view = gtk.TreeView(self.__store) self.__view.show()
- tips = gtk.Tooltips() - for k in list(self.caps.keys()): t = self.types[k]
@@ -327,7 +325,7 @@ LOG.debug("Doing %s" % k) lab = gtk.Label(self.caps[k]) column.set_widget(lab) - tips.set_tip(lab, self.tips[k]) + lab.set_tooltip_text(self.tips[k]) lab.show() column.set_sort_column_id(k) self.__view.append_column(column) @@ -408,7 +406,8 @@ inv.show() hbox.pack_start(inv, 0, 0, 0)
- frame = gtk.Frame(_("Select")) + frame = gtk.Frame() + frame.set_label("Select") frame.show() frame.add(hbox) hbox.show() @@ -466,7 +465,8 @@ revr.show() hbox.pack_start(revr, 0, 0, 0)
- frame = gtk.Frame(_("Adjust New Location")) + frame = gtk.Frame() + frame.set_label("Adjust New Location") frame.show() frame.add(hbox) hbox.show()
participants (1)
-
Alex Page