Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorBenjamin Schwartz <bens@alum.mit.edu>2007-09-20 23:08:08 (GMT)
committer Benjamin Schwartz <bens@alum.mit.edu>2007-09-20 23:08:08 (GMT)
commitf557fa169d967f5becefce729729b08ae970a948 (patch)
tree3bcfc1fd4f59bfc830791c3999db2d3471592838 /activity.py
parent77be49ee5a259e0807613dea2a8637ae89254065 (diff)
Fix race
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/activity.py b/activity.py
index ff59f47..126f201 100644
--- a/activity.py
+++ b/activity.py
@@ -116,10 +116,10 @@ class AcousticMeasureActivity(Activity):
self._joined_cb()
def _button_clicked(self, button):
+ self.button.set_sensitive(False)
thread.start_new_thread(self._do_sockets,())
def _do_sockets(self):
- self.button.set_sensitive(False)
self._logger.debug("initiating socket_test")
dt = arange.measure_dt_seq(self.hellotube, self.initiating, self._change_button_label)
x = dt * arange.speed_of_sound() - arange.OLPC_OFFSET