Commit Graph

43 Commits

Author SHA1 Message Date
Scott Talbert
bf2a6554e2 Remove textwrap backport - textwrap added in Python 3.4 2025-02-03 20:27:43 -05:00
Scott Talbert
db2cef94d0 Set missing pyInt on wxImage.Clear
Fixes #2433.
2023-07-06 12:47:27 -04:00
Robin Dunn
6dd5689daa Split and dedent the ConvertToRegion doc so it will be formatted correctly by sphinx 2020-10-15 14:20:55 -07:00
Robin Dunn
c5c28fd811 Add wx.Image.ConvertToRegion allowing to construct a region from an image without needing to make a bitmap first. 2020-10-14 18:17:54 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
229870f9c9 Add a __bool__ for every __nonzero__ that doesn't already have one 2018-10-12 23:58:16 -07:00
Metallicow
c76384d458 Trim trailing whitespace *.py files 2018-01-16 08:47:07 -06:00
Robin Dunn
aed793bb54 ...but it's only needed once. :( 2017-06-29 21:02:17 -07:00
Robin Dunn
9400f7f67c ImageHandler headers need to be included (but just on Windows?) 2017-06-29 20:59:05 -07:00
Samuel Dunn
676b781862 Added remaining Image Handler classes.
Ignore DoCanRead in each to allow construction at runtime.
2017-06-24 02:44:24 -07:00
Samuel Dunn
be9f39af9d Remove blind-tweaking for TIFFHandler 2017-06-23 18:55:33 -07:00
Samuel Dunn
63d29e1176 Add ImageHandler derivations to module
and do some tweaking.
2017-06-23 18:48:52 -07:00
Robin Dunn
875c9677ac Revert auto-propagating the mustHaveAppFlag from classes to their static methods, if any, and explicitly set the flag on only those static methods that need it instead. 2017-03-21 19:21:07 -07:00
Robin Dunn
4e38994944 Update copyright in etg 2017-02-13 16:14:55 -08:00
Robin Dunn
429829f1bb Merge pull request #211 from RobinD42/mustHaveApp
mustHaveApp
2017-02-03 22:06:16 -08:00
Samuel Dunn
8017b65616 ImageHandler no longer needs to be marked abstract 2017-01-31 17:05:04 -08:00
Robin Dunn
5f04f3b082 Add more mustHaveApp flags 2017-01-23 20:41:07 -08:00
Robin Dunn
2c2e00dbe0 Various fixes and (hopefully temporary) workarounds for using the newest version of sip 2017-01-21 18:26:12 -08:00
Metallicow
ebc8d0d971 trim trailing space etg directory 2016-11-10 12:08:36 -06:00
Robin Dunn
488f29b05a Fix docstring references to wx.Bitmap 2016-07-06 18:45:16 -07:00
Robin Dunn
68368c6ad2 Fix some compilation errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 20:20:17 +00:00
Robin Dunn
1d3f61e31c Add some docstrings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 20:19:59 +00:00
Robin Dunn
734f3d6057 Fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-16 03:24:17 +00:00
Robin Dunn
35fd2e16bf Update copyright year
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Andrea Gavana
6157b2bc35 Phoenix: sizers_overview.rst expanded; added a bunch of "contributed" snippets on various classes/methods; many fixes on strange doxygen layouts and XML hierarchies; fixed many cross-references between classes/methods/functions in the etg files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-04 20:58:27 +00:00
Robin Dunn
a4353a763e Update to doxygen 1.8.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-05 05:20:18 +00:00
Robin Dunn
429507f2ad Add a few more compatibility wrappers, and deprecate them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:37 +00:00
Robin Dunn
9d79e123fa Tweak the deprecation warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 05:02:43 +00:00
Robin Dunn
aebd862d14 Provide hints for deprecated items about what should be used instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:17 +00:00
Robin Dunn
787cfb858e Add and use the wxPyThreadBlocker class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-30 03:24:34 +00:00
Robin Dunn
18098181e3 Add buffer related methods and helpers for wxBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 04:05:08 +00:00
Robin Dunn
c2e5a59a8f * Add a new wxPyBuffer class and MappedType to help facilitate checking input and getting the pointer and size of Python Buffer compatible objects.
* Use wxPyBuffer with wx.Image
* Return bytearrays from GetData and GetAlpha
* Return memoryviews from GetDataBuffer and GetAlphaBuffer
* Add some notes about these changes to the migration guide

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 04:04:53 +00:00
Robin Dunn
e8e932aade * Fix image ctors that accept data buffers to check the size of the buffer
* Do the same for the Create, SetData and SetAlpha methods
* Replace the GetData and GetAlpha to return copies of the buffer as in Classic
* Add GetDataBuffer, GetAlphaBuffer, SetDataBuffer, SetAlphaBuffer methods
* Add wxImageHandler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-26 01:29:35 +00:00
Robin Dunn
497e10bd43 Add wrappers for the NameStr globals and a few other tweaks to get the code in core.pi to be valid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-04 05:57:19 +00:00
Robin Dunn
5be76ec3e4 minor tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-17 03:58:12 +00:00
Robin Dunn
5ffc5d8681 Ensure that custom C++ implementations that create a new instance for the return value are marked as Factories.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-21 07:59:10 +00:00
Robin Dunn
640f22a259 Add Classic's enhancements to image and add unittests. Still need to add buffer and stream support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-14 06:40:40 +00:00
Robin Dunn
447048aca9 Ignore the wxIMAGE_OPTION_* defines since they are all strings. Add assignments to a block of pycode instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:58:42 +00:00
Robin Dunn
b3e9e08922 Let the backend know that the "unsigned char" parameters should be treated as integers, not strings. Also set the out flag for output parameters. Still lots more to do here.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-17 19:22:39 +00:00
Robin Dunn
d949d1dad1 * Update version number
* Since they are almost always needed for window classes, move the calls to
  removeVirtuals and addWindowVirtuals into the fixWindowClass and
  fixTopLevelWindowClass functions.

* Add wxWithImages to the interface headers and create wrappers for it and use
  it as a base of wxBoockCtrlBase.

* Add a new wx.deprecated() function that can handle properties and classes in
  addition to callables. It issues a custom warning, wxPyDeprecationWarning
  since the stock DeprecationWarning is filtered out by default in Python 2.7.

* Deprecate PyWindow and similar aliases

* Deprecate wx.Window.SetDimensions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-11 00:33:10 +00:00
Kevin Ollivier
60d9ea15f6 More updates for Phoenix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-09 15:46:56 +00:00
Robin Dunn
4219e02440 * move wxPen to etg/pen.py
* move wxBrush to etg/brush.py
* move wxBookCtrlBase and wxBookCtrlEvent to etg/bookctrl.py
* move wxBitmapButton to etg/bmpbuttn.py
* move wxArrayString MappedType and add wxArrayInt plus some unittests
* add checking for default values for pos and size parameters in fixWindowClass
* set out parameter flags for wxImageHistogram.FindFirstUnusedColour
* Restore layout constraints classes and related methods
* Create a MappedType for wxClientData
* update used of wxClientData in wx.CommandEvent
* Move wxControlWithItems, wxItemContainer and wxControlWithItems to etg/ctrlsub.py
* enable some Append, Insert and Set overloads in wxControlWithItems
* addGetterSetterProps: don't make setter-only properties
* addGetterSetterProps: ensure that the getter can be called with zero args
* addGetterSetterProps: ensure that the setter can be called with just 1 arg
* restore version checking code
* moved DC classes to other etg files to match interface file names.
* allow both overloads for wx.DC.GetTextExtent and GetMultiLineTextExtent by renaming 1
* add wx.DC.GetPartialTextExtents
* and some other stuff

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 01:42:42 +00:00
Kevin Ollivier
49fda7ada4 Add automatic class property generation, add support for defines, remove layout constraints from the build as they appear not to be generated with the docs for me, and add wrappers for a bunch of classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-08-30 15:39:33 +00:00