Mercurial > libervia-desktop-kivy
comparison cagou/core/cagou_main.py @ 249:5d69e4cab925
core: when switching to a new widget, it becomes the selected one.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2019 20:24:48 +0100 |
parents | b6e33b35538b |
children | ff1efdeff53f |
comparison
equal
deleted
inserted
replaced
248:b6e33b35538b | 249:5d69e4cab925 |
---|---|
684 | 684 |
685 if wrapper is None: | 685 if wrapper is None: |
686 raise exceptions.InternalError(u"no wrapper found") | 686 raise exceptions.InternalError(u"no wrapper found") |
687 | 687 |
688 wrapper.changeWidget(new) | 688 wrapper.changeWidget(new) |
689 self.selected_widget = new | |
689 | 690 |
690 def _addVisibleWidget(self, widget): | 691 def _addVisibleWidget(self, widget): |
691 """declare a widget visible | 692 """declare a widget visible |
692 | 693 |
693 for internal use only! | 694 for internal use only! |