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

Commit

Permalink
Remove Tabs, simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
sergirubio committed Feb 23, 2018
1 parent e7e8e16 commit b201382
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions panic/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ def setModel(self,model):

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

0 comments on commit b201382

Please sign in to comment.