equal
deleted
inserted
replaced
430 self.plcobj.UnLoadPLC() |
430 self.plcobj.UnLoadPLC() |
431 self._stop() |
431 self._stop() |
432 |
432 |
433 def Start(self): |
433 def Start(self): |
434 self.plcobj = PLCObject(self.workdir, self.daemon, self.argv, |
434 self.plcobj = PLCObject(self.workdir, self.daemon, self.argv, |
435 self.statuschange, self.evaluator, |
435 self.statuschange, self.evaluator, |
436 self.pyruntimevars) |
436 self.pyruntimevars) |
|
437 |
437 uri = self.daemon.connect(self.plcobj, "PLCObject") |
438 uri = self.daemon.connect(self.plcobj, "PLCObject") |
438 |
439 |
439 print(_("Pyro port :"), self.port) |
440 print(_("Pyro port :"), self.port) |
440 print(_("Pyro object's uri :"), uri) |
441 print(_("Pyro object's uri :"), uri) |
441 |
442 |
489 |
490 |
490 pyruntimevars = {} |
491 pyruntimevars = {} |
491 statuschange = [] |
492 statuschange = [] |
492 |
493 |
493 if havetwisted: |
494 if havetwisted: |
494 |
|
495 if havewx: |
495 if havewx: |
496 reactor.registerWxApp(app) |
496 reactor.registerWxApp(app) |
497 |
497 |
498 if havewx: |
498 if havewx: |
499 wx_eval_lock = Semaphore(0) |
499 wx_eval_lock = Semaphore(0) |