diff src/cagou.py @ 13:12a189fbb9ba

widget handler first draft: This widget handle other widgets location and size. It is currently loosely inspired from Blender's UI, and the implementation is currenlty naïve. It should be updated in the future to have a behaviour more close to Blender one.
author Goffi <goffi@goffi.org>
date Fri, 08 Jul 2016 20:18:43 +0200
parents 30f6586f904b
children 21a432afd06d
line wrap: on
line diff
--- a/src/cagou.py	Fri Jul 08 20:18:36 2016 +0200
+++ b/src/cagou.py	Fri Jul 08 20:18:43 2016 +0200
@@ -33,6 +33,7 @@
 from kivy.app import App
 import xmlui
 from profile_manager import ProfileManager
+from widgets_handler import WidgetsHandler
 from kivy.uix.boxlayout import BoxLayout
 from widget_selector import WidgetSelector
 from cagou_widget import CagouWidget
@@ -74,7 +75,7 @@
 
     def plugging_profiles(self):
         widget_selector = WidgetSelector(self)
-        self.app.root.change_widgets([widget_selector])
+        self.app.root.change_widgets([WidgetsHandler(self, widget_selector)])
 
     def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE):
         log.info(u"Profile presence status set to {show}/{status}".format(show=show, status=status))