remove depreacted functions
This commit is contained in:
parent
01adf276a8
commit
b9800ba655
35
lib/gui.py
35
lib/gui.py
@ -36,47 +36,12 @@ class ColorDelegate(QStyledItemDelegate):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
print("probably empty string asign zero")
|
print("probably empty string asign zero")
|
||||||
flag_starred = 0
|
flag_starred = 0
|
||||||
|
|
||||||
#print("index:",index)
|
|
||||||
#print("column ",column)
|
|
||||||
#print("data:", flag_starred)
|
|
||||||
if flag_starred == 1:
|
if flag_starred == 1:
|
||||||
option.backgroundBrush = QtGui.QColor("red")
|
option.backgroundBrush = QtGui.QColor("red")
|
||||||
elif flag_viewed != 1:
|
elif flag_viewed != 1:
|
||||||
option.backgroundBrush = QtGui.QColor("green")
|
option.backgroundBrush = QtGui.QColor("green")
|
||||||
else:
|
else:
|
||||||
option.backgroundBrush = QtGui.QColor("white")
|
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):
|
class ValidationWorker(QObject):
|
||||||
finished = Signal()
|
finished = Signal()
|
||||||
|
Loading…
Reference in New Issue
Block a user