Commit Graph

25 Commits

Author SHA1 Message Date
Per A. Brodtkorb
e4e8bf8317 Fixes issue 1571:
Adding missing close for open.
If the "close()" call is missing after a "open(filename)" call, the filename isn't guaranteed to be closed before the interpreter exits.
This is generally a bad practice as explained here: https://stackoverflow.com/questions/7395542/is-explicitly-closing-files-important

Also replaced "fid=open(filename) fid.close()" statements for files with the safer
"with open(filename) as fid:" blocks. See https://www.python.org/dev/peps/pep-0343/
2020-03-23 17:16:44 +01:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
3aa71ee825 Update copyright in sphinxtools 2017-02-13 16:52:44 -08:00
Metallicow
58fc0d1377 Trim trailing space sphinxtools directory 2016-12-05 16:36:14 -06:00
Robin Dunn
664d5b765a Fixes for inheritance diagrams 2016-06-08 00:31:10 -07:00
Robin Dunn
af7176bbd9 Put all three elements back in the all_classes dict,
even though we're not using them all, it's just easier for now.
2016-06-07 19:29:34 -07:00
Robin Dunn
d7e4f7c22b Use fullnames in the inheritance diagrams, with some related fixes. 2016-06-07 16:43:46 -07:00
Robin Dunn
4c29dfae85 More copyright updates 2016-05-19 23:57:17 -07:00
Robin Dunn
a83ca5e94f Refactor lots of functions to use camelCase names 2016-05-19 23:53:40 -07:00
Thibault Genessay
fa690a7e5f Added shell=True to Popen() on win32
This allows 'dot.exe' to be found when called with 'dot', as long as
'dot.exe' is in the PATH.
2016-03-01 13:01:36 +01:00
David Fraser
a28e87a32f Quote fontname as required by graphviz 2.36.0 2015-03-17 14:30:14 +00:00
Robin Dunn
87b92b66f0 Remove unnecessary #! lines from files that will never be executed standalone. 2015-02-05 21:19:32 -08:00
Robin Dunn
bb10ffb496 Create sphinx build dirs that don't already exist.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-04-19 21:24:20 +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
cddb7c88df Reverse the direction of the arrows so they match how class diagrams are normally drawn and better indicate an "is derived from" relationship. Also change the color to navy and use a nicer style of arrow head.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-20 01:47:09 +00:00
Robin Dunn
810a202d80 Block object and "sip.*" classes from the inheritance diagrams.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-18 07:04:07 +00:00
Andrea Gavana
2037469921 - Use vertical layout for Graphviz-generated class inheritance diagrams (to get the old behaviour back, change the rankdir arguments from "TB" to "LR" in the inheritance.py script;
- Do not generate module-level inheritance diagrams anymore;
- Correct a few ReST typos in `newevent.py`, `expando.py` and `buttons`;
- Include a toctree ReST reference to `classic_vs_phoenix.txt` in the `MigrationGuide.txt` document, to stop Sphinx complaining about it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-17 15:28:20 +00:00
Andrea Gavana
4fee2a598a Phoenix:
- Reformat the documentation generator to take into account the "adv" sub-package;
- Make the `sphinx_generator.py` and the `sphinxtools` package Python 3 - compliant.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-29 20:11:36 +00:00
Robin Dunn
f404c31784 set svn:eol-style property to native
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-10 03:16:37 +00:00
Andrea Gavana
bd26715e78 Phoenix:
- Fix some over-aggressive substitutions of `this` with `self` in the snippets;
- Fix `inheritance.py` (`class_summary` parameter was not defaulted).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-09 11:54:44 +00:00
Andrea Gavana
f748a0b068 Phoenix:
- Add hyperlinks to external references (such as threading, code, exceptions and so on) to inheritance diagrams and sub/super classes;
- Add a stub for the overview "Writing Non-English Applications";
- Better handling of `wx.lib` documentation extraction.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-08 23:51:22 +00:00
Andrea Gavana
77338050a0 Phoenix:
- First stub at integrating `wx.lib` (116 warnings);
- Added `internationalization.rst` file from Werner (with a cool sample app as well);
- Added new samples for AffineMatrix2D.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-05 18:28:47 +00:00
Robin Dunn
adfd5345f4 Comment out some prints
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-09 05:47:52 +00:00
Andrea Gavana
946bef565d Fix back the documentation builders for Sphinx.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-22 16:28:17 +00:00
Andrea Gavana
ca4746f13c - Initial commit of the Python scripts to ReSTify the XML documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-30 19:17:09 +00:00