Skip to content

Commit

Permalink
Merge pull request #887 from jbellister-slac/designer_error
Browse files Browse the repository at this point in the history
FIX: Don't raise AttributeError when loading widget in designer
  • Loading branch information
jbellister-slac authored May 28, 2022
2 parents dcba775 + dab7771 commit bb578d0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pydm/widgets/analog_indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,6 @@ def majorAlarmColor(self, color):
"""
self.scale_indicator.set_major_alarm_color(color)

# Reject originAtZero setter and getter
@Property(bool)
def originAtZero(self):
raise AttributeError("origin at zero disabled for analog indicator")

@Property(bool)
def barIndicator(self):
raise AttributeError("bar indicator disalbed for analog indicator")

@Property(bool)
def minorAlarmFromChannel(self):
"""
Expand Down Expand Up @@ -683,3 +674,7 @@ def userLowerMajorAlarm(self, value):

self._user_lower_major_alarm = value
self.scale_indicator.set_lower_major_alarm(self._user_lower_major_alarm)

# Two properties available on PyDMScaleIndicator we don't support for PyDMAnalogIndicator
originAtZero = Property(bool, None, None, designable=False)
barIndicator = Property(bool, None, None, designable=False)

0 comments on commit bb578d0

Please sign in to comment.