mwxlib 1.6.4__py3-none-any.whl → 1.6.5__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 +8 -9
- mwx/testsuite.py +2 -16
- {mwxlib-1.6.4.dist-info → mwxlib-1.6.5.dist-info}/METADATA +1 -1
- {mwxlib-1.6.4.dist-info → mwxlib-1.6.5.dist-info}/RECORD +7 -7
- {mwxlib-1.6.4.dist-info → mwxlib-1.6.5.dist-info}/WHEEL +0 -0
- {mwxlib-1.6.4.dist-info → mwxlib-1.6.5.dist-info}/top_level.txt +0 -0
mwx/framework.py
CHANGED
mwx/graphman.py
CHANGED
|
@@ -488,7 +488,7 @@ class Layer(LayerInterface, KnobCtrlPanel):
|
|
|
488
488
|
LayerInterface.__init__(self, parent, session)
|
|
489
489
|
|
|
490
490
|
|
|
491
|
-
def _register__dummy_plug__(cls, module
|
|
491
|
+
def _register__dummy_plug__(cls, module):
|
|
492
492
|
if issubclass(cls, LayerInterface):
|
|
493
493
|
## warn(f"Duplicate iniheritance of LayerInterface by {cls}.")
|
|
494
494
|
module.Plugin = cls
|
|
@@ -501,7 +501,6 @@ def _register__dummy_plug__(cls, module, flag):
|
|
|
501
501
|
Show = LayerInterface.Show
|
|
502
502
|
IsShown = LayerInterface.IsShown
|
|
503
503
|
|
|
504
|
-
_Plugin.reloadable = getattr(cls, "reloadable", flag)
|
|
505
504
|
_Plugin.__module__ = module.__name__
|
|
506
505
|
_Plugin.__qualname__ = cls.__qualname__ + "~"
|
|
507
506
|
_Plugin.__name__ = cls.__name__ + "~"
|
|
@@ -1125,14 +1124,14 @@ class Frame(mwx.Frame):
|
|
|
1125
1124
|
## Register dummy plug; Add module.Plugin <Layer>.
|
|
1126
1125
|
if not hasattr(module, 'Plugin'):
|
|
1127
1126
|
if inspect.isclass(root):
|
|
1128
|
-
|
|
1129
|
-
|
|
1127
|
+
module.__dummy_plug__ = root.__name__
|
|
1128
|
+
root.reloadable = loadable
|
|
1129
|
+
_register__dummy_plug__(root, module)
|
|
1130
1130
|
else:
|
|
1131
|
-
if hasattr(module, '__dummy_plug__'):
|
|
1132
|
-
|
|
1133
|
-
root =
|
|
1134
|
-
_register__dummy_plug__(root, module
|
|
1135
|
-
module.__dummy_plug__ = root
|
|
1131
|
+
if hasattr(module, '__dummy_plug__'):
|
|
1132
|
+
root = getattr(module, module.__dummy_plug__)
|
|
1133
|
+
root.reloadable = loadable
|
|
1134
|
+
_register__dummy_plug__(root, module)
|
|
1136
1135
|
|
|
1137
1136
|
## Note: name (module.__name__) != Plugin.__module__ if module is a package.
|
|
1138
1137
|
try:
|
mwx/testsuite.py
CHANGED
|
@@ -17,7 +17,7 @@ Is equivalent to:
|
|
|
17
17
|
from contextlib import contextmanager
|
|
18
18
|
import wx
|
|
19
19
|
|
|
20
|
-
__all__ = ["testApp", "testFrame"
|
|
20
|
+
__all__ = ["testApp", "testFrame"]
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
@contextmanager
|
|
@@ -31,22 +31,8 @@ def testApp():
|
|
|
31
31
|
|
|
32
32
|
@contextmanager
|
|
33
33
|
def testFrame(**kwargs):
|
|
34
|
-
with testApp()
|
|
34
|
+
with testApp():
|
|
35
35
|
frm = wx.Frame(None, **kwargs)
|
|
36
36
|
yield frm
|
|
37
37
|
frm.Show()
|
|
38
|
-
app.SetTopWindow(frm)
|
|
39
38
|
## wx.Frame.run = staticmethod(testFrame)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def register_plug(cls=None, **kwargs):
|
|
43
|
-
if cls is None:
|
|
44
|
-
return lambda f: register(f, **kwargs)
|
|
45
|
-
|
|
46
|
-
from mwx.graphman import Frame
|
|
47
|
-
with testApp() as app:
|
|
48
|
-
frm = app.GetTopWindow() or Frame(None)
|
|
49
|
-
frm.load_plug(cls, force=1, show=1, **kwargs)
|
|
50
|
-
frm.Show()
|
|
51
|
-
app.SetTopWindow(frm)
|
|
52
|
-
return cls
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
mwx/__init__.py,sha256=pS7ZG8QKRypiFFiaWAq_opBB6I_1viZ0zUMk2TbjzE0,667
|
|
2
2
|
mwx/bookshelf.py,sha256=yW17nMNPXKHM7LLXLpr9DaRhyFHz_OBAZ_DsuEK2QzA,8387
|
|
3
3
|
mwx/controls.py,sha256=B9f_A0ev3SPf75K-LIZCusMLeDGYz1O3cMml7IOrDrM,49870
|
|
4
|
-
mwx/framework.py,sha256=
|
|
5
|
-
mwx/graphman.py,sha256=
|
|
4
|
+
mwx/framework.py,sha256=S07VXuto0GulB48mVJurs5GsEIRPkvmWPE37l1IgeRI,77463
|
|
5
|
+
mwx/graphman.py,sha256=7y2pNi0pOR7MuSFOaINuz4PNRXAuRXyp5ChMaWpQXBU,70042
|
|
6
6
|
mwx/images.py,sha256=Kkfy9QI_hMtwShSjUS4-ZpC_EkVuah_XhpBOR4wAKkM,49792
|
|
7
7
|
mwx/matplot2.py,sha256=cjdN12RENqWFw1v9QyO05XQc6dK3Pn_ltdC3OfmhGfg,32995
|
|
8
8
|
mwx/matplot2g.py,sha256=0gxjl7UKx8QGRI2thpniA7dQu9fpHGG0mvl7Ml2exrc,65474
|
|
9
9
|
mwx/matplot2lg.py,sha256=jE-LYPEVaEapQN8L-eviRyEx4Lw-8GyLGzZotrIZShU,27413
|
|
10
10
|
mwx/mgplt.py,sha256=SVUJ0ls4gC9xulbWxK2qqmDxf0uBCflvwoPkxoF5s3M,5566
|
|
11
11
|
mwx/nutshell.py,sha256=JHFiY-X1pEdFBzSQRXO_loIhJyPuWljWhhGzie3m7TU,147552
|
|
12
|
-
mwx/testsuite.py,sha256=
|
|
12
|
+
mwx/testsuite.py,sha256=pBB7ZNicI_thrg6LmNPgUOgfMWwRoAaYWN1nFy6t6S4,790
|
|
13
13
|
mwx/utilus.py,sha256=JOYBTHoo_GmYykX72PgiPzgD2M-1pcOR8gMBLc2bnck,39016
|
|
14
14
|
mwx/wxmon.py,sha256=aS6lSjDm0PxIhfyBPtg-wIP0v-R3g2K5a3k2mclWSrQ,12798
|
|
15
15
|
mwx/wxpdb.py,sha256=ehRawAnqQberUeDN9j_-drWYQzu23w5UeQyto4nj53g,18812
|
|
@@ -22,7 +22,7 @@ mwx/plugins/frame_listview.py,sha256=yd2NCgspqGfTNhj1wxuW8r1zapIm7vNzVX2iytk8CDM
|
|
|
22
22
|
mwx/plugins/line_profile.py,sha256=zzm6_7lnAnNepLbh07ordp3nRWDFQJtu719ZVjrVf8s,819
|
|
23
23
|
mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
|
|
24
24
|
mwx/py/filling.py,sha256=vWCJoHd_oyXOeXTHtXGY7wfNQeNAZhV3GZu4xlc8GDY,16867
|
|
25
|
-
mwxlib-1.6.
|
|
26
|
-
mwxlib-1.6.
|
|
27
|
-
mwxlib-1.6.
|
|
28
|
-
mwxlib-1.6.
|
|
25
|
+
mwxlib-1.6.5.dist-info/METADATA,sha256=PyFl4mr1WzMpVnXtqD2FKECHGPz8-t48mUwkuwjgsgw,7381
|
|
26
|
+
mwxlib-1.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
mwxlib-1.6.5.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
28
|
+
mwxlib-1.6.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|