|
| 1 | +PythonQt |
| 2 | +======== |
| 3 | + |
| 4 | +Overview |
| 5 | +-------- |
| 6 | + |
| 7 | +PythonQt is a dynamic [Python](http://www.python.org) binding for [Qt](http://qt.nokia.com). |
| 8 | +It offers an easy way to embed the Python scripting language into |
| 9 | +your Qt applications. It makes heavy use of the QMetaObject system and thus requires Qt4.x. |
| 10 | + |
| 11 | +This project is a fork of the [official PythonQt](http://pythonqt.sourceforge.net/) repository |
| 12 | +hosted on sourceforge. |
| 13 | + |
| 14 | +It serves as *staging area* to contain patches that will then be contributed back to the |
| 15 | +official repository. |
| 16 | + |
| 17 | +Prerequisites |
| 18 | +------------- |
| 19 | + |
| 20 | +* CMake 2.8.x |
| 21 | +* Qt 4.6.2 or above |
| 22 | + |
| 23 | +Build instructions |
| 24 | +------------------ |
| 25 | + |
| 26 | +By default, the `patched-3` version will be checked out. |
| 27 | + |
| 28 | +``` |
| 29 | +git clone git://github.com/commontk/PythonQt.git |
| 30 | +mkdir PythonQt-build |
| 31 | +cd PythonQt-build |
| 32 | +cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=/path/to/qmake ../PythonQt |
| 33 | +make |
| 34 | +``` |
| 35 | + |
| 36 | +Additional configure options are: |
| 37 | + |
| 38 | +* `CMAKE_BUILD_TYPE`: Debug, Release, RelWithDebInfo or MinSizeRel |
| 39 | +* `PythonQt_DEBUG`: Enable/Disable PythonQt debug output |
| 40 | +* `PythonQt_Wrap_QtAll`: Make all Qt components available in python |
| 41 | +* `PythonQt_Wrap_Qt<componentname>`: Build PythonQt wrapper associated with `<componentname>`. Possible `<componentname>` are `gui`, `network`, `opengl`, `sql`, `uitools`, `webkit`, `xml`, `xmlpatterns`. |
| 42 | + |
| 43 | +Available branches |
| 44 | +------------------ |
| 45 | + |
| 46 | +This repository contains three branches: |
| 47 | +* Based on [r244](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=244) |
| 48 | + |
| 49 | +### patched-3 |
| 50 | +* Backported: |
| 51 | + * Most of the [change specific to](https://github.com/commontk/PythonQt/compare/e2dce4b...patched-2) `patched-2` branch have been backported upstream: [r241](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=241), [r242](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=242), [r243](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=243) |
| 52 | + |
| 53 | +### patched-2 |
| 54 | + |
| 55 | +* Based on [r228](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=228) |
| 56 | +* List of features: |
| 57 | + * At configuration time, detect the Qt version used and seamlessly compile the appropriate wrappers (Qt 4.8, 4.7 or 4.6). |
| 58 | + * Add method allowing to know if a python error occurred: [5935f29](https://github.com/commontk/PythonQt/commit/5935f29978deed892a13ddef02cb14c205c6124d) |
| 59 | + * Also add associated method "resetErrorFlag": [a386dc60](https://github.com/commontk/PythonQt/commit/a386dc60f71c15e67c611bc31b26cee756ed833a) |
| 60 | + * Fix compilation issue on VS2010 when PythonQt Debug build against python Release: [7e1e07f](https://github.com/commontk/PythonQt/commit/7e1e07f34b2420e420e2858e5ea9a49fe1e0d235) |
| 61 | + * Add option Add PythonQt_Wrap_QtAll: [97df3b0](https://github.com/commontk/PythonQt/commit/97df3b0845b3f5c987d3141a9e651436882f5913) and [9104fa9](https://github.com/commontk/PythonQt/commit/9104fa924859f4a865016f2138c06ec856f449d4) |
| 62 | + * Ensure all 4.8 generated wrappers are considered: [654f324](https://github.com/commontk/PythonQt/commit/654f3249d1cf3f3ff674b2ff6cca7a2ef3517f60) |
| 63 | + * Update "PythonQtPythonInclude.h" to avoid build error on recent MacOSX: [7b8ee130](https://github.com/commontk/PythonQt/commit/7b8ee13058bc0b366983ce8228612e75f8dd9ca8) and [47738f9c](https://github.com/commontk/PythonQt/commit/47738f9c8c5d3ffa77c8f2e1844f899e5b548f0c) |
| 64 | + * Update "PythonQtPythonInclude.h" to fix windows build issue when PythonQt Debug build against python Release[6366f00](https://github.com/commontk/PythonQt/commit/6366f002a93aa238c55f58de949d09c552cda5a9) |
| 65 | + * Optionally include CTestUseLaunchers: [211440](https://github.com/commontk/PythonQt/commit/2114405a47836b3fb16a3f66fec6a02184f32e71) |
| 66 | + * Add SystemExit exception handler. If enabled, the signal "systemExitExceptionRaised" will be emitted. It gives application the opportunity to cleanup and terminate nicely: [3c84463d](https://github.com/commontk/PythonQt/commit/3c84463d3fc4a99c94207c1116ba33d7a412a95f) |
| 67 | + * Add "isatty" function to StdOutRedirect. Needed by some logging frame: [7132dba9](https://github.com/commontk/PythonQt/commit/7132dba93064c2a02591b42305fecdd5d59702d3) |
| 68 | +* Backported: |
| 69 | + * Most of the [change specific to](https://github.com/commontk/PythonQt/compare/svn-mirror...patched) `patched` branch have been backported upstream: [r200](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=200), [r201](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=201), [r202](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=202), [r203](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=203), [r204](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=204) |
| 70 | + * CMake option `PYTHONQT_USE_VTK` has been removed ([r205](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=205)), the foreign wrapper mechanism should be used: [r206](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=206) |
| 71 | + |
| 72 | +### patched |
| 73 | + |
| 74 | +* Based on [r193](http://pythonqt.svn.sourceforge.net/viewvc/pythonqt?view=revision&revision=193) |
| 75 | +* List of features: |
| 76 | + * CMake'ified PythonQt project |
| 77 | + * CMake'ified PythonQt/generator project |
| 78 | + * Add `dPython.h` file, it provides the ability to link against release python with a debug build of your project. |
| 79 | + * Option `PYTHONQT_USE_VTK` CMake option allowing to teach PythonQt how to deal with `vtkObject` |
| 80 | + * Stdin can optionally be redirected to a custom callback |
| 81 | + * [More details](https://github.com/commontk/PythonQt/compare/svn-mirror...patched) |
| 82 | + |
| 83 | +### svn-mirror |
| 84 | + |
| 85 | +* SVN history imported using `git-svn` |
| 86 | + |
| 87 | +Contributing |
| 88 | +------------ |
| 89 | + |
| 90 | +Once you've made your great commits: |
| 91 | + |
| 92 | +1. [Fork][fk] PythonQt |
| 93 | +2. Create a topic branch - `git checkout -b my_branch` |
| 94 | +3. Push to your branch - `git push origin my_branch` |
| 95 | +4. Create an [Issue][is] with a link to your branch |
| 96 | +5. That's it! |
| 97 | + |
| 98 | + |
| 99 | +Meta |
| 100 | +---- |
| 101 | + |
| 102 | +* Code: `git clone git://github.com/commontk/PythonQt.git` |
| 103 | +* Home: <http://pythonqt.sourceforge.net/> |
| 104 | +* Bugs: <http://github.com/commontk/PythonQt/issues> |
| 105 | + |
| 106 | +License |
| 107 | +------- |
| 108 | + |
| 109 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 110 | +you may not use this file except in compliance with the License. |
| 111 | +You may obtain a copy of the License at |
| 112 | + |
| 113 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 114 | + |
| 115 | +Unless required by applicable law or agreed to in writing, software |
| 116 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 117 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 118 | +See the License for the specific language governing permissions and |
| 119 | +limitations under the License. |
| 120 | + |
| 121 | +[fk]: http://help.github.com/forking/ |
| 122 | +[is]: http://github.com/jcfr/qJobManager/issues |
| 123 | + |
0 commit comments