Mercurial > libervia-backend
comparison sat_frontends/primitivus/xmlui.py @ 3004:d86cddc1cd05
primitivus: select the widget even if an other one is selected when the selection comes from an user action:
new `user_action` arguments has been added to newWidget to specify when the new widget
comes from a direct user action.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 14 Jul 2019 20:38:34 +0200 |
parents | 003b8b4b56a7 |
children | ab2696e34d29 |
comparison
equal
deleted
inserted
replaced
3003:e624550d5c24 | 3004:d86cddc1cd05 |
---|---|
501 | 501 |
502 self._dest = show_type | 502 self._dest = show_type |
503 if show_type == "popup": | 503 if show_type == "popup": |
504 self.host.showPopUp(self, valign=valign) | 504 self.host.showPopUp(self, valign=valign) |
505 elif show_type == "window": | 505 elif show_type == "window": |
506 self.host.newWidget(self) | 506 self.host.newWidget(self, user_action=self.user_action) |
507 else: | 507 else: |
508 assert False | 508 assert False |
509 self.host.redraw() | 509 self.host.redraw() |
510 | 510 |
511 def _xmluiClose(self): | 511 def _xmluiClose(self): |