370 Commits

Author SHA1 Message Date
Robin Dunn
df8589a8cd Don't lose the newlines from the docstring of a PyMethodDef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-06 01:59:04 +00:00
Robin Dunn
058ed937da wx.ComboBox fixes.
- disambiguate GetSelection by renaming an overload to GetTextSelection.
- add a SetTextSelection to go with it, but keep both original SetSelection overloads too.
- add deprecated SetMark/GetMark aliases.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 00:06:10 +00:00
Robin Dunn
5f21090a6f OnEnabled is gone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-31 05:05:57 +00:00
Robin Dunn
2981869eca Fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-22 01:29:48 +00:00
Robin Dunn
3f274356d0 Move check for XMLSRC to etg command instead of when the etgtools are imported.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-26 00:45:26 +00:00
Robin Dunn
bbe768fcdc Allow fixWindowClass and similar tweakers to turn off the ignored flag for all protected methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-12 05:12:39 +00:00
Robin Dunn
720adb7ac1 Add a helper for displaying the function signatures so it is easier to write code that selects one of them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-12 05:12:31 +00:00
Robin Dunn
742d02d53b Enable handling #define's that are string constants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-12 05:12:23 +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
Robin Dunn
591175c16b The deprecated attribute might not be a string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-29 19:42:33 +00:00
Robin Dunn
0e6e598099 Support isStatic for PyMethods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-23 03:08:03 +00:00
Robin Dunn
79db08515d addDefaultCtor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-22 08:00:42 +00:00
Robin Dunn
295d3f6442 * Upgrade to the newest six module (1.2.0) and call it six instead of wx2to3.
* Tweak six a little, adding its license text since we'll only be distributing the module, fix the name of the dummy moves module, and add a PY33 constant since the change in memoryview affects our code.

* Update all modules already using the old wx2to3

* Tweak lots of unit tests and other modules to work with Python 3.3 (still a few more that will need some work.)

* Try to deal with memoryview changes in Py3.3, without much luck...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-16 01:15:41 +00:00
Robin Dunn
5b8bc4fe17 Use textfile_open when loading core.pi to avoid encoding errors in Python3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-16 01:15:21 +00:00
Andrea Gavana
7dc13f1e2b Work around for the buildbot sphinx generator which seems unable to find tables and snippets (hopefully this will do the job)...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-08 15:11:14 +00:00
Andrea Gavana
9decb82713 Phoenix: Revise the way `:param: and :rtype: are handled in sphinx_generator.py so that the module name does not appear in front of the class. Minor cleanups to the docstrings generators. Fixed interlinks in wx.lib.busy.py and wx.lib.softwareupdate.py`.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-06 20:33:39 +00:00
Andrea Gavana
66840744d2 Phoenix: few corrections to the overviews; Added some more contributed snippets; Fixed some more converted snippets; Added the correct interlink references in the etg files; better handling of the Doxygen stuff.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-05 20:44:52 +00:00
Andrea Gavana
6eb532bdc5 Phoenix: better handling of XML tail items after source code...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-04 21:26: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
Andrea Gavana
bed39f701d Phoenix: again improvements for pathological linebreaks inside parameter descriptions (GLContext.__init__, DC.Blit and ConfigBase.__init__)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-03 22:37:19 +00:00
Andrea Gavana
b117617572 Phoenix: few additional fixes to some of the samples, plus better formatting for the remaining troublesome docs classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-03 20:50:04 +00:00
Andrea Gavana
bd891fbdf4 Phoenix: converted snippets for xml and xrc. Fixed minor issues in the docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 22:38:22 +00:00
Robin Dunn
73d6fb4baa Chop the names at '(' if any when checking if the name is in the core module
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:31:30 +00:00
Robin Dunn
ae54ccbb3a Don't skip writing the overloads when one has MethodCode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:31:05 +00:00
Andrea Gavana
604b778a2c Phoenix docs: handle funny-formatted heading sections for window styles, extra styles and event handling; Add missing modules in the main.html Sphinx file; Convert some more snippets, specifying the highlight language used (XML/HTML for some snippets in wx.html); Correctly reference classes and functions in wx.Bitmap pure-Python methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 20:54:13 +00:00
Andrea Gavana
cd5581f696 Phoenix docs update: added support for wx.html2 and friends, converted a bunch of snippets and translated the wx.Command/wx.CommandProcessor overviews. Revised some internal links between documentation classes and overviews (again... please wx-devs stop renaming the interlinks between classes and overviews).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 21:18:30 +00:00
Robin Dunn
794a237843 Sometimes when we remove the wx prefix we really want to make it be "wx.Name" instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:23:36 +00:00
Robin Dunn
036b3db33c Add wx.GenericMessageDialog and wx.RichMessageDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:20:56 +00:00
Robin Dunn
31d92bb01f Enable adding and generating code for a cpp dtor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:21:19 +00:00
Robin Dunn
153eb2f0ac Some fixes in the generation of the pi files related to default parameter values.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:20:53 +00:00
Robin Dunn
dea1c34ef6 Allow specifying the cppSignature for regular methods too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:20:00 +00:00
Robin Dunn
e8d7197917 Allow cppSignature and pyArgsString for CppMethods too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-09 04:38:43 +00:00
Robin Dunn
8829d26dde Add tweaks for things like output args, ownership transfers, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-01 22:51:13 +00:00
Robin Dunn
b83a6f158f Set the default protection attribute to 'public' so we don't have to explicitly set it for hand-constructed extractor objects.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:45:58 +00:00
Robin Dunn
56b9ffbc87 fix missing newline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-02 05:39:31 +00:00
Robin Dunn
12c69fa054 Fix for empty snippet files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-18 16:30:46 +00:00
Robin Dunn
489cb9eb1a Adapt wxListWrapperTemplate so it can also be used with plain wxList objects, with a fake type specific wrapper class created for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-17 01:06:01 +00:00
Kevin Ollivier
3670519430 Enable etg code to be used to build extensions other than Phoenix itself.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 17:42:05 +00:00
Kevin Ollivier
7e4fcdd7ea Add support for friend and namepsace annotations in the doc parser.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 17:35:46 +00:00
Robin Dunn
0fa4a65870 enable setting the new sip %InstanceCode directive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:47 +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
b8ca4e1102 Allow setting virtual catcher code for normal methods too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-30 21:01:16 +00:00
Robin Dunn
3141f18de4 For wxArrayString() and wxArrayInt() default parameter values, simply use "[]" in docstrings and etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-30 21:01:06 +00:00
Robin Dunn
f0924fce36 Add wx.Choicebook, wx.Listbook, wx.Toolbook and wx.Treebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-20 17:10:42 +00:00
Robin Dunn
78b63e56ea Fixes for better integration with the existing wxScrolledWindow and wxScrolledCanvas docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-13 23:22:11 +00:00
Andrea Gavana
1aaaef0e92 Phoenix:
- Fix the generation of inheritance diagrams for pure-Python classes;
- Set the `detailedDoc` attribute to an empty string for instances of `TypedefDef`.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-13 20:40:53 +00:00
Andrea Gavana
b5fcfba543 Phoenix:
- Handle the `typedef` stuff as classes when the `docAsClass` attribute is set to ``True`` in the documentation building process (see `ScrolledWindow` and `ScrolledCanvas`).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-12 22:08:35 +00:00
Robin Dunn
e7359ac55a Add extra flags and info to enable template specialization typdefs to be documented like a class. Use it with wxScrolledWindow and wxScrolledCanvas.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-12 20:56:21 +00:00
Robin Dunn
f697317ebc Classes without explicit bases still derive from object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-12 20:56:15 +00:00
Andrea Gavana
3e720e2530 Phoenix:
- Correctly handle and reference inherited methods inside class/method descriptions;
- Reformat the method's short descriptions in the Summary tables to properly show hyperlinks to the methods themselves.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-12 20:34:13 +00:00