richardt
a1779b3ad1
Fix arg type error when drawing image in column header
2023-06-13 18:46:13 +01:00
richardt
e5fe26ab1f
Fix floor division so floats are not passed to wx.Rect()
2023-06-11 16:11:30 +01:00
Robin Dunn
d9725119d7
Merge pull request #2039 from swt2c/pygauge_py3.10
...
Fix a bunch of Python 3.10 issues with pure-Python classes and demos
2021-12-13 20:54:44 -08:00
Robin Dunn
272990b131
Merge pull request #1997 from cclauss/codespell
...
Fix typos discovered by codespell
2021-12-13 20:16:39 -08:00
Scott Talbert
173d079681
Fix a bunch of Python 3.10 issues with pure-Python classes and demos
...
In Python 3.10, a change[1] was implemented where extension functions
that take integer arguments will no longer silently accept non-integer
arguments (e.g., floats) that can only be converted to integers with a
loss of precision. This PR fixes most of these issues in the pure-Python
classes and demos by explicitly converting the parameters to int before
passing them to wxWidgets. There is loss of precision, but this was
happening before (automatically) anyway as most wxWidgets DeviceContext
functions operate using integers.
Additionally, the PR fixes a few sizing issues, mostly with SpinCtrls being
too small on GTK3.
This is an example of the relevant exception:
Traceback (most recent call last):
File "/usr/lib64/python3.10/site-packages/wx/lib/agw/pygauge.py", line 355, in OnPaint
r.width = w
TypeError: 'float' object cannot be interpreted as an integer
Fixes #2038 .
[1] https://bugs.python.org/issue37999
2021-12-01 14:19:00 -05:00
Glen Whitney
3eb9eb32dc
fix: Correct types of arguments to ScrolledWindow.SetScrollbars
2021-08-31 11:06:27 -07:00
Christian Clauss
25ba122168
Fix typos discovered by codespell
2021-08-07 18:55:49 +02:00
Robin Dunn
732ff6752b
Revert "Spelling fixes in wx.lib"
...
This reverts commit c00b8950da .
The spelling changes were a bit too aggressive.
2020-08-31 13:01:31 -07:00
Metallicow
542a32c17d
Optimize Colour Brush Pen
...
Use builtin Colours, Brushes, Pens where needed. They are faster.
2020-07-19 23:48:39 -05:00
Robin Dunn
c00b8950da
Spelling fixes in wx.lib
2020-07-14 12:53:31 -07:00
Robin Dunn
00d03bb10f
Merge branch 'ulc_add_orientation_to_GetSrollPos' of https://github.com/topic2k/Phoenix into topic2k-ulc_add_orientation_to_GetSrollPos
2020-05-20 14:09:49 -07:00
Robin Dunn
9976b64d44
Merge pull request #1631 from topic2k/ulc_get_checked_item_count
...
[ULC] add method GetCheckedItemCount
2020-05-20 14:08:39 -07:00
Robin Dunn
d1acfb6593
Merge branch 'ulc_add_col-idx_to_event' of https://github.com/topic2k/Phoenix into topic2k-ulc_add_col-idx_to_event
2020-05-20 14:03:36 -07:00
Robin Dunn
21969cc1b2
Merge pull request #1629 from topic2k/ulc_fix_GetLineLabelRect
...
[ULC] fix calculation of line width
2020-05-20 13:51:20 -07:00
topic2k
d690edb3af
add method GetCheckedItemCount
...
Added a method to get the number of checked items.
2020-05-17 14:53:05 +02:00
topic2k
659a9b01ca
add orientation parameter to GetScrollPos
2020-05-02 12:55:14 +02:00
topic2k
25c9a6bc78
add parameter column index to SendNotify
...
Added a column parameter to SendNotify and set it to the column index in an UltimateListEvent where applicable.
2020-05-02 12:18:26 +02:00
topic2k
95039b7059
new agwFlag ULC_NO_ITEM_DRAG
...
Disable item dragging
2020-05-01 11:53:27 +02:00
topic2k
7dfccd5b37
fix calculation of line width
...
If one or more columns are hidden, HitTest would falsely report a hit when clicked right beside the last visible column within the range of the hidden column(s).
2020-05-01 11:28:19 +02:00
Per A. Brodtkorb
fc1823315b
Fixes issue # 1554:
...
Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
2020-03-23 11:53:36 +01:00
Robin Dunn
fea9c980f8
Remove use of some constants that no longer exist in 4.1
2019-09-12 13:13:34 -07:00
Jenyay
fb7df41ea5
Fix example of using UltimateListCtrl in docstring
2018-09-26 10:19:58 +03:00
Jenyay
3d8800ef1b
Fix HyperText width and mouse events
...
Fix #1014
2018-09-24 20:50:31 +03:00
Jenyay
2124261e4c
Fix extention when click to HyperText in UltimateListCtrl
...
Fix #1012
2018-09-23 19:11:13 +03:00
Jenyay
625bd22ad5
Fix #1010
...
Fix cells drawing after HyperText
2018-09-21 23:35:03 +03:00
infinity77
c190473cf4
UltimateListCtrl: add an "Index" property to UltimateListEvent so the demo does not complain anymore. Maybe should add somemore properties for the other getters/setters too... Fixes #592
2017-11-15 16:38:58 +01:00
Robin Dunn
5544bbfee8
Use integer division to find the item number.
2017-09-12 16:48:40 -07:00
Bob White
7b41a3e58f
Using functools.cmp_to_key for old style sorts.
2017-09-07 12:15:38 -05:00
Bob White
251f9d7d5a
Fix for list.sort requiring keywords in python3.5
...
Python3.5 changed the parameters in list.sort to be keyword only
arguments.
This fixes all the instances I could find.
2017-09-07 09:35:33 -05:00
Ernst, Michael
9ba0b9d372
Fix UltimateListCtrl FONTWEIGHT
...
NORMAL in Font Call should have been FONTWEIGHT, not FONTSYLE preventing UltimatListCtrl from working
2016-10-18 08:23:50 +02:00
Metallicow
1733ca9a6e
ultimatelistctrl PENSTYLE_ BRUSHSTYLE fixes
2016-10-04 14:49:11 -05:00
Scott Talbert
6d45c406c3
Fix UltimateListCtrl traceback
...
Replace ULC's hand-implemented Clone() with an actual Clone() call.
Fixes #59 .
2016-08-21 15:25:04 -04:00
Robin Dunn
ffcc23cb60
Change "~lib" --> "~wx.lib" in agw
2016-08-12 14:57:10 -07:00
Robin Dunn
1d1fc7c187
More docstring ref fixes in wx.lib
2016-07-07 09:58:04 -07:00
Robin Dunn
cc3190e240
Lots more docstring refs fixed
2016-07-06 20:20:10 -07:00
Robin Dunn
488f29b05a
Fix docstring references to wx.Bitmap
2016-07-06 18:45:16 -07:00
Robin Dunn
4175d35105
Fix docstring references to wx.Colour
2016-07-06 18:40:04 -07:00
Robin Dunn
ed4756b902
Remove wx.lib.six and use the stock six module instead,
...
and add it as an installation dependency.
2016-06-30 20:07:57 -07:00
topic2k
4d02296e6a
Send COL_CHECKED event after checking/toggling childs.
...
If in an event handler for EVT_LIST_COL_CHECKED the checked items are counted the result would be wrong.
2015-03-28 19:50:07 +01:00
Robin Dunn
90ee034d74
PR #76 : a few wx.lib things for Py33
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-04-19 21:26:03 +00:00
Andrea Gavana
5c33e560c8
AGW on Phoenix: more fixes and porting to Phoenix; added unittest for aquabutton.py, flatnotebook.py, gradientbutton.py and infobar.py; minor modifications to wx.lib.masked.maskededit.py and wx.lib.colourutils.py.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-28 22:08:07 +00:00
Andrea Gavana
9f7441bf76
UltimateListCtrl on Phoenix: clear the bitmap background when creating checkboxe and radiobutton images.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-26 19:01:00 +00:00
Robin Dunn
c1fcdf277d
WXK_PRIOR --> WXK_PAGEUP, WXK_NEXT --> WXK_PAGEDOWN, etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-22 08:01:03 +00:00
Andrea Gavana
8225935187
Phoenix: More conversions in AGW to improve compatibility. Fixed wrong Sphinx interlinks in various AGW modules. Tagged wx.lib.scrolledpanel.py and ported to Phoenix, documented and added a unittest. Small change in the Sizer ReST table.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-21 21:08:53 +00:00
Andrea Gavana
1fadbee529
ultimatelistctrl.py: wx.Icon does not have a constructor from a bitmap in Phoenix, use CopyFromBitmap instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 22:03:12 +00:00
Andrea Gavana
01483191b1
AGW in Phoenix (4): Many, many changes to almost all the AGW widgets to be able to run the AGW demos (although heavily modified). Add a unittest for LabelBook and FlatImageBook (which asserts on one test for still unknown reasons). Mention that wx.EmptyImage is now deprecated in the classic_vs_phoenix.txt file. Improved the documentation for many AGW widgets to avoid Sphinx missing links. Minor fixes to fancytext.py to allow it to run.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 21:06:03 +00:00
Andrea Gavana
b3e4757b9c
AGW on Phoenix (1): various fixes to the docstrings (especially the samples include in the documentation).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-18 21:01:42 +00:00
Andrea Gavana
b0bd63b29f
AGW: backport latest AGW improvements and bug fixes from Classic to Phoenix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-27 19:45:04 +00:00
Robin Dunn
247673201b
Copy (branch) wx.lib, wx.py and wx.tools from Classic, and include subpackages branched from 3rdParty
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-13 01:36:07 +00:00