Author: dmeyer
Date: Fri Jan 18 14:56:45 2008
New Revision: 10296
Log:
replace code using kaa.Thread with kaa.ThreadCallback
Modified:
trunk/ui/src/image/plugins/apod.py
trunk/ui/src/plugins/shoppingcart.py
Modified: trunk/ui/src/image/plugins/apod.py
==============================================================================
--- trunk/ui/src/image/plugins/apod.py (original)
+++ trunk/ui/src/image/plugins/apod.py Fri Jan 18 14:56:45 2008
@@ -105,10 +105,9 @@
box = TextWindow(text=_('Getting picture, please wait'))
box.show()
- thread = kaa.Thread(self._fetch_picture_thread)
- thread.signals['completed'].connect(self._fetch_picture_finished, box)
- thread.signals['exception'].connect(self._fetch_picture_error, box)
- thread.start()
+ async = kaa.ThreadCallback(self._fetch_picture_thread)()
+ async.connect(self._fetch_picture_finished, box)
+ async.exception_handler.connect(self._fetch_picture_error, box)
def _fetch_picture_thread(self):
Modified: trunk/ui/src/plugins/shoppingcart.py
==============================================================================
--- trunk/ui/src/plugins/shoppingcart.py (original)
+++ trunk/ui/src/plugins/shoppingcart.py Fri Jan 18 14:56:45 2008
@@ -64,8 +64,8 @@
"""
Move/Copy items to the given directory.
"""
- kaa.Thread(self.__move_or_copy_thread, self.cart, operation,
- item.filename).start()
+ kaa.ThreadCallback(self.__move_or_copy_thread, self.cart, operation,
+ item.filename)()
self.cart = []
item.get_menustack().delete_submenu()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog