mwxlib 1.6.3__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 +23 -21
- mwx/nutshell.py +1 -1
- {mwxlib-1.6.3.dist-info → mwxlib-1.6.5.dist-info}/METADATA +1 -1
- {mwxlib-1.6.3.dist-info → mwxlib-1.6.5.dist-info}/RECORD +7 -7
- {mwxlib-1.6.3.dist-info → mwxlib-1.6.5.dist-info}/WHEEL +0 -0
- {mwxlib-1.6.3.dist-info → mwxlib-1.6.5.dist-info}/top_level.txt +0 -0
mwx/framework.py
CHANGED
mwx/graphman.py
CHANGED
|
@@ -494,12 +494,15 @@ def _register__dummy_plug__(cls, module):
|
|
|
494
494
|
module.Plugin = cls
|
|
495
495
|
return cls
|
|
496
496
|
|
|
497
|
-
class _Plugin(
|
|
497
|
+
class _Plugin(cls, LayerInterface):
|
|
498
498
|
def __init__(self, parent, session=None, **kwargs):
|
|
499
499
|
cls.__init__(self, parent, **kwargs)
|
|
500
500
|
LayerInterface.__init__(self, parent, session)
|
|
501
|
+
Show = LayerInterface.Show
|
|
502
|
+
IsShown = LayerInterface.IsShown
|
|
501
503
|
|
|
502
504
|
_Plugin.__module__ = module.__name__
|
|
505
|
+
_Plugin.__qualname__ = cls.__qualname__ + "~"
|
|
503
506
|
_Plugin.__name__ = cls.__name__ + "~"
|
|
504
507
|
_Plugin.__doc__ = cls.__doc__
|
|
505
508
|
module.Plugin = _Plugin
|
|
@@ -1105,31 +1108,30 @@ class Frame(mwx.Frame):
|
|
|
1105
1108
|
|
|
1106
1109
|
## Load or reload the module, and check whether it contains a class named `Plugin`.
|
|
1107
1110
|
try:
|
|
1108
|
-
|
|
1111
|
+
loadable = (not name.startswith("__main__")) # Check if the module is loadable.
|
|
1112
|
+
if not loadable:
|
|
1113
|
+
module = types.ModuleType(name) # dummy module (cannot reload)
|
|
1114
|
+
module.__file__ = "<scratch>"
|
|
1115
|
+
## sys.modules[name] = module
|
|
1116
|
+
elif name in sys.modules:
|
|
1109
1117
|
module = reload(sys.modules[name])
|
|
1110
1118
|
else:
|
|
1111
1119
|
module = import_module(name)
|
|
1112
1120
|
except Exception:
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
traceback.print_exc() # Unable to load the module.
|
|
1116
|
-
return False
|
|
1117
|
-
else:
|
|
1118
|
-
module = types.ModuleType(name) # dummy module (cannot reload)
|
|
1119
|
-
module.__file__ = "<scratch>"
|
|
1120
|
-
## sys.modules[name] = module
|
|
1121
|
-
|
|
1122
|
-
## Register dummy plug; Add module.Plugin <Layer>.
|
|
1123
|
-
if not hasattr(module, 'Plugin'):
|
|
1124
|
-
if inspect.isclass(root):
|
|
1125
|
-
_register__dummy_plug__(root, module)
|
|
1126
|
-
module.__dummy_plug__ = root
|
|
1121
|
+
traceback.print_exc() # Unable to load the module.
|
|
1122
|
+
return False
|
|
1127
1123
|
else:
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1124
|
+
## Register dummy plug; Add module.Plugin <Layer>.
|
|
1125
|
+
if not hasattr(module, 'Plugin'):
|
|
1126
|
+
if inspect.isclass(root):
|
|
1127
|
+
module.__dummy_plug__ = root.__name__
|
|
1128
|
+
root.reloadable = loadable
|
|
1129
|
+
_register__dummy_plug__(root, module)
|
|
1130
|
+
else:
|
|
1131
|
+
if hasattr(module, '__dummy_plug__'):
|
|
1132
|
+
root = getattr(module, module.__dummy_plug__)
|
|
1133
|
+
root.reloadable = loadable
|
|
1134
|
+
_register__dummy_plug__(root, module)
|
|
1133
1135
|
|
|
1134
1136
|
## Note: name (module.__name__) != Plugin.__module__ if module is a package.
|
|
1135
1137
|
try:
|
mwx/nutshell.py
CHANGED
|
@@ -485,8 +485,8 @@ class EditorInterface(AutoCompInterfaceMixin, CtrlInterface):
|
|
|
485
485
|
This class is mixed-in ``wx.stc.StyledTextCtrl``.
|
|
486
486
|
"""
|
|
487
487
|
def __init__(self):
|
|
488
|
-
CtrlInterface.__init__(self)
|
|
489
488
|
AutoCompInterfaceMixin.__init__(self)
|
|
489
|
+
CtrlInterface.__init__(self)
|
|
490
490
|
|
|
491
491
|
def dispatch(evt):
|
|
492
492
|
"""Fork events to the parent."""
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
mwx/nutshell.py,sha256=
|
|
11
|
+
mwx/nutshell.py,sha256=JHFiY-X1pEdFBzSQRXO_loIhJyPuWljWhhGzie3m7TU,147552
|
|
12
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
|
|
@@ -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
|