Commit Graph

5733 Commits

Author SHA1 Message Date
Scott Talbert
cf7f7cff0b Merge pull request #2298 from swt2c/python311
Add CI for Python 3.11
2022-11-07 14:55:53 -05:00
Scott Talbert
ba0d8cfcec wscript: Use EXT_SUFFIX when available to fix build on Py 3.11
This is a backport of a an upstream fix in waf's check_python_headers().

See: 8d6cbb3657
2022-11-07 11:49:27 -05:00
Scott Talbert
7b12cafe8a Add CI for Python 3.11 2022-10-25 14:09:58 -04:00
Robin Dunn
3ee614e0e8 Merge pull request #2284 from pchemguy/lib-agw-aui-dockart
Changed float division to integer division in lib-agw-aui-dockart.py
2022-10-18 17:30:56 -07:00
Robin Dunn
0f9dd33cbf Merge pull request #2282 from ncotrb/master
Added EVT_WEBVIEW_SCRIPT_RESULT event binder
2022-10-18 17:29:55 -07:00
Robin Dunn
4f5ee98256 Merge pull request #2279 from pchemguy/demo-AUI_DockingWindowMgr
Fixes method typo in AUI_DockingWindowMgr
2022-10-18 17:28:27 -07:00
Robin Dunn
9b3e4d3431 Merge pull request #2277 from komoto48g/textedit-mixin
listctrl TextEditMixin
2022-10-18 17:27:57 -07:00
Robin Dunn
fae30156df Merge pull request #2276 from pchemguy/demo-treemixin-treelistctrl
Reenabled TreeListCtrl demo in TreeMixin
2022-10-18 17:26:29 -07:00
Robin Dunn
44d941a221 Merge pull request #2274 from CarstenGrohmann/Sphinx_compatibility
Compatibility changes to run with Sphinx 5 also
2022-10-18 17:24:59 -07:00
Robin Dunn
f3f2356f53 Merge pull request #2269 from CarstenGrohmann/fix_pyArgsString_for_HitTestSubItem
Fix arguments in docstring of wx.ListCtrl.HitTestSubItem()
2022-10-18 17:21:56 -07:00
Robin Dunn
b978de2962 Merge pull request #2266 from pchemguy/demo-joystick.py
Added explicit "to int" type casting in dc.DrawXXX calls
2022-10-18 17:20:50 -07:00
Robin Dunn
363fdcde74 Merge pull request #2264 from pchemguy/wxlib-wxcairo-wx_pycairo
Added sip.voidptr->int type casting in wx_pycairo.py
2022-10-18 17:20:18 -07:00
Robin Dunn
1814ca813b Merge pull request #2262 from pchemguy/wxlib-printout-draw-typecasting
Making explicit float->int type casting for DC.DrawXXX
2022-10-18 17:18:54 -07:00
Robin Dunn
6b7885b0c5 Merge pull request #2260 from pchemguy/demo-OwnerDrawnComboBox-fix
Missing required explicit float->int type casting
2022-10-18 17:18:20 -07:00
Robin Dunn
eb5f61de35 Merge pull request #2258 from pchemguy/demo-agw-knobctrl-fix
Missing required explicit float->int type casting
2022-10-18 17:17:32 -07:00
Robin Dunn
b0d77dd211 Merge pull request #2255 from Infernio/inf-pdfviewer-py310
Fix pdfViewer for Python 3.10
2022-10-18 17:17:00 -07:00
Robin Dunn
be6228a9d8 Merge pull request #2293 from wxWidgets/misc-tweaks
Misc tweaks
2022-10-18 14:16:27 -07:00
Robin Dunn
bd346d84e6 Update CHANGES.rst, add header for 4.2.1 2022-10-17 14:35:28 -07:00
Robin Dunn
7f42784255 Fix code snippet in docs for XmlReseource.LoadDialog 2022-10-17 14:33:42 -07:00
Robin Dunn
847659ad2f Add wrapper for wxGenericStaticBitmap 2022-10-17 14:32:43 -07:00
Robin Dunn
a646f1c1a7 Update comment 2022-10-17 14:32:17 -07:00
PChemGuy
0a2c573c91 Changed float division to integer division in lib-agw-aui-dockart.py
wx.DC.DrawXXX expect numeric arguments to be integers.
2022-09-15 15:08:28 +03:00
Nico
380f8337da Added EVT_WEBVIEW_SCRIPT_RESULT event binder
Adds the missing EVT_WEBVIEW_SCRIPT_RESULT event binder for the webview widget.
Please have a look here: https://github.com/wxWidgets/Phoenix/issues/2099#issuecomment-1239722129

This is my very first pull request. I hope that I have done it right =)
2022-09-14 22:38:44 +02:00
PChemGuy
8449df773f Method typo in AUI_DockingWindowMgr 2022-09-11 11:08:28 +03:00
komoto
ef8f887618 Remove TE_RICH2 style
to avoid selection disappearing on a second focus
(of the same format item).
2022-09-11 13:07:58 +09:00
komoto
11f7c42c8d Fix OpenEditor offset to integer 2022-09-11 12:58:15 +09:00
PChemGuy
a2f17dcea8 Reenabled TreeListCtrl demo in TreeMixin
Replaced a TreeListCtrl to wx.gizmos, and updated and uncommented the associated code (also changed AppendColumn to AddColumn).
Note, this code does not work as is with wx.dataview.TreeListCtrl.
2022-09-10 12:41:02 +03:00
Carsten Grohmann
f143e4e17c Use add_js_file() instead of add_javascript()
add_javascript() is deprecated and has been removed in Sphinx 4.
The new add_js_file() function has been available since at least Sphinx
1.8.5.
2022-09-08 22:19:16 +02:00
Carsten Grohmann
f3ac627ca9 Add compatibility code for different locations of Sphinx NoUri
The location of this exception has changed with Sphinx 3.0
according to the "Deprecated API".
2022-09-08 22:19:04 +02:00
Carsten Grohmann
32e80758c7 Fix arguments in docstring of wx.ListCtrl.HitTestSubItem() 2022-09-07 18:08:12 +02:00
PChemGuy
089a2c1245 Added explicit "to int" type casting in dc.DrawXXX calls 2022-09-04 16:08:44 +03:00
PChemGuy
87e7ded2b1 Added sip.voidptr->int type casting in wx_pycairo.py 2022-09-04 15:00:03 +03:00
PChemGuy
5aed416754 Making explicit float->int type casting for DC.DrawXXX
Used DC.DrawXXX functions expect integer coordinates, but this module freely mixes both float and integer values. A quick fix is to add explicit type casting in all DC.DrawXXX calls.

In the long run, either calling modules should control numeric types or DC.DrawXXX methods should handle float type as well.
2022-09-04 11:23:38 +03:00
PChemGuy
3b2c4140cf Missing required explicit float->int type casting
Fixes missing type casting in the OwnerDrawnComboBox.py demo module.
2022-09-04 11:07:47 +03:00
PChemGuy
5368d963f1 Missing required explicit float->int type casting
Fixes missing type casting in the OwnerDrawnComboBox.py demo module.
2022-09-04 08:01:24 +03:00
PChemGuy
83dba91a2b Missing required explicit float->int type casting
"therange" variable, used to adjust range of the KnobCtrl, must be an integer.
2022-09-03 16:31:12 +03:00
Infernio
aa4394773a Fix pdfViewer for Python 3.10
Needs ints instead of floats in these two places. Didn't notice any
others, but there may be more.
2022-09-01 14:57:56 +02:00
Robin Dunn
7c4d21d778 Merge pull request #2247 from CarstenGrohmann/listctrl_format_doc
Fix docstring layout for ColumnSorterMixin.GetSortState()
2022-08-30 18:49:19 -07:00
Robin Dunn
5fced695ca Merge pull request #2233 from StefanBruens/fix_uintptr_overflow_check
Fix overflow check for wxUIntPtr type
2022-08-30 18:47:07 -07:00
Robin Dunn
6afee6af52 Merge pull request #2243 from pchemguy/master
Missing NumPy package reference in FloatCanvas.py
2022-08-30 18:46:06 -07:00
Robin Dunn
d1802fff0c Merge pull request #2252 from newville/master
OSX: remove check of SetFrontProcess() before App is fully initialized
2022-08-30 18:33:52 -07:00
Matthew Newville
a789e49000 OSX: remove check of SetFrontProcess() before App may be fully initialized 2022-08-28 18:07:13 -05:00
Carsten Grohmann
5eef583d7c Fix docstring layout for ColumnSorterMixin.GetSortState() 2022-08-22 20:47:55 +02:00
PChemGuy
af3721f167 Explicit NumPy.float64 to int typecasting in FCObjects.py
I cannot tell whether the original code worked before, but this explicit typecasting is necessary now.
The issue occurs, for example if attempting to execute "PieChart.py" or  "ScaledBitmap2Demo.py" in "samples\floatcanvas". Without typecasting, type errors are thrown, such as "TypeError: Image.Scale(): argument 1 has unexpected type 'numpy.float64'".
Apparently, this problem might be due to recent updates in Python and NumPy.
2022-08-20 21:43:22 +03:00
PChemGuy
8d771a389c py3: use six.moves.range instead of xrange
The xrange module  was removed in Python 3 and we should
use 'six.moves.range' instead of 'xrange' to make
code compatible with py 2 and 3 as well.
2022-08-20 13:58:51 +03:00
PChemGuy
112605f540 Missing NumPy package reference in FloatCanvas.py
Package reference (N) is missing when NumPy type "float_" is used.
2022-08-20 09:27:31 +03:00
Stefan Brüns
88b8565654 Fix overflow check for wxUIntPtr type
long is 32bit on 32-bit archs and on Win64 (see
https://en.cppreference.com/w/cpp/language/types ). As SIP uses
PyLong_AsLongLong internally and uses an extra bounds check only if
explicitly enabled("sip.enableoverflowchecking(True)"), the overflow
only triggers when it also overflows `long long`, i.e. when
_LONG_MAX == _LLONG_MAX.
2022-08-14 01:30:33 +02:00
Scott Talbert
98871b690a Merge pull request #2228 from swt2c/pypubsub_getargspec
pypubsub: Replace deprecated inspect.getargspec
2022-08-10 13:49:39 -04:00
Scott Talbert
6ff8283fda Merge pull request #2224 from swt2c/attrdict_windows_only
Only require attrdict3 on Windows
2022-08-10 13:49:23 -04:00
Scott Talbert
8779e7142a Merge pull request #2230 from swt2c/sip_662
Indicate sip 6.6.2+ is required when building with sip-build
2022-08-10 13:48:51 -04:00