diff src/cagou/core/cagou_main.py @ 78:46d962910801

chat: file upload first draft: - added a icon to upload files - only do a basic upload with list file browser for now - use the new progressFinished and progressError listeners
author Goffi <goffi@goffi.org>
date Thu, 22 Dec 2016 19:03:06 +0100
parents bc170ccca744
children c2a7234d13d2
line wrap: on
line diff
--- a/src/cagou/core/cagou_main.py	Thu Dec 22 18:24:24 2016 +0100
+++ b/src/cagou/core/cagou_main.py	Thu Dec 22 19:03:06 2016 +0100
@@ -170,6 +170,9 @@
         # backend XMLUI (popups, forms, etc)
         xmlui_screen = Screen(name='xmlui')
         self._manager.add_widget(xmlui_screen)
+        # extra (file chooser, audio record, etc)
+        extra_screen = Screen(name='extra')
+        self._manager.add_widget(extra_screen)
         self.add_widget(self._manager)
 
     def changeWidget(self, widget, screen_name="main"):
@@ -553,9 +556,15 @@
         self.app.root.addNotifUI(ui)
 
     def showUI(self, ui):
+        """show a XMLUI"""
         self.app.root.changeWidget(ui, "xmlui")
         self.app.root.show("xmlui")
 
+    def showExtraUI(self, widget):
+        """show any extra widget"""
+        self.app.root.changeWidget(widget, "extra")
+        self.app.root.show("extra")
+
     def closeUI(self):
         self.app.root.show()