Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-07-27 11:20:04 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-07-27 11:20:04 (GMT)
commita92c4bee3393a4c1e5f70c39e87960c48f9932c5 (patch)
tree5bd7b1c253f2921d89df0dd90b65d54ca127a976
parent6e732b1dae1e506e548f72632cb73c4a27549e78 (diff)
no sharing (for the moment)
-rw-r--r--measure.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/measure.py b/measure.py
index 0b66e65..4208359 100644
--- a/measure.py
+++ b/measure.py
@@ -154,6 +154,9 @@ class MeasureActivity(activity.Activity):
else:
self.audiograb = AudioGrab_Unknown(self.wave.new_buffer, self)
+ # no sharing
+ self.max_participants = 1
+
self.has_toolbarbox = _has_toolbarbox
self.side_toolbar = SideToolbar(self)
@@ -177,6 +180,13 @@ class MeasureActivity(activity.Activity):
activity_button.show()
else:
toolbox = ActivityToolbox(self)
+
+ # no sharing
+ if hasattr(toolbox, 'share'):
+ toolbox.share.hide()
+ elif hasattr(toolbox, 'props'):
+ toolbox.props.visible = False
+
self.set_toolbox(toolbox)
toolbox.connect('current-toolbar-changed',
self._toolbar_changed_cb)
@@ -290,7 +300,6 @@ class MeasureActivity(activity.Activity):
writer2 = csv.writer(open(tmp_file_path, 'ab'))
for datum in self.ji.temp_buffer:
- print datum
writer.writerow( [ datum ] )
writer2.writerow( [ datum ] )