Name | wxutils JSON |
Version |
0.3.4
JSON |
| download |
home_page | None |
Summary | utilities and conveniences for wxPython |
upload_time | 2025-02-23 19:54:33 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | The MIT License
Copyright (c) 2013-2025 Matthew Newville, The University of Chicago
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXP80RESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE qUSE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
wxpython
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
|
coveralls test coverage |
No coveralls.
|
wxutils
=======
wxutils provides wxPython utilities and convenience functions. The wxutils
library is a small collection of functions and classes, and is by no means
comprehensive.
The aim is to simplify code, reduce boiler-plate, make wxPython coding a
bit more python-like, and prevent repeating code across several projects.
The largest share of classes in wxutils are simplified versions of wxPython
widgets with limited but common attributes and patterns. For example::
btn = wxutils.Button(parent, label, action=action, **kws)
binds a callback function (the "action") to a wx.Button, corresponding to::
b = wx.Button(parent, label=label, **kws)
if callable(action):
parent.Bind(wx.EVT_BUTTON, action, b)
Yes, this can be viewed as merely a convenience, and not completely
general. But it is a remarkably common pattern (at least in my code),
replaces 3 lines with 1, and hides the ugliest parts of wxPython.
There are several similar convenience widgets, including Check, Choice, and
SimpleText (a simplified variant of StaticText), MenuItem, Font, HLine,
OkCancel, HyperText.
In addition, there are more complex widgets, such as
* ``FloatCtrl`` a wx.TextCrtl that allows numerical input only. Precision,
upper bound, and lower bound can be set, and a callback can be bound to
the control.
* ``NumericCombo`` wx.ComboBox with a FloatCtrl
* ``EditableListBox`` a list box with a built-in popup menu to arrange order of
the items with "move up/down, to top, to bottom"
* ``YesNo`` a wx.Choice of only 'No' and 'Yes'
* ``GridPanel`` a combined GridBagSizer and Panel that simplifies adding
widgets to a GridBagSizer.
* ``FileOpen``, ``FileSave`` wrappers (supporting wildcards) to FileDialog.
And some other miscellaneous stuff as well. Yeah, it's sort of a motley collection.
Raw data
{
"_id": null,
"home_page": null,
"name": "wxutils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "wxPython",
"author": null,
"author_email": "Matthew Newville <matt.newville@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/2c/01/fbd6ee25f5ebef5161ba4d26604191c04b250dc9882db18aeb64e8f169ba/wxutils-0.3.4.tar.gz",
"platform": null,
"description": "wxutils\n=======\n\nwxutils provides wxPython utilities and convenience functions. The wxutils\nlibrary is a small collection of functions and classes, and is by no means\ncomprehensive.\n\nThe aim is to simplify code, reduce boiler-plate, make wxPython coding a\nbit more python-like, and prevent repeating code across several projects.\n\nThe largest share of classes in wxutils are simplified versions of wxPython\nwidgets with limited but common attributes and patterns. For example::\n\n btn = wxutils.Button(parent, label, action=action, **kws)\n\nbinds a callback function (the \"action\") to a wx.Button, corresponding to::\n\n b = wx.Button(parent, label=label, **kws)\n if callable(action):\n parent.Bind(wx.EVT_BUTTON, action, b)\n\nYes, this can be viewed as merely a convenience, and not completely\ngeneral. But it is a remarkably common pattern (at least in my code),\nreplaces 3 lines with 1, and hides the ugliest parts of wxPython.\n\nThere are several similar convenience widgets, including Check, Choice, and\nSimpleText (a simplified variant of StaticText), MenuItem, Font, HLine,\nOkCancel, HyperText.\n\nIn addition, there are more complex widgets, such as\n\n* ``FloatCtrl`` a wx.TextCrtl that allows numerical input only. Precision,\n upper bound, and lower bound can be set, and a callback can be bound to\n the control.\n\n* ``NumericCombo`` wx.ComboBox with a FloatCtrl\n\n* ``EditableListBox`` a list box with a built-in popup menu to arrange order of\n the items with \"move up/down, to top, to bottom\"\n\n* ``YesNo`` a wx.Choice of only 'No' and 'Yes'\n\n* ``GridPanel`` a combined GridBagSizer and Panel that simplifies adding\n widgets to a GridBagSizer.\n\n* ``FileOpen``, ``FileSave`` wrappers (supporting wildcards) to FileDialog.\n\nAnd some other miscellaneous stuff as well. Yeah, it's sort of a motley collection.\n",
"bugtrack_url": null,
"license": "The MIT License\n \n Copyright (c) 2013-2025 Matthew Newville, The University of Chicago\n \n Permission is hereby granted, free of charge, to any person obtaining a copy of\n this software and associated documentation files (the \"Software\"), to deal in\n the Software without restriction, including without limitation the rights to\n use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n of the Software, and to permit persons to whom the Software is furnished to do\n so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXP80RESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE qUSE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "utilities and conveniences for wxPython",
"version": "0.3.4",
"project_urls": {
"Documentation": "https://github.com/newville/wxutils",
"Homepage": "https://github.com/newville/wxutils",
"Tracker": "https://github.com/newville/wxutils/issues"
},
"split_keywords": [
"wxpython"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "52bf2991c37fb738bc170109a8bf5428aec2bb135934950715656a7affa0c83f",
"md5": "55ea81b9b7cfac04136dd6eb672a1172",
"sha256": "b7534e8039be1228bb18e0d0986b3dbfcadd2f6a3de159c3ddec6517b15fd084"
},
"downloads": -1,
"filename": "wxutils-0.3.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "55ea81b9b7cfac04136dd6eb672a1172",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 63250,
"upload_time": "2025-02-23T19:54:32",
"upload_time_iso_8601": "2025-02-23T19:54:32.206892Z",
"url": "https://files.pythonhosted.org/packages/52/bf/2991c37fb738bc170109a8bf5428aec2bb135934950715656a7affa0c83f/wxutils-0.3.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2c01fbd6ee25f5ebef5161ba4d26604191c04b250dc9882db18aeb64e8f169ba",
"md5": "828b1bb8dcbcdcdbc1f49cf184802df1",
"sha256": "845665a38201a2c8ee19cc57ccea76c1b2393d8f1e24342c5981cf1e3ab55d78"
},
"downloads": -1,
"filename": "wxutils-0.3.4.tar.gz",
"has_sig": false,
"md5_digest": "828b1bb8dcbcdcdbc1f49cf184802df1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 64198,
"upload_time": "2025-02-23T19:54:33",
"upload_time_iso_8601": "2025-02-23T19:54:33.806238Z",
"url": "https://files.pythonhosted.org/packages/2c/01/fbd6ee25f5ebef5161ba4d26604191c04b250dc9882db18aeb64e8f169ba/wxutils-0.3.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-23 19:54:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "newville",
"github_project": "wxutils",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "wxutils"
}