mwxlib 1.0.1__py3-none-any.whl → 1.0.3__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/controls.py +3 -3
- mwx/framework.py +1 -1
- mwx/graphman.py +5 -5
- mwx/nutshell.py +7 -3
- {mwxlib-1.0.1.dist-info → mwxlib-1.0.3.dist-info}/METADATA +1 -1
- {mwxlib-1.0.1.dist-info → mwxlib-1.0.3.dist-info}/RECORD +9 -9
- {mwxlib-1.0.1.dist-info → mwxlib-1.0.3.dist-info}/LICENSE +0 -0
- {mwxlib-1.0.1.dist-info → mwxlib-1.0.3.dist-info}/WHEEL +0 -0
- {mwxlib-1.0.1.dist-info → mwxlib-1.0.3.dist-info}/top_level.txt +0 -0
mwx/controls.py
CHANGED
|
@@ -957,7 +957,7 @@ class Icon(wx.Bitmap):
|
|
|
957
957
|
|
|
958
958
|
|
|
959
959
|
class ClassicButton(wx.Button):
|
|
960
|
-
"""
|
|
960
|
+
"""Classic button
|
|
961
961
|
|
|
962
962
|
Args:
|
|
963
963
|
label : button label
|
|
@@ -1035,7 +1035,7 @@ class ToggleButton(wx.ToggleButton):
|
|
|
1035
1035
|
|
|
1036
1036
|
|
|
1037
1037
|
class TextCtrl(wx.Control):
|
|
1038
|
-
"""Text
|
|
1038
|
+
"""Text control
|
|
1039
1039
|
|
|
1040
1040
|
Args:
|
|
1041
1041
|
label : button label
|
|
@@ -1089,7 +1089,7 @@ class TextCtrl(wx.Control):
|
|
|
1089
1089
|
|
|
1090
1090
|
|
|
1091
1091
|
class Choice(wx.Control):
|
|
1092
|
-
"""Editable Choice (ComboBox)
|
|
1092
|
+
"""Editable Choice (ComboBox) control
|
|
1093
1093
|
|
|
1094
1094
|
Args:
|
|
1095
1095
|
label : button label
|
mwx/framework.py
CHANGED
mwx/graphman.py
CHANGED
|
@@ -964,11 +964,6 @@ class Frame(mwx.Frame):
|
|
|
964
964
|
else:
|
|
965
965
|
win.handler('page_closed', win)
|
|
966
966
|
|
|
967
|
-
if pane.dock_direction:
|
|
968
|
-
pane.Dock()
|
|
969
|
-
else:
|
|
970
|
-
pane.Float()
|
|
971
|
-
|
|
972
967
|
## Modify the floating position of the pane when displayed.
|
|
973
968
|
## Note: This is a known bug in wxWidgets 3.17 -- 3.20,
|
|
974
969
|
## and will be fixed in wxPython 4.2.1.
|
|
@@ -1000,6 +995,11 @@ class Frame(mwx.Frame):
|
|
|
1000
995
|
pane.CaptionVisible(False) # no caption bar
|
|
1001
996
|
pane.Gripper(dock not in (0, 5)) # show a grip when docked
|
|
1002
997
|
pane.Dockable(dock)
|
|
998
|
+
|
|
999
|
+
if pane.dock_direction:
|
|
1000
|
+
pane.Dock()
|
|
1001
|
+
else:
|
|
1002
|
+
pane.Float()
|
|
1003
1003
|
|
|
1004
1004
|
def OnPaneClose(self, evt): #<wx.aui.AuiManagerEvent>
|
|
1005
1005
|
pane = evt.GetPane()
|
mwx/nutshell.py
CHANGED
|
@@ -147,10 +147,14 @@ def can_edit(f):
|
|
|
147
147
|
def ask(f, prompt="Enter value", type=str):
|
|
148
148
|
"""Get response from the user using a dialog box."""
|
|
149
149
|
@wraps(f)
|
|
150
|
-
def _f(
|
|
151
|
-
with wx.TextEntryDialog(None, prompt, f.__name__) as dlg:
|
|
150
|
+
def _f(evt, value=''):
|
|
151
|
+
with wx.TextEntryDialog(None, prompt, f.__name__, value) as dlg:
|
|
152
152
|
if dlg.ShowModal() == wx.ID_OK:
|
|
153
|
-
|
|
153
|
+
value = dlg.Value
|
|
154
|
+
try:
|
|
155
|
+
return f(type(value))
|
|
156
|
+
except ValueError:
|
|
157
|
+
return _f(evt, value) # show the prompt again
|
|
154
158
|
return _f
|
|
155
159
|
|
|
156
160
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
mwx/__init__.py,sha256=psabnAMei5VzB2TsB2qBNLrIZMX0LiqjlXCpNGmDejk,668
|
|
2
2
|
mwx/bookshelf.py,sha256=so-xSLq08sMlJBErTxOaDoKUAMa_g1CkIP2pNnff68c,5607
|
|
3
|
-
mwx/controls.py,sha256=
|
|
4
|
-
mwx/framework.py,sha256=
|
|
5
|
-
mwx/graphman.py,sha256=
|
|
3
|
+
mwx/controls.py,sha256=fL_DdAjW9fIRFzlZYP296vo76e7d9cgLp4_fcWariUY,47654
|
|
4
|
+
mwx/framework.py,sha256=PFUIaqPkHe-5ozh0Otg8EM8zcjHPnoijdXvSJekMLRY,75809
|
|
5
|
+
mwx/graphman.py,sha256=mDnhy3jAzZCo8_p6ZcA-NDPMuOyW_R2r_fuxUIAM7D8,69669
|
|
6
6
|
mwx/images.py,sha256=oxCn0P-emiWujSS2gUgU5TUnr5cPjix2jBcjOBDr24I,48701
|
|
7
7
|
mwx/matplot2.py,sha256=zA56jIdRUdzu-wrmPai1PSOjzqV2Erqw2yFKW-jwdA8,32901
|
|
8
8
|
mwx/matplot2g.py,sha256=diwWNxzyy-c8KBDaolHaMqWdFXSYhEumgwXIZ9wAEYk,64467
|
|
9
9
|
mwx/matplot2lg.py,sha256=JRWjWnLJUytbSq6wxs4P0gbVUr3xoLSF6Wwqd5V_pJI,27404
|
|
10
10
|
mwx/mgplt.py,sha256=M5rt-H7Uq1OHnlFvMA4a3945UBvppbR9L_mw8NL_YZ0,5602
|
|
11
|
-
mwx/nutshell.py,sha256=
|
|
11
|
+
mwx/nutshell.py,sha256=6JC855mDnZ8juWDkQ6DqXaiCJB88GJ4wgqH8VqYfSnM,142028
|
|
12
12
|
mwx/utilus.py,sha256=Yyw8L1f-ikhyd7wtFXYtsOswofWxmB4GAmLOZnhUXeU,37388
|
|
13
13
|
mwx/wxmon.py,sha256=yzWqrbY6LzpfRwQeytYUeqFhFuLVm_XEvrVAL_k0HBQ,12756
|
|
14
14
|
mwx/wxpdb.py,sha256=--TQr-_zs9dWPYV2V4s3Zr4abvN14o5wD8anT9frHUg,18875
|
|
@@ -21,8 +21,8 @@ mwx/plugins/frame_listview.py,sha256=gowjQ-ARNonMkDSXkQgPKq4U9YBJ-vQ0jK2krBVOdCs
|
|
|
21
21
|
mwx/plugins/line_profile.py,sha256=zzm6_7lnAnNepLbh07ordp3nRWDFQJtu719ZVjrVf8s,819
|
|
22
22
|
mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
|
|
23
23
|
mwx/py/filling.py,sha256=fumUG1F5M9TL-Dfqni4G85uk7TmvnUunTbdcPDV0vfo,16857
|
|
24
|
-
mwxlib-1.0.
|
|
25
|
-
mwxlib-1.0.
|
|
26
|
-
mwxlib-1.0.
|
|
27
|
-
mwxlib-1.0.
|
|
28
|
-
mwxlib-1.0.
|
|
24
|
+
mwxlib-1.0.3.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
25
|
+
mwxlib-1.0.3.dist-info/METADATA,sha256=LnXTIWenG879NSl5xuUgY8rJMXF8B589tXumD0VUzho,7259
|
|
26
|
+
mwxlib-1.0.3.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
27
|
+
mwxlib-1.0.3.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
28
|
+
mwxlib-1.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|