Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <dirakx@gmail.com>2013-03-08 02:54:09 (GMT)
committer Rafael Ortiz <dirakx@gmail.com>2013-03-08 02:54:09 (GMT)
commit7a72c8da7bddaee9429f9e0c99b0d3174eca994d (patch)
tree86ee0a92822289cf2ffd91397f925632d40e80e2
parent9726a8bcd7677fcd5063726940290969fe3cb9f6 (diff)
port to gtk3 of merge request 3 on gitorious
Stopwatch #1 is focused on starting activity, game keys can be used by andrewtsoc
-rw-r--r--stopwatch.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/stopwatch.py b/stopwatch.py
index 325d6d6..22bc928 100644
--- a/stopwatch.py
+++ b/stopwatch.py
@@ -1,4 +1,4 @@
-# Copyright 2007 Benjamin M. Schwartz
+:# Copyright 2007 Benjamin M. Schwartz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -425,6 +425,10 @@ 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)
self.display = Gtk.VBox()
@@ -433,6 +437,10 @@ class GUIView():
self._pause_lock = threading.Lock()
+ def initfocus(self,watch_view):
+ 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]