mwxlib 0.84.7__py3-none-any.whl → 0.84.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mwxlib might be problematic. Click here for more details.
- mwx/framework.py +1 -1
- mwx/graphman.py +14 -8
- {mwxlib-0.84.7.dist-info → mwxlib-0.84.8.dist-info}/METADATA +1 -1
- {mwxlib-0.84.7.dist-info → mwxlib-0.84.8.dist-info}/RECORD +7 -7
- {mwxlib-0.84.7.dist-info → mwxlib-0.84.8.dist-info}/LICENSE +0 -0
- {mwxlib-0.84.7.dist-info → mwxlib-0.84.8.dist-info}/WHEEL +0 -0
- {mwxlib-0.84.7.dist-info → mwxlib-0.84.8.dist-info}/top_level.txt +0 -0
mwx/framework.py
CHANGED
mwx/graphman.py
CHANGED
|
@@ -201,6 +201,7 @@ class LayerInterface(CtrlInterface):
|
|
|
201
201
|
|
|
202
202
|
Note:
|
|
203
203
|
parent <Frame> is not always equal to Parent when floating.
|
|
204
|
+
Parent type can be <Frame>, <AuiFloatingFrame>, or <AuiNotebook>.
|
|
204
205
|
"""
|
|
205
206
|
MENU = "Plugins" # default menu for Plugins
|
|
206
207
|
menukey = property(lambda self: "{}/&{}".format(self.MENU, self.__module__))
|
|
@@ -350,7 +351,7 @@ class LayerInterface(CtrlInterface):
|
|
|
350
351
|
self.Bind(wx.EVT_WINDOW_DESTROY, destroy)
|
|
351
352
|
|
|
352
353
|
def on_show(v):
|
|
353
|
-
if self
|
|
354
|
+
if self.category: # -> notebook
|
|
354
355
|
if v.IsShown():
|
|
355
356
|
self.handler('page_shown', self)
|
|
356
357
|
else:
|
|
@@ -866,8 +867,11 @@ class Frame(mwx.Frame):
|
|
|
866
867
|
win = pane.window # -> Window (plug / notebook / Graph)
|
|
867
868
|
if show:
|
|
868
869
|
if isinstance(win, aui.AuiNotebook):
|
|
869
|
-
win.
|
|
870
|
-
|
|
870
|
+
j = win.GetPageIndex(plug)
|
|
871
|
+
if j != win.Selection:
|
|
872
|
+
win.Selection = j # the focus is moved => [page_shown]
|
|
873
|
+
else:
|
|
874
|
+
plug.handler('page_shown', plug)
|
|
871
875
|
elif not pane.IsShown():
|
|
872
876
|
win.handler('page_shown', win)
|
|
873
877
|
else:
|
|
@@ -1181,13 +1185,14 @@ class Frame(mwx.Frame):
|
|
|
1181
1185
|
.Name(name).Caption(caption)
|
|
1182
1186
|
.FloatingSize(size).MinSize(size).Show(0))
|
|
1183
1187
|
|
|
1184
|
-
##
|
|
1185
|
-
plug.__notebook = nb
|
|
1186
|
-
plug.__Menu_item = None
|
|
1188
|
+
## Set winow.Name for inspection.
|
|
1187
1189
|
plug.Name = name
|
|
1190
|
+
|
|
1188
1191
|
self.update_pane(name, **props)
|
|
1189
1192
|
|
|
1190
1193
|
## Create a menu
|
|
1194
|
+
plug.__Menu_item = None
|
|
1195
|
+
|
|
1191
1196
|
if not hasattr(module, 'ID_'): # give a unique index to the module
|
|
1192
1197
|
global __plug_ID__ # cache ID *not* in [ID_LOWEST(4999):ID_HIGHEST(5999)]
|
|
1193
1198
|
try:
|
|
@@ -1232,12 +1237,13 @@ class Frame(mwx.Frame):
|
|
|
1232
1237
|
self.menubar[menu].remove(plug.__Menu_item)
|
|
1233
1238
|
self.menubar.update(menu)
|
|
1234
1239
|
|
|
1235
|
-
|
|
1236
|
-
|
|
1240
|
+
if isinstance(plug.Parent, aui.AuiNotebook):
|
|
1241
|
+
nb = plug.Parent
|
|
1237
1242
|
j = nb.GetPageIndex(plug)
|
|
1238
1243
|
nb.RemovePage(j) # just remove page
|
|
1239
1244
|
## nb.DeletePage(j) # cf. destroy plug object too
|
|
1240
1245
|
else:
|
|
1246
|
+
nb = None
|
|
1241
1247
|
self._mgr.DetachPane(plug)
|
|
1242
1248
|
self._mgr.Update()
|
|
1243
1249
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
mwx/__init__.py,sha256=bSRdncjfSCKycMFQVnagOi9R2vUCC5snGkjea7jqPgU,2520
|
|
2
2
|
mwx/controls.py,sha256=pD1IjgkwdvD-ebntnAH-6Jo7KY5hDq30Ne6rTE_i9fE,43499
|
|
3
|
-
mwx/framework.py,sha256=
|
|
4
|
-
mwx/graphman.py,sha256=
|
|
3
|
+
mwx/framework.py,sha256=FREzT3tMg6wXLvVmJhRMEuc8KHLH655JT0Zoxtc5a3E,73816
|
|
4
|
+
mwx/graphman.py,sha256=rDOYa3IZVp48hD0bio7fCwIG0-dNWjdZHm1cvfINszY,68561
|
|
5
5
|
mwx/images.py,sha256=9e8X7OpJ6Z3fF3ez17P_qk2D1NMO10-lN8TCtulAqT0,46248
|
|
6
6
|
mwx/matplot2.py,sha256=W_FpY0S33crCAh7N9YTXo-jgYzj8uL9gqXkekfQo7Pk,36017
|
|
7
7
|
mwx/matplot2g.py,sha256=cBuLMnQt3XSKQL9io0XJb_v8Lv0pO9hm0IMjVIERtu4,68253
|
|
@@ -15,8 +15,8 @@ mwx/wxwil.py,sha256=DPXXx4OdEzvHr-_jxz9J29Ozufmb6Vr7rXVkG_LKQd0,5254
|
|
|
15
15
|
mwx/wxwit.py,sha256=UG361QTUheO_hlSIRgkprrGUYh0IzHB8ZqOoJeeMzUs,7424
|
|
16
16
|
mwx/py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
mwx/py/filling.py,sha256=f6KMBcBv7gwrl6qmJYLTL-O0Z47bWNAdTCZtUZIo8vM,16794
|
|
18
|
-
mwxlib-0.84.
|
|
19
|
-
mwxlib-0.84.
|
|
20
|
-
mwxlib-0.84.
|
|
21
|
-
mwxlib-0.84.
|
|
22
|
-
mwxlib-0.84.
|
|
18
|
+
mwxlib-0.84.8.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
19
|
+
mwxlib-0.84.8.dist-info/METADATA,sha256=xZ7328VNHvIs8oA83rx-zd5jDLlh6jTIQfGO6kg3NkI,1893
|
|
20
|
+
mwxlib-0.84.8.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
21
|
+
mwxlib-0.84.8.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
22
|
+
mwxlib-0.84.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|