diff src/cagou.py @ 12:30f6586f904b

widget selector: this widget will be the default one and display the different activities a user can do (chat, blog, file sharing, games, etc).
author Goffi <goffi@goffi.org>
date Fri, 08 Jul 2016 20:18:36 +0200
parents 49d30fc15884
children 12a189fbb9ba
line wrap: on
line diff
--- a/src/cagou.py	Fri Jul 08 20:17:52 2016 +0200
+++ b/src/cagou.py	Fri Jul 08 20:18:36 2016 +0200
@@ -33,8 +33,8 @@
 from kivy.app import App
 import xmlui
 from profile_manager import ProfileManager
-from contact_list import ContactList
 from kivy.uix.boxlayout import BoxLayout
+from widget_selector import WidgetSelector
 from cagou_widget import CagouWidget
 import os.path
 
@@ -73,8 +73,8 @@
         self.app.run()
 
     def plugging_profiles(self):
-        contact_list = self.widgets.getOrCreateWidget(ContactList, None, on_new_widget=None)
-        self.app.root.change_widgets([contact_list])
+        widget_selector = WidgetSelector(self)
+        self.app.root.change_widgets([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))