Commit Graph
35 Commits
Author SHA1 Message Date
Robin Dunn 99a001dd43 Changed how the stock objects (wx.RED, wx.RED_PEN, wx.RED_BRUSH, etc.)
are initialized.  They are now created as a wrapper object that
initializes itself on first use (when an attribute of the object is
requested.)  This was needed because of similar delayed initialization
functionality that was implemented in wxWidgets, but the end result is
cleaner for wxPython as well, and allowed me to remove some ugly code
under the covers.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 21:49:48 +00:00
Robin Dunn df5f8f4e3d Add GetHandlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-05 03:59:45 +00:00
Robin Dunn e054c6ad5c Added ConvertToGreyscale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-20 17:23:02 +00:00
Robin Dunn 02b800ce7c Merged modifications from the 2.6 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-30 23:02:03 +00:00
Vadim Zeitlin 978d3d3647 added wxImage::RotateHue() and RGB <-> HSV conversions (patch 1227108)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 22:50:34 +00:00
Robin Dunn e47ce385a7 Lots of docstring fixes and additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-07 06:26:59 +00:00
Robin Dunn 4187c3822d Completed wxImage docstrings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-29 03:36:36 +00:00
Robin Dunn d5a7caf6b6 added some docstrings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-20 21:21:27 +00:00
Robin Dunn 35f9639d83 fixed paste error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 02:29:00 +00:00
Robin Dunn c83e65d583 Disable typemap for wxImage constructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 02:23:01 +00:00
Robin Dunn 69056570da IsTransparent and etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-04 15:28:33 +00:00
Robin Dunn d8194e5dd4 Use Python's buffer interface API for all image data and alpha Set/Get
methods and the ImageFromData* constructors.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 03:43:52 +00:00
Robin Dunn 41c48dbbe1 Added GetCount, GetCountRGB, and GetCountColour methods to
wx.ImageHistogram.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-25 19:54:29 +00:00
Robin Dunn 6e6b35578d Use the PyGILState_* APIs on Python >= 2.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-09 22:28:52 +00:00
Robin Dunn f5bac082ec Add Resize, SetRGBRect, Size, and GetOrFindMaskColour methods to wx.Image
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-05 00:15:45 +00:00
Robin Dunn 9df51bd066 Added more image options
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 18:45:29 +00:00
Robin Dunn 9718534022 minor tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-26 01:13:12 +00:00
Robin Dunn 655e17cf4e Add InitAlpha
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 22:55:35 +00:00
Robin Dunn 1b8c7ba607 Updated to SWIG 1.3.24 (plus a patch that corrects a bug and adds back
some things that were changed/removed from my patch I submitted to
them.)

Since it is now possible easily and simply share the SWIG type tables
across modules I reverted to always using the stock SWIG runtime
instead of my slightly hacked up version of it exported via the
wxPython C API.

The %name directive is now deprecated so replaced most uses of it with
a custom %Rename macro that uses %rename internally.  These will
evetually need to be replaced with a DocDecl macro when docstrings are
added.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-23 20:44:09 +00:00
Robin Dunn c6d428998f Added ImageFromDataWithAlpha ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-07 18:00:17 +00:00
Robin Dunn 6f7ecb3bee Added ConvertColourToAlpha
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 19:57:21 +00:00
Robin Dunn a72f4631fe Update SWIG patch to output "True" ("False") in the autodoc string
when "true" ("false") is in the .i file.

Changed the .i files to use true/false to avoid collisions with any
True/False in headers that may be included.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 20:23:54 +00:00
Robin Dunn debff7aa47 Getthe GIL before raisign an exception
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-18 23:12:24 +00:00
Robin Dunn 12523ae45c Add depth param to ConvertToBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 20:06:16 +00:00
Robin Dunn 125c972b66 ConvertAlphaToMask
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-25 21:16:40 +00:00
Robin Dunn 391014681a fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-02 21:59:10 +00:00
Robin Dunn be43ef045a Added wxQuantize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-02 21:56:06 +00:00
Robin Dunn ab1f7d2aa9 All the Window and GDI (pen, bitmap, etc.) classes and also many
toplevel functions will now check that a wx.App object has already
been created and will raise a wx.PyNoAppError exception if not.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-01 21:38:05 +00:00
Robin Dunn a31507415d wx.InitAllImageHandlers is now an empty function that does nothing but
exist for backwards compatibility.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-17 19:16:17 +00:00
Robin Dunn d07d2bc9d0 Some docstring additions, reformats and epydoc markup.
Removed RefDoc macros, instead made all the normal Docstring macros
take an extra parameter to be used for the optional details postion of
the docstring.  The intent is that the docstrings put in the generated
.py files checked in to CVS and delivered in releases will be only a
paragraph or two, but when used for generating the epydoc reference
docs they can optionally contain a lot more details.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-12 00:17:48 +00:00
Robin Dunn dce2bd223c Docstring updates and tweaks for epydoc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-30 06:14:22 +00:00
Robin Dunn ba938c3d00 Added some convenience methods to wx.Bitmap: SetSize, GetSize, and
wx.EmptyBitmap can be called with a wx.Size (or a 2-element sequence)
object too.  Similar changes were done for wx.Image as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 18:23:17 +00:00
Robin Dunn da32eb53cb Changed (again) how the GIL is aquired and the tstate restored. This
time it's simpler, better, and handles the case where there is a wx
calback/event while the GIL has been released by a non-wxPython
extension module.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-24 23:09:59 +00:00
Robin Dunn dd9f7fea29 Changed all TRUE/true --> True and all FALSE/false --> False so the
Python docstrings will have the correct case.

Started adding extra docstrings where needed.

Some other little tweaks and fixes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 06:31:30 +00:00
Robin Dunn d14a1e2856 Merged the wxPy_newswig branch into the HEAD branch (main trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-12 21:34:20 +00:00