Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tan <andrew@localhost.localdomain>2012-12-04 02:27:57 (GMT)
committer Andrew Tan <andrew@localhost.localdomain>2012-12-04 02:27:57 (GMT)
commit731630b15e8494955c18e6772254f3c4329bca6a (patch)
treed2b6f4fd51f6a432eda66920a0146f8a3679dc95
parentece268ea925ad4a104b2fef7f503cd0ef736933d (diff)
use game-buttons and fix formattingHEADmaster
-rw-r--r--stopwatch.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/stopwatch.py b/stopwatch.py
index 632beb7..932aa10 100644
--- a/stopwatch.py
+++ b/stopwatch.py
@@ -424,18 +424,18 @@ class GUIView():
marks_model = dobject.AddOnlySet(marks_handler, translator = dobject.float_translator)
self._markers.append(marks_model)
watch_view = OneWatchView(watch_model, name_model, marks_model, timer)
- if i==0:
- gobject.timeout_add(100,self.initfocus,watch_view)
- self._views.append(watch_view)
-
+ if i==0:
+ gobject.timeout_add(100,self.initfocus,watch_view)
+ self._views.append(watch_view)
self.display = gtk.VBox()
for x in self._views:
self.display.pack_start(x.display, expand=True, fill=True)
-
self._pause_lock = threading.Lock()
+
def initfocus(self,watch_view):
- watch_view._got_focus_cb(None, None)
- watch_view._time_label.grab_focus()
+ watch_view._got_focus_cb(None, None)
+ watch_view._time_label.grab_focus()
+
def get_names(self):
return [n.get_value() for n in self._names]