Author: Paul_R
Date: 2008-06-27 08:58:44 +0200 (Fri, 27 Jun 2008)
New Revision: 1279

Modified:
   software/tuxgi/trunk/tuxgi.py
Log:
* Fix a bug with the flippers movements


Modified: software/tuxgi/trunk/tuxgi.py
===================================================================
--- software/tuxgi/trunk/tuxgi.py       2008-06-26 20:16:02 UTC (rev 1278)
+++ software/tuxgi/trunk/tuxgi.py       2008-06-27 06:58:44 UTC (rev 1279)
@@ -410,25 +410,21 @@
     # On flippers up radiobutton toggled
     #--------------------------------------------------------------------------
     def on_flippers_up_toggled(self, widget, *args):
-        def _funct():
-            global toggled_by_event
-            if toggled_by_event: return
-            if widget.get_active():
-                tux.flippers.up()
+        global toggled_by_event
+        if toggled_by_event: return
+        if widget.get_active():
+            tux.flippers.up()
 
-        thread.start_new_thread(_funct,())
 
     #--------------------------------------------------------------------------
     # On flippers down radiobutton toggled
     #--------------------------------------------------------------------------
     def on_flippers_down_toggled(self, widget, *args):
-        def _funct():
-            global toggled_by_event
-            if toggled_by_event: return
-            if widget.get_active():
-                tux.flippers.down()
+        global toggled_by_event
+        if toggled_by_event: return
+        if widget.get_active():
+            tux.flippers.down()
 
-        thread.start_new_thread(_funct,())
 
     #--------------------------------------------------------------------------
     # On flippers flap button clicked


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to