Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Fixing new alarm button
Browse files Browse the repository at this point in the history
  • Loading branch information
piogor committed Feb 19, 2018
1 parent 8a30bdb commit e25eec5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panic/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def setModel(self,model):

def updateStyle(self,extra=''):
self.setAlignment(QtCore.Qt.AlignCenter)
obj = self.alarm #obj = self.getModelValueObj()
if hasattr(self, 'alarm'):
obj = self.alarm
else:
obj = {}
#print('AlarmValueLabel.updateStyle(%s,%s)'%(type(obj),obj))
if hasattr(obj,'active'):
value = obj.active
Expand Down

0 comments on commit e25eec5

Please sign in to comment.