From b9800ba6554d508c4705051fea9583a226b360c3 Mon Sep 17 00:00:00 2001 From: ccppi Date: Thu, 8 Aug 2024 13:09:44 +0200 Subject: [PATCH] remove depreacted functions --- lib/gui.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/lib/gui.py b/lib/gui.py index f7e89de..4451468 100644 --- a/lib/gui.py +++ b/lib/gui.py @@ -36,47 +36,12 @@ class ColorDelegate(QStyledItemDelegate): except ValueError: print("probably empty string asign zero") flag_starred = 0 - - #print("index:",index) - #print("column ",column) - #print("data:", flag_starred) if flag_starred == 1: option.backgroundBrush = QtGui.QColor("red") elif flag_viewed != 1: option.backgroundBrush = QtGui.QColor("green") else: option.backgroundBrush = QtGui.QColor("white") - - -#if column == 0: -# try: -# value = float(data) -# except: -# pass -# #print("error not an integer") -# else: -# #self.view.currentRow = index.row() -# #print("row: ",self.currentRow) -# if value == 1: -# self.starred = 1 -# else: -# self.starred = 0 -# if column == 8: -# try: -# value = float(data) -# except: -# pass -# else: -# if value == 1: -# self.starred = 2 -# else: -# self.starred = 0 -# if self.starred == 1: -# option.backgroundBrush = QtGui.QColor("red") -# elif self.starred == 2: -# option.backgroundBrush = QtGui.QColor("white") -# else: -# option.backgroundBrush = QtGui.QColor("green") class ValidationWorker(QObject): finished = Signal()