diff 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
line wrap: on
line diff
--- a/sat_frontends/primitivus/xmlui.py	Sun Jul 14 16:43:04 2019 +0200
+++ b/sat_frontends/primitivus/xmlui.py	Sun Jul 14 20:38:34 2019 +0200
@@ -503,7 +503,7 @@
         if show_type == "popup":
             self.host.showPopUp(self, valign=valign)
         elif show_type == "window":
-            self.host.newWidget(self)
+            self.host.newWidget(self, user_action=self.user_action)
         else:
             assert False
         self.host.redraw()