mwxlib 0.84.8__py3-none-any.whl → 0.84.9__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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Author: Kazuya O'moto <komoto@jeol.co.jp>
6
6
  """
7
- __version__ = "0.84.8"
7
+ __version__ = "0.84.9"
8
8
  __author__ = "Kazuya O'moto <komoto@jeol.co.jp>"
9
9
 
10
10
  from functools import wraps, partial
mwx/graphman.py CHANGED
@@ -351,11 +351,10 @@ class LayerInterface(CtrlInterface):
351
351
  self.Bind(wx.EVT_WINDOW_DESTROY, destroy)
352
352
 
353
353
  def on_show(v):
354
- if self.category: # -> notebook
355
- if v.IsShown():
356
- self.handler('page_shown', self)
357
- else:
358
- self.handler('page_hidden', self)
354
+ if v.IsShown():
355
+ self.handler('page_shown', self)
356
+ elif self and isinstance(self.Parent, aui.AuiNotebook):
357
+ self.handler('page_hidden', self) # -> notebook
359
358
  v.Skip()
360
359
  self.Bind(wx.EVT_SHOW, on_show)
361
360
 
@@ -851,8 +850,8 @@ class Frame(mwx.Frame):
851
850
 
852
851
  ## Force Layer windows to show.
853
852
  if interactive:
854
- ## [M-menu] Reload plugin (ret: None if succeeded).
855
- if wx.GetKeyState(wx.WXK_ALT):
853
+ ## [M-S-menu] Reload plugin
854
+ if wx.GetKeyState(wx.WXK_ALT) and wx.GetKeyState(wx.WXK_SHIFT):
856
855
  self.reload_plug(name)
857
856
  pane = self.get_pane(name)
858
857
  show = True
@@ -863,7 +862,7 @@ class Frame(mwx.Frame):
863
862
  pane.Float()
864
863
  show = True
865
864
 
866
- plug = self.get_plug(name) # -> None if pane.window is Graph
865
+ plug = self.get_plug(name) # -> None if pane.window is a Graph
867
866
  win = pane.window # -> Window (plug / notebook / Graph)
868
867
  if show:
869
868
  if isinstance(win, aui.AuiNotebook):
@@ -873,7 +872,8 @@ class Frame(mwx.Frame):
873
872
  else:
874
873
  plug.handler('page_shown', plug)
875
874
  elif not pane.IsShown():
876
- win.handler('page_shown', win)
875
+ if not plug or win.Parent is not self: # otherwise Layer.on_show
876
+ win.handler('page_shown', win)
877
877
  else:
878
878
  if isinstance(win, aui.AuiNotebook):
879
879
  for plug in win.all_pages: # => [page_closed] to all pages
@@ -1270,6 +1270,7 @@ class Frame(mwx.Frame):
1270
1270
  if plug.reloadable:
1271
1271
  session = {}
1272
1272
  try:
1273
+ print("Reloading {}...".format(plug))
1273
1274
  plug.save_session(session)
1274
1275
  except Exception:
1275
1276
  traceback.print_exc()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mwxlib
3
- Version: 0.84.8
3
+ Version: 0.84.9
4
4
  Summary: A wrapper of matplotlib and wxPython (phoenix)
5
5
  Home-page: https://github.com/komoto48g/mwxlib
6
6
  Author: Kazuya O'moto <komoto@jeol.co.jp>
@@ -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=FREzT3tMg6wXLvVmJhRMEuc8KHLH655JT0Zoxtc5a3E,73816
4
- mwx/graphman.py,sha256=rDOYa3IZVp48hD0bio7fCwIG0-dNWjdZHm1cvfINszY,68561
3
+ mwx/framework.py,sha256=axKlqwJG6pi5x6q0-dUtegNtDzBDWqow9QGasGt3vXM,73816
4
+ mwx/graphman.py,sha256=iF1cSVYdQHiu1Wylt1cBGIzbQtZQLSetRN3qw_g6-jA,68716
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.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,,
18
+ mwxlib-0.84.9.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
19
+ mwxlib-0.84.9.dist-info/METADATA,sha256=Nt7X4C4jS8_safBBRGm2ZcZzk3WEo5B9-czJj-3UIfU,1893
20
+ mwxlib-0.84.9.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
21
+ mwxlib-0.84.9.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
22
+ mwxlib-0.84.9.dist-info/RECORD,,