Commit Graph

16 Commits

Author SHA1 Message Date
Robin Dunn
1fce4e9668 Fixed the equality and inequality operators for some of the basic
data types (wx.Point, wx.Size, wx.Colour, etc.) to no longer raise a
TypeError if the compared object is not compatible, but to just return
a boolean as expected.  For example::

	  wx.Colour(64,0,64) == 123      ==> False


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 23:29:39 +00:00
Robin Dunn
4617be085f Another merge of 2.6 changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-17 05:42:30 +00:00
Robin Dunn
e5156e154a Check for app before making a colour from a name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-06 21:11:42 +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
2b61982245 docstring tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 06:35:47 +00:00
Robin Dunn
6ad421ae90 Added docstrings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-21 01:54:41 +00:00
Robin Dunn
22faec7d06 Allow comparrisons with None
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-19 02:33:28 +00:00
Robin Dunn
2b9048c56f %addtofunc --> %pythonAppend
Also used %pythonPrepend to provide backwards compatibility for a few
parameter name changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 01:18:37 +00:00
Robin Dunn
02376d7348 Since they are new style classes we need to use the __reduce__
protocol for pickling.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-29 23:06:38 +00:00
Robin Dunn
cf763f5b94 backwards compatibility aliases can be used in the wxPython namespace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 21:37:21 +00:00
Robin Dunn
c4f8516517 Fix __repr__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-18 00:02:35 +00:00
Robin Dunn
3f0ff538b1 Little changes to match recent changes in wxWindows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 20:07:50 +00:00
Robin Dunn
61c5a8acbe Added some aliases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-28 18:39:57 +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
94d33c49d1 Removed %noautorepr directives
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-13 18:43:39 +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