Commit Graph

4322 Commits

Author SHA1 Message Date
Robin Dunn
fea9c980f8 Remove use of some constants that no longer exist in 4.1 2019-09-12 13:13:34 -07:00
Robin Dunn
3f77541a07 update nanosvg ref 2019-09-12 11:58:56 -07:00
Robin Dunn
9658a8c426 Some fixes for Py2 2019-09-12 11:58:38 -07:00
Robin Dunn
537c5cec6e Merge pull request #1323 from wxWidgets/add-wxsvg
Add support for parsing and rendering SVG files
2019-09-11 23:23:27 -07:00
Robin Dunn
3f07e0d98f Fix overview text 2019-09-11 20:28:30 -07:00
Robin Dunn
b748ae8545 Update wxWidgets ref 2019-09-11 20:24:26 -07:00
Robin Dunn
9e45e484dd Add ability to select some other SVG file to view 2019-09-11 16:37:41 -07:00
Robin Dunn
6206d20bad Various small tweaks and fixes 2019-09-11 12:56:11 -07:00
Robin Dunn
034ae9a775 Merge pull request #1348 from wxWidgets/fix-issue1342
Keep a reference to the data parameter in wxFindReplaceDialog ctor
2019-09-06 13:02:54 -07:00
Robin Dunn
0e817cee59 Merge pull request #1347 from wxWidgets/errcheck-virtual-methods
Check for Python errors upon return from overloaded virtual methods
2019-09-05 19:51:37 -07:00
Robin Dunn
5ab7848288 Keep a reference to the data parameter in wxFindReplaceDialog ctor 2019-09-05 19:49:44 -07:00
Robin Dunn
46ca3dbc70 Merge pull request #1337 from swt2c/time_clock_removed
Replace time.clock (removed in Python 3.8) with time.process_time

(cherry picked from commit 59e70e7c76)
2019-09-05 19:46:41 -07:00
Robin Dunn
7f8a697f7f Merge pull request #1344 from JillHolliday/buttons_patch
Update buttons.py
2019-09-05 19:27:06 -07:00
Robin Dunn
059e1bee65 Check for Python errors upon return from overloaded virtual methods 2019-09-05 18:55:39 -07:00
Robin Dunn
41bb70cb60 Update wxWidgets ref 2019-09-05 18:53:18 -07:00
Robin Dunn
1b03456463 Mention parameter name changes in the radial gradient methods in the MigrationGuide 2019-09-05 18:53:03 -07:00
Robin Dunn
676e588c76 Ensure the context is not None before assigning to it 2019-09-05 10:38:42 -07:00
Robin Dunn
d09910f413 Add changelog item for wx.svg 2019-09-04 18:04:15 -07:00
Robin Dunn
83e2212bf6 Add SVGImage_Render sample 2019-09-04 17:21:37 -07:00
Robin Dunn
5a3f0dd98e Update wxWidgets ref 2019-09-04 15:02:30 -07:00
Robin Dunn
fe91b450cf add a test SVG showing use of a gradient pen 2019-09-04 14:31:01 -07:00
Robin Dunn
4580d2114f docstring tweak 2019-09-04 14:31:01 -07:00
Robin Dunn
5e6a7b49b1 Add SVGImage sample to the demo, and some example SVG files. 2019-09-04 14:31:01 -07:00
Robin Dunn
a2a2b25d33 a bit more cleanup 2019-09-04 14:31:01 -07:00
Robin Dunn
c4f30a1eba Docstring tweaks 2019-09-04 14:31:01 -07:00
Robin Dunn
2cc38c2fe3 fix typo 2019-09-04 14:31:01 -07:00
Robin Dunn
552c6874c9 Docstring updates 2019-09-04 14:31:01 -07:00
Robin Dunn
fa4683d8f7 * Fix scanning extension modules for docstrings
* Support documenting classes that are in a package's __init__ module
2019-09-04 14:31:01 -07:00
Robin Dunn
defa946fce remove experimental automodule 2019-09-04 14:31:01 -07:00
Robin Dunn
d6bda86a0e Some docstring updates, and add wx.svg to the docs to be built 2019-09-04 14:30:51 -07:00
Robin Dunn
43c2b5c96c Add RasterizeToBuffer 2019-09-04 14:30:51 -07:00
Robin Dunn
68d8224a86 Add/update some docstrings 2019-09-04 14:30:51 -07:00
Robin Dunn
7d7c66920d A little cleanup 2019-09-04 14:30:35 -07:00
Robin Dunn
6b5adab03f Handle holding the dc reference differently in GraphicsRenderer.CreateContext methods 2019-09-04 14:30:35 -07:00
Robin Dunn
8efd6385a1 Add --no-allmo option 2019-09-04 14:30:35 -07:00
Robin Dunn
1fc8ba5aaf Remove linearPoints and radialPointRadius. They are not needed anymore,
and easy enough to do from Python if they are ever needed again.
2019-09-04 14:30:35 -07:00
Robin Dunn
8d6729ae52 GDI+ backend now mostly works okay with the gradient matrix 2019-09-04 14:30:35 -07:00
Robin Dunn
65f5485f16 Use a list for renderers without gradient transform support (so far) 2019-09-04 14:30:22 -07:00
Robin Dunn
57b0ff0408 Transforms on the GDI+ gradients don't work (yet?) so translate the points ourselves. It won't look right for anything but simple transforms, but it will at least look a little like what was intended. Maybe. 2019-09-04 14:30:00 -07:00
Robin Dunn
aa6c0a6661 Add simple a method to get the name of the ++ GraphicsRenderer class 2019-09-04 14:30:00 -07:00
Robin Dunn
cb8263bcb4 fix typo in comment 2019-09-04 14:30:00 -07:00
Robin Dunn
0e95ec1348 update cairo-msw to version 1.15.12 2019-09-04 14:30:00 -07:00
Robin Dunn
424b919b2e Use the gradient transforms and normalized coordinants 2019-09-04 14:29:31 -07:00
Robin Dunn
0ddc262ee5 Some tweaks for PenInfo and GraphicsPenInfo wrappers 2019-09-04 14:29:31 -07:00
Robin Dunn
9e78437974 begin support for gradient pens 2019-09-04 14:28:51 -07:00
Robin Dunn
98410a0742 We need to set the start and stop colors on the gradients. That's what
causes it to fill the areas before the start and after the end of the gradient.
2019-09-04 14:28:09 -07:00
Robin Dunn
8d37c9119f Add RasteriseToBitmap 2019-09-04 14:28:09 -07:00
Robin Dunn
cd6715a254 Move RenderToGC to SVGimage 2019-09-04 14:28:09 -07:00
Robin Dunn
1120ca212b A few docstring tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
7633078b23 f-strings not available in 2.7 2019-09-04 14:28:09 -07:00