From d532cfb8345933710e1f2657aff343c3c19c5714 Mon Sep 17 00:00:00 2001 From: Christian Jacobs Date: Sat, 23 Mar 2013 14:40:10 +0000 Subject: [PATCH] Remove the booleancell_edited_callback function, since cells are assumed to be only string-based. --- src/pyqso.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/pyqso.py b/src/pyqso.py index 54c7adc..c0339ac 100644 --- a/src/pyqso.py +++ b/src/pyqso.py @@ -189,26 +189,6 @@ class PyQSO(Gtk.Window): return - def booleancell_edited_callback(self, widget, path, text, treeview, column_index): - - # Boolean combo boxes require special treatment: - # ADIF specification denotes True by the letter "Y" and False by the - # letter "N"... - if(text == "Yes"): - text_for_record = "Y" - elif(text == "No"): - text_for_record = "N" - else: - text_for_record = "" - column_name = treeview.get_column(column_index).get_title() - self.logbook.records[int(path)].set_field(column_name, text_for_record) - - # Update the logbook using the actual text from the combo box. - iter = self.logbook.get_iter(path) - self.logbook[path][column_index] = text - - return - def show_about(self, widget): about = Gtk.AboutDialog() about.set_program_name("PyQSO")