Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/viewer.py
diff options
context:
space:
mode:
authorAriel Calzada <ariel@activitycentral.com>2012-01-24 23:52:17 (GMT)
committer Ariel Calzada <ariel@activitycentral.com>2012-01-24 23:52:17 (GMT)
commitc047508f20d602fdf75454e69ae230658f4f0861 (patch)
tree5563711765ba0cde5d90e3903d9e21a71503220d /viewer.py
parent9e3ff0dd128534b9925f4e9d9579c5d98e802ae6 (diff)
Changed view for server and client
Diffstat (limited to 'viewer.py')
-rw-r--r--viewer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/viewer.py b/viewer.py
index 874dfe0..372abc5 100644
--- a/viewer.py
+++ b/viewer.py
@@ -38,6 +38,10 @@ class ViewerProcess():
def getProcessInfo(self):
return self._utilities.getNetworkProcessInfo(self._programName)
+ def startProcess(self, ip):
+ if not self.getStatus():
+ self._args = [ ip ]
+ self._utilities.startProgram(self._programName,self._args)
class ViewerUI():
"""Viewer UI component for Classroom Kit Activity
@@ -148,3 +152,6 @@ class Viewer():
"""Show Viewer status
"""
self._ui.showStatus()
+
+ def startViewer(self, ip):
+ self._process.startViewer(ip)