mwxlib 0.99.5__py3-none-any.whl → 0.99.6__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
@@ -1,7 +1,7 @@
1
1
  #! python3
2
2
  """mwxlib framework.
3
3
  """
4
- __version__ = "0.99.5"
4
+ __version__ = "0.99.6"
5
5
  __author__ = "Kazuya O'moto <komoto@jeol.co.jp>"
6
6
 
7
7
  from contextlib import contextmanager
@@ -32,8 +32,8 @@ def deb(target=None, loop=True, locals=None, debrc=None, **kwargs):
32
32
  If None, the target is set to `__main__`.
33
33
  loop : If True, the app and the mainloop will be created.
34
34
  locals : Additional context of the shell
35
- debrc : file name of the session.
36
- If None, the session will not be saved.
35
+ debrc : file name of the session; defaults to None.
36
+ If None, no session will be created or saved.
37
37
 
38
38
  **kwargs: Nautilus ShellFrame arguments
39
39
 
@@ -1023,7 +1023,7 @@ class FileDropLoader(wx.DropTarget):
1023
1023
  def __init__(self, target):
1024
1024
  wx.DropTarget.__init__(self)
1025
1025
 
1026
- self.editor = target
1026
+ self.target = target
1027
1027
  self.textdo = wx.TextDataObject()
1028
1028
  self.filedo = wx.FileDataObject()
1029
1029
  self.DataObject = wx.DataObjectComposite()
@@ -1031,7 +1031,7 @@ class FileDropLoader(wx.DropTarget):
1031
1031
  self.DataObject.Add(self.filedo, True)
1032
1032
 
1033
1033
  def OnData(self, x, y, result):
1034
- editor = self.editor
1034
+ editor = self.target.current_editor
1035
1035
  self.GetData()
1036
1036
  if self.textdo.TextLength > 1:
1037
1037
  f = self.textdo.Text.strip()
@@ -1061,9 +1061,11 @@ class ShellFrame(MiniFrame):
1061
1061
  Args:
1062
1062
  target : target object of the rootshell.
1063
1063
  If None, it will be __main__.
1064
+ session : file name of the session; defaults to None.
1065
+ If None, no session will be created or saved.
1064
1066
  ensureClose : flag for the shell standalone.
1065
1067
  If True, EVT_CLOSE will close the window.
1066
- Otherwise it will be only hidden.
1068
+ Otherwise the window will be only hidden.
1067
1069
  **kwargs : Nautilus arguments
1068
1070
 
1069
1071
  Attributes:
@@ -1159,7 +1161,7 @@ class ShellFrame(MiniFrame):
1159
1161
 
1160
1162
  self.ghost.AddPage(self.Bookshelf, "Bookshelf", bitmap=Icon('book'))
1161
1163
 
1162
- self.ghost.SetDropTarget(FileDropLoader(self.Scratch))
1164
+ self.ghost.SetDropTarget(FileDropLoader(self))
1163
1165
 
1164
1166
  self.watcher = AuiNotebook(self, size=(600,400), name="watcher")
1165
1167
  self.watcher.AddPage(self.ginfo, "globals")
mwx/mgplt.py CHANGED
@@ -129,7 +129,7 @@ class GnuplotFrame(mwx.Frame):
129
129
  mwx.Frame.__init__(self, *args, **kwargs)
130
130
 
131
131
  self.gnuplot = Gnuplot()
132
- self.panel = GnuplotPanel(self)
132
+ self.panel = ControlPanel(self)
133
133
 
134
134
  self.menubar["Edit"] = [
135
135
  (wx.ID_COPY, "&Copy params\tCtrl-c", "Copy params to clipboard",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mwxlib
3
- Version: 0.99.5
3
+ Version: 0.99.6
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
@@ -1,13 +1,13 @@
1
1
  mwx/__init__.py,sha256=U7n9X8JAWdzOavKvVqecHdE4ooiXcCB5DSPCKWxfTnY,653
2
2
  mwx/bookshelf.py,sha256=so-xSLq08sMlJBErTxOaDoKUAMa_g1CkIP2pNnff68c,5607
3
3
  mwx/controls.py,sha256=0UkLeyIsQU0uj--v1NYctx-GzqO36Z5rdeNpCsfIN10,47657
4
- mwx/framework.py,sha256=ROCF9XJ5nQMmwaDJFoOs3r2qsV7hM7bfBkR1MaGQSMg,75465
4
+ mwx/framework.py,sha256=jsOZNCo0Sjea8XWBGSEghENyNTVGVAvZxkDQYi_6BUA,75632
5
5
  mwx/graphman.py,sha256=EZiRUKhPb6V-S1BcgFhsOQoaZvp4yw6F4SF45uUjla4,70266
6
6
  mwx/images.py,sha256=_-Eh3xF7Khu42ivkYp97NXIzSNGbjcidqtWjZQFGtqE,47827
7
7
  mwx/matplot2.py,sha256=xCJ_ZzdDEWmzctpPaOrzTnwXyHINP4nfFHweoTZa6ug,32899
8
8
  mwx/matplot2g.py,sha256=gCXa8X1MEMP7n_mG73h3SkWKuNZOfjVKUTWNRXXK11c,64310
9
9
  mwx/matplot2lg.py,sha256=JRWjWnLJUytbSq6wxs4P0gbVUr3xoLSF6Wwqd5V_pJI,27404
10
- mwx/mgplt.py,sha256=0WJ1RN_Y0a4Y3rz1C_Lx-WhumtOMdb1N49guX9aZZ_o,5602
10
+ mwx/mgplt.py,sha256=M5rt-H7Uq1OHnlFvMA4a3945UBvppbR9L_mw8NL_YZ0,5602
11
11
  mwx/nutshell.py,sha256=etvpwPctuf9KhvIB1WZwTAaljYQ2ciMRfUWzmXW6NUo,142090
12
12
  mwx/utilus.py,sha256=iizdVrbwL1lX7eTfsMmltFz4IfHqTXVM37wwlPQ3A3Y,37346
13
13
  mwx/wxmon.py,sha256=Pq8XXigM_isJd80yiqG18iRVdArJpsePpxfnZOkk-Uw,12573
@@ -21,8 +21,8 @@ mwx/plugins/frame_listview.py,sha256=yEYPCdLHLSMTJwTv6iYAh3Lo4lJvYfp5BxTLP3FhW9Y
21
21
  mwx/plugins/line_profile.py,sha256=--9NIc3x5EfRB3L59JvD7rzENQHyiYfu7wWJo6AuMkA,820
22
22
  mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
23
23
  mwx/py/filling.py,sha256=fumUG1F5M9TL-Dfqni4G85uk7TmvnUunTbdcPDV0vfo,16857
24
- mwxlib-0.99.5.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
25
- mwxlib-0.99.5.dist-info/METADATA,sha256=96mrQkWQoHslFbVsH5M7bEfVkEdsoQ7ke3Dn7kBJPe0,7411
26
- mwxlib-0.99.5.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
27
- mwxlib-0.99.5.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
28
- mwxlib-0.99.5.dist-info/RECORD,,
24
+ mwxlib-0.99.6.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
25
+ mwxlib-0.99.6.dist-info/METADATA,sha256=oJA02gAxSPxjaJwcQ9DEyrxQHoRuR-1kAD7ZSq1JLMs,7411
26
+ mwxlib-0.99.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
27
+ mwxlib-0.99.6.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
28
+ mwxlib-0.99.6.dist-info/RECORD,,