Вам нужно создать экземпляр класса здесь.
Использовать
p = Pump()
p.getPumps()
Маленький пример -
>>> class TestClass:
def __init__(self):
print "in init"
def testFunc(self):
print "in Test Func"
>>> testInstance = TestClass()
in init
>>> testInstance.testFunc()
in Test Func
Добавьте еще ColorAnimation
в Storyboard
и установите для его свойства BeginTime
значение, большее или равное Duration
первого, например :
<EventTrigger RoutedEvent="ContentChanged">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation BeginTime="0:0:0" Duration="0:0:1"
Storyboard.TargetProperty="(Label.Background).(SolidColorBrush.Color)"
To="Yellow"/>
<ColorAnimation BeginTime="0:0:1" Duration="0:0:1"
Storyboard.TargetProperty="(Label.Background).(SolidColorBrush.Color)"
To="White"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>