Ejemplo n.º 1
0
 def slotButtonEvent(self, s, id):
     self.p.s = self.p.os = s  # set socket must be the first command
     if id == self.obj1:
         self.I = 0
         ret = pv.pvPrintf(self.p, self.obj1, 'reset' + str(self.I))
         print 'reset I = 0'
     return 0
Ejemplo n.º 2
0
 def slotButtonEvent(self, s, id):
   self.p.s = self.p.os = s # set socket must be the first command
   if id == self.obj1:
     self.I = 0
     ret = pv.pvPrintf(self.p,self.obj1,'reset'+str(self.I))
     print 'reset I = 0'
   return 0
Ejemplo n.º 3
0
 def slotNullEvent(self, s):
     self.p.s = self.p.os = s  # set socket must be the first command
     ret = pv.pvPrintf(self.p, self.obj1, 'hello' + str(self.I))
     self.I = self.I + 1
     return 0
Ejemplo n.º 4
0
 def slotNullEvent(self, s):
   self.p.s = self.p.os = s # set socket must be the first command
   ret = pv.pvPrintf(self.p,self.obj1,'hello'+str(self.I))
   self.I = self.I + 1
   return 0