Mercurial > libervia-desktop-kivy
comparison cagou/core/profile_manager.py @ 305:b2727877bad4
remote: fixed workflow and size for XMLUI panel used with Ad-Hoc commands:
the XMLUI panel was added to the StackLayout used for discovery, resulting in a bad
sizing. This patch fixes this by moving discovery panel to a new widget, and adding a main
BoxLayout where the XMLUI panel are added.
The XMLUI close callback is now handled properly.
fix 325
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jul 2019 17:13:05 +0200 |
parents | ca4daced4638 |
children | 772c170b47a9 |
comparison
equal
deleted
inserted
replaced
304:00e2bcf0d9df | 305:b2727877bad4 |
---|---|
140 self.screen_manager.add_widget(self.new_profile_screen) | 140 self.screen_manager.add_widget(self.new_profile_screen) |
141 self.screen_manager.add_widget(self.delete_profiles_screen) | 141 self.screen_manager.add_widget(self.delete_profiles_screen) |
142 self.add_widget(self.screen_manager) | 142 self.add_widget(self.screen_manager) |
143 self.bind(selected=self.onProfileSelect) | 143 self.bind(selected=self.onProfileSelect) |
144 | 144 |
145 def closeUI(self, xmlui): | 145 def closeUI(self, xmlui, reason=None): |
146 self.screen_manager.transition.direction = 'right' | 146 self.screen_manager.transition.direction = 'right' |
147 self.screen_manager.current = 'profiles' | 147 self.screen_manager.current = 'profiles' |
148 | 148 |
149 def showUI(self, xmlui): | 149 def showUI(self, xmlui): |
150 xmlui.setCloseCb(self.closeUI) | 150 xmlui.setCloseCb(self.closeUI) |