Changeset 809


Ignore:
Timestamp:
Apr 22, 2012 5:08:37 PM (10 years ago)
Author:
jemian
Message:

correct the call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moxy/trunk/src/test/qtprobe.py

    r788 r809  
    11#!/usr/bin/env python
     2
     3# from Matt Newville, CARS, U Chicago
     4
    25import epics
    36import sys
     
    1114        self.pvname = QLineEdit()
    1215        value_label = QLabel("PV Value:")
    13         self.value  = QLabel("    ")
     16        self.value  = QLabel(" "*4)
    1417
    1518        self.pvname.returnPressed.connect(self.onPVNameReturn)
     
    2730    def onPVNameReturn(self):
    2831        if self.pv is not None:
    29             self.pv.cancel_callback()
    30             self.pv.disconnect()
    31         self.pv = epics.PV(self.pvname.text(), callback=self.onPVChange)
     32            self.pv.remove_callback()
     33            self.pv.disconnect()
     34        self.pv = epics.PV(self.pvname.text(), callback=self.onPVChange)
    3235
    3336    def onPVChange(self, pvname=None, char_value=None, **kws):
Note: See TracChangeset for help on using the changeset viewer.