Skip to content

Commit

Permalink
status - remove if __name__ method
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtJacobson committed Feb 17, 2019
1 parent 0a77161 commit a315554
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions qtpyvcp/plugins/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,23 +582,3 @@ def _update(self):
self.channels[item[0]].setValue(item[1])

self.sstat.update(sstat)


if __name__ == "__main__":
from qtpy.QtWidgets import QApplication
app = QApplication([])

s = Status()

def onInterpStateChanged(*args, **kwargs):
print 'Interp State:', s.interp_state

def onTaskStateChanged(*args, **kwargs):
print 'Task State:', s.task_state

s.interp_state.notify(onInterpStateChanged)
s.task_state.notify(onTaskStateChanged)

s.initialise()

app.exec_()

0 comments on commit a315554

Please # to comment.