mwxlib 0.94.4__py3-none-any.whl → 0.94.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/bookshelf.py +15 -22
- mwx/framework.py +2 -5
- mwx/graphman.py +2 -2
- mwx/nutshell.py +1 -1
- mwx/utilus.py +2 -0
- mwx/wxwit.py +0 -8
- {mwxlib-0.94.4.dist-info → mwxlib-0.94.5.dist-info}/METADATA +1 -1
- {mwxlib-0.94.4.dist-info → mwxlib-0.94.5.dist-info}/RECORD +11 -11
- {mwxlib-0.94.4.dist-info → mwxlib-0.94.5.dist-info}/LICENSE +0 -0
- {mwxlib-0.94.4.dist-info → mwxlib-0.94.5.dist-info}/WHEEL +0 -0
- {mwxlib-0.94.4.dist-info → mwxlib-0.94.5.dist-info}/top_level.txt +0 -0
mwx/bookshelf.py
CHANGED
|
@@ -27,7 +27,7 @@ class EditorTreeCtrl(wx.TreeCtrl, CtrlInterface):
|
|
|
27
27
|
'buffer_deleted' : [ None, self.on_buffer_deleted ],
|
|
28
28
|
'buffer_activated' : [ None, self.on_buffer_selected ],
|
|
29
29
|
'buffer_inactivated' : [ None, ],
|
|
30
|
-
'buffer_caption_reset' : [ None, self.
|
|
30
|
+
'buffer_caption_reset' : [ None, self.on_buffer_filename ],
|
|
31
31
|
'buffer_filename_reset' : [ None, self.on_buffer_filename ],
|
|
32
32
|
},
|
|
33
33
|
}
|
|
@@ -44,7 +44,7 @@ class EditorTreeCtrl(wx.TreeCtrl, CtrlInterface):
|
|
|
44
44
|
|
|
45
45
|
@self.handler.bind('f5 pressed')
|
|
46
46
|
def refresh(v):
|
|
47
|
-
self.
|
|
47
|
+
self.build_tree(clear=0)
|
|
48
48
|
if self.target:
|
|
49
49
|
self.target.current_editor.SetFocus()
|
|
50
50
|
wx.CallAfter(self.SetFocus)
|
|
@@ -73,7 +73,7 @@ class EditorTreeCtrl(wx.TreeCtrl, CtrlInterface):
|
|
|
73
73
|
self.target = target
|
|
74
74
|
for editor in self.target.all_editors:
|
|
75
75
|
editor.handler.append(self.context)
|
|
76
|
-
self.
|
|
76
|
+
self.build_tree()
|
|
77
77
|
|
|
78
78
|
def detach(self):
|
|
79
79
|
if not self.target:
|
|
@@ -81,26 +81,23 @@ class EditorTreeCtrl(wx.TreeCtrl, CtrlInterface):
|
|
|
81
81
|
for editor in self.target.all_editors:
|
|
82
82
|
editor.handler.remove(self.context)
|
|
83
83
|
self.target = None
|
|
84
|
-
self.
|
|
84
|
+
self.build_tree()
|
|
85
85
|
|
|
86
86
|
## --------------------------------
|
|
87
87
|
## TreeList/Ctrl wrapper interface
|
|
88
88
|
## --------------------------------
|
|
89
89
|
|
|
90
|
-
def
|
|
90
|
+
def build_tree(self, clear=True):
|
|
91
91
|
"""Build tree control.
|
|
92
92
|
All items will be cleared if specified.
|
|
93
93
|
"""
|
|
94
|
-
|
|
95
|
-
self.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
self._set_item(self.RootItem, editor.Name, editor.all_buffers)
|
|
102
|
-
finally:
|
|
103
|
-
self.Thaw()
|
|
94
|
+
if clear:
|
|
95
|
+
self.DeleteAllItems()
|
|
96
|
+
self.AddRoot(self.Name)
|
|
97
|
+
if self.target:
|
|
98
|
+
for editor in self.target.all_editors:
|
|
99
|
+
self._set_item(self.RootItem, editor.Name, editor.all_buffers)
|
|
100
|
+
self.Refresh()
|
|
104
101
|
|
|
105
102
|
def _get_item(self, root, key):
|
|
106
103
|
"""Returns the first item [root/key] found.
|
|
@@ -129,11 +126,11 @@ class EditorTreeCtrl(wx.TreeCtrl, CtrlInterface):
|
|
|
129
126
|
## Actions for bookshelf interfaces
|
|
130
127
|
## --------------------------------
|
|
131
128
|
|
|
132
|
-
@postcall
|
|
129
|
+
## @postcall
|
|
133
130
|
def on_buffer_new(self, buf):
|
|
134
|
-
self.
|
|
131
|
+
self.build_tree(clear=0)
|
|
135
132
|
|
|
136
|
-
@postcall
|
|
133
|
+
## @postcall
|
|
137
134
|
def on_buffer_deleted(self, buf):
|
|
138
135
|
self.Delete(buf.__itemId)
|
|
139
136
|
|
|
@@ -141,10 +138,6 @@ class EditorTreeCtrl(wx.TreeCtrl, CtrlInterface):
|
|
|
141
138
|
def on_buffer_selected(self, buf):
|
|
142
139
|
self.SelectItem(buf.__itemId)
|
|
143
140
|
|
|
144
|
-
@postcall
|
|
145
|
-
def on_buffer_caption(self, buf):
|
|
146
|
-
self.SetItemText(buf.__itemId, buf.caption_prefix + buf.name)
|
|
147
|
-
|
|
148
141
|
@postcall
|
|
149
142
|
def on_buffer_filename(self, buf):
|
|
150
143
|
self.SetItemText(buf.__itemId, buf.caption_prefix + buf.name)
|
mwx/framework.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#! python3
|
|
2
2
|
"""mwxlib framework.
|
|
3
3
|
"""
|
|
4
|
-
__version__ = "0.94.
|
|
4
|
+
__version__ = "0.94.5"
|
|
5
5
|
__author__ = "Kazuya O'moto <komoto@jeol.co.jp>"
|
|
6
6
|
|
|
7
7
|
from functools import wraps, partial
|
|
@@ -13,7 +13,6 @@ import builtins
|
|
|
13
13
|
import datetime
|
|
14
14
|
import textwrap
|
|
15
15
|
import time
|
|
16
|
-
import sys
|
|
17
16
|
import os
|
|
18
17
|
import re
|
|
19
18
|
import wx
|
|
@@ -47,8 +46,6 @@ def deb(target=None, loop=True, locals=None, **kwargs):
|
|
|
47
46
|
Note:
|
|
48
47
|
This will execute the startup script $(PYTHONSTARTUP).
|
|
49
48
|
"""
|
|
50
|
-
import wx
|
|
51
|
-
|
|
52
49
|
quote_unqoute = """
|
|
53
50
|
Anything one man can imagine, other man can make real.
|
|
54
51
|
--- Jules Verne (1828--1905)
|
|
@@ -1004,7 +1001,7 @@ class AuiNotebook(aui.AuiNotebook):
|
|
|
1004
1001
|
pane.name = f"pane{j+1}"
|
|
1005
1002
|
self._mgr.LoadPerspective(frames)
|
|
1006
1003
|
self._mgr.Update()
|
|
1007
|
-
except Exception:
|
|
1004
|
+
except Exception as e:
|
|
1008
1005
|
print("- Failed to load perspective:", e)
|
|
1009
1006
|
finally:
|
|
1010
1007
|
self.Parent.Thaw()
|
mwx/graphman.py
CHANGED
|
@@ -413,7 +413,7 @@ class LayerInterface(CtrlInterface):
|
|
|
413
413
|
try:
|
|
414
414
|
if session:
|
|
415
415
|
self.load_session(session)
|
|
416
|
-
except Exception
|
|
416
|
+
except Exception:
|
|
417
417
|
traceback.print_exc()
|
|
418
418
|
print("- Failed to load session of", self)
|
|
419
419
|
|
|
@@ -1154,7 +1154,7 @@ class Frame(mwx.Frame):
|
|
|
1154
1154
|
try:
|
|
1155
1155
|
if session:
|
|
1156
1156
|
plug.load_session(session)
|
|
1157
|
-
except Exception
|
|
1157
|
+
except Exception:
|
|
1158
1158
|
traceback.print_exc()
|
|
1159
1159
|
print("- Failed to load session of", plug)
|
|
1160
1160
|
return None
|
mwx/nutshell.py
CHANGED
|
@@ -1891,10 +1891,10 @@ class EditorBook(AuiNotebook, CtrlInterface):
|
|
|
1891
1891
|
self.Freeze()
|
|
1892
1892
|
buf = Buffer(self, filename, style=wx.BORDER_DEFAULT)
|
|
1893
1893
|
self.set_attributes(buf, **self.defaultBufferStyle)
|
|
1894
|
-
self.handler('buffer_new', buf)
|
|
1895
1894
|
if index is None:
|
|
1896
1895
|
index = self.PageCount
|
|
1897
1896
|
self.InsertPage(index, buf, buf.name)
|
|
1897
|
+
self.handler('buffer_new', buf)
|
|
1898
1898
|
return buf
|
|
1899
1899
|
finally:
|
|
1900
1900
|
self.Thaw()
|
mwx/utilus.py
CHANGED
mwx/wxwit.py
CHANGED
|
@@ -71,14 +71,6 @@ class Inspector(it.InspectionTree, CtrlInterface):
|
|
|
71
71
|
## InspectionTree wrapper interface
|
|
72
72
|
## --------------------------------
|
|
73
73
|
|
|
74
|
-
def BuildTree(self, *args, **kwargs):
|
|
75
|
-
"""(override)"""
|
|
76
|
-
try:
|
|
77
|
-
self.Freeze()
|
|
78
|
-
it.InspectionTree.BuildTree(self, *args, **kwargs)
|
|
79
|
-
finally:
|
|
80
|
-
self.Thaw()
|
|
81
|
-
|
|
82
74
|
def SetObj(self, obj):
|
|
83
75
|
"""Called from tree.toolFrame -> SetObj."""
|
|
84
76
|
if self.target is obj:
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
mwx/__init__.py,sha256=zLsXDgqyC5NsPCjRxjS2huvZ3uDyeOJ1vapotqe2ULM,834
|
|
2
|
-
mwx/bookshelf.py,sha256=
|
|
2
|
+
mwx/bookshelf.py,sha256=UVVIwHaGO4aEHwZ8x5SKjpL-3MmQ1s6kkyuyRZqKWvU,5070
|
|
3
3
|
mwx/controls.py,sha256=1eguX5eofsA6hmS2y7R4hvlFjFikVoZ8v2S1ES7rjEU,47196
|
|
4
|
-
mwx/framework.py,sha256=
|
|
5
|
-
mwx/graphman.py,sha256=
|
|
4
|
+
mwx/framework.py,sha256=Hi16j2sajupXq2_m37VMfxumj6eXwfaGq8Le26IMfFc,75494
|
|
5
|
+
mwx/graphman.py,sha256=kntmZcVxIubUtH7mLiDyDr2rXw_2iEvtV9DkFDYtt8s,69991
|
|
6
6
|
mwx/images.py,sha256=mrnUYH12I3XLVSZcEXlpVltX0XMxufbl2yRvDIQJZqc,49957
|
|
7
7
|
mwx/matplot2.py,sha256=qaF_gvLoLn-TimLbRR59KUavNr1ZpZQdSMqjzJk47rk,32682
|
|
8
8
|
mwx/matplot2g.py,sha256=mDaD367wjq6xsyIDX9ot8jLwYYGayoavWMhqsQVBHac,65442
|
|
9
9
|
mwx/matplot2lg.py,sha256=tg8u7w4DxiJdPN-E197NOmbQpc_1gZkgDHYv_xUhbFA,27224
|
|
10
10
|
mwx/mgplt.py,sha256=ITzxA97yDwr_35BUk5OqnyskSuKVDbpf2AQCKY1jHTI,5671
|
|
11
|
-
mwx/nutshell.py,sha256=
|
|
12
|
-
mwx/utilus.py,sha256=
|
|
11
|
+
mwx/nutshell.py,sha256=VcUDTzqdBdHztVGfkjqEL9DUO6cKaGYvYCAME0Jl0qk,135647
|
|
12
|
+
mwx/utilus.py,sha256=FTJhVFmx6TAE5rvZ_nfxZgyyaW4zMpXEz74v72X6m7Y,37399
|
|
13
13
|
mwx/wxmon.py,sha256=Qk86VbuuW2rR46pqEYLur13G_aloWz5SVv6sib30YY0,12717
|
|
14
14
|
mwx/wxpdb.py,sha256=2z3ZD9Oo1H-ONBHlaprkB9hrTmAI7o03sqO46ppEFE4,19129
|
|
15
15
|
mwx/wxwil.py,sha256=JK1du4i1RVMbDLqN8jLRDSu_JhKEp4mhHVMElzo4yoE,5578
|
|
16
|
-
mwx/wxwit.py,sha256=
|
|
16
|
+
mwx/wxwit.py,sha256=MQxXR6VqqT25K6dTQ1U_42SMq1yJT6y54xrMq-OMOaQ,7334
|
|
17
17
|
mwx/plugins/__init__.py,sha256=jnJ-Sl9XJ_7BFDslD_r7dsbxsOT57q_IaEriV53XIGY,41
|
|
18
18
|
mwx/plugins/ffmpeg_view.py,sha256=vUYNybIJsF1JGkDzjBgDyBQvDh8e1oKHlEMY5Fwc8L4,9399
|
|
19
19
|
mwx/plugins/fft_view.py,sha256=evj2kCe6N10JQczW8IajgLVrUWOihQaHQ2xiBzAsAl4,2675
|
|
@@ -21,8 +21,8 @@ mwx/plugins/frame_listview.py,sha256=T-2xSv_D2bk9fJ64aiSEe1rJRTeqaIpLVAYEUXW5vz8
|
|
|
21
21
|
mwx/plugins/line_profile.py,sha256=WJB5z7F53yg4dII2R36IFZvtkSOGWT669b1HmAAXSnQ,816
|
|
22
22
|
mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
|
|
23
23
|
mwx/py/filling.py,sha256=KaHooM32hrGGgqw75Cbt8lAvACwC6RXadob9LGgNnEc,16806
|
|
24
|
-
mwxlib-0.94.
|
|
25
|
-
mwxlib-0.94.
|
|
26
|
-
mwxlib-0.94.
|
|
27
|
-
mwxlib-0.94.
|
|
28
|
-
mwxlib-0.94.
|
|
24
|
+
mwxlib-0.94.5.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
25
|
+
mwxlib-0.94.5.dist-info/METADATA,sha256=tMDN9Giu-NWqUZx5Pzf0OzlAtx_P6HSMW8EVWd0scMw,1925
|
|
26
|
+
mwxlib-0.94.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
27
|
+
mwxlib-0.94.5.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
28
|
+
mwxlib-0.94.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|