Ticket #3977: documentation-3977.patch

File documentation-3977.patch, 1.2 KB (added by michaelnt, 5 years ago)

Documentation patch

  • doc/core/howto/choosing-reactor.xhtml

    diff --git doc/core/howto/choosing-reactor.xhtml doc/core/howto/choosing-reactor.xhtml
    index ed99249..9c8c7e7 100644
     
    4545      <li><a href="#win32_wfmo">Win32</a></li>
    4646      <li><a href="#cfreactor">CoreFoundation</a></li>
    4747      <li><a href="#pyui">PyUI</a></li>
     48      <li><a href="#qtreactor">Qt4</a></li>
    4849    </ul>
    4950
    5051    <p>When using applications that are runnable using <code>twistd</code>, e.g.
    pyuisupport.install(args=(640, 480), kw={'renderer': 'gl'}) 
    301302    <p>An example Twisted application that uses PyUI can be found in <code
    302303    class="py-filename">doc/core/examples/pyuidemo.py</code>.</p>
    303304
     305    <h3>QtReactor</h3><a name="qtreactor" />
     306
     307    <p>Twisted is intergrated with Qt4 using the LGPL <a href="http://www.pyside.org">PySide</a> bindings.</p>
     308
     309<pre class="python">
     310from PySide import QtGui
     311
     312app = QtGui.QApplication(sys.argv)
     313from twisted.internet import qtreactor
     314qtreactor.install()
     315</pre>
     316
     317    <p>An example Twisted application that uses qtreactor can be found in <code
     318    class="py-filename">doc/core/examples/qtdemo.py</code>.</p>
     319
    304320  </body>
    305321</html>