Most viewed recipes tagged "pyqt" Code RecipesPyqt / Pyside: thread-safe global queue + main loop integration (Python) 2013-07-29T05:32:39-07:00Esteban Castro Borsani <p style="color: grey"> Python recipe 578299 by <a href="/recipes/users/4184010/">Esteban Castro Borsani</a> (<a href="/recipes/tags/pyqt/">pyqt</a>, <a href="/recipes/tags/pyside/">pyside</a>, <a href="/recipes/tags/python/">python</a>). Revision 3. </p> <p>A mechanism for communication from any thread to the main thread.</p> Pyqt / Pyside: thread-safe callbacks + main loop integration (Python) 2013-10-12T08:43:09-07:00Justin Israel <p style="color: grey"> Python recipe 578634 by <a href="/recipes/users/4187487/">Justin Israel</a> (<a href="/recipes/tags/events/">events</a>, <a href="/recipes/tags/pyqt/">pyqt</a>, <a href="/recipes/tags/pyside/">pyside</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/thread/">thread</a>). Revision 4. </p> <p>A mechanism for communication from any thread to the main thread.</p> <p>It uses the same custom Event, but adds a classmethod convenience for taking a callback and params, wrapping it into an event and posting it to the receiver. Also adds in support for weak method references to the callback, in case the source object gets deleted before its callback is actually called.</p> <p>Merges forks of both: <a href="" rel="nofollow"></a> <a href="" rel="nofollow"></a></p> Using proxy connection for QWebView (Python) 2009-10-02T02:32:51-07:00Keisuke URAGO <p style="color: grey"> Python recipe 576921 by <a href="/recipes/users/668964/">Keisuke URAGO</a> (<a href="/recipes/tags/browser/">browser</a>, <a href="/recipes/tags/gui/">gui</a>, <a href="/recipes/tags/pyqt/">pyqt</a>, <a href="/recipes/tags/qt4/">qt4</a>, <a href="/recipes/tags/web/">web</a>). Revision 4. </p> <p>QWebView is powerful web browser. This script can use a http-proxy host. Log file name is minibrowser.log in same directory.</p> PyQt4 pressed modifier keys names as method argument by a decorator (Python) 2013-09-29T14:13:04-07:00TNT <p style="color: grey"> Python recipe 578675 by <a href="/recipes/users/4187961/">TNT</a> (<a href="/recipes/tags/keys/">keys</a>, <a href="/recipes/tags/modifier/">modifier</a>, <a href="/recipes/tags/pyqt/">pyqt</a>). Revision 2. </p> <p>This is a definition of a decorator function that checks which modifier keys are being pressed and adds a keyword argument to a method. This argument is a tuple of names (strings) of the modifier keys that have been pressed when the method was called (or triggered).</p> Convert PyQt properties to Python properties (Python) 2011-01-09T02:02:30-08:00Miguel Turner <p style="color: grey"> Python recipe 577539 by <a href="/recipes/users/4176460/">Miguel Turner</a> (<a href="/recipes/tags/property/">property</a>, <a href="/recipes/tags/pyqt/">pyqt</a>, <a href="/recipes/tags/pyside/">pyside</a>, <a href="/recipes/tags/python/">python</a>). Revision 2. </p> <p>This recipe will find all attributes created as meta-object properties in Qt and will create a Python property of the same name for each of them. This is a quick way of providing some of the functionality suggested by <a href="">PSEP 102</a>, which I sincerely hope will be accepted, as it will make PySide considerably more pythonic.</p> Using QMacCocoaViewContainer on PyQt4 (Python) 2014-10-17T10:40:48-07:00Keisuke URAGO <p style="color: grey"> Python recipe 578951 by <a href="/recipes/users/668964/">Keisuke URAGO</a> (<a href="/recipes/tags/pyqt/">pyqt</a>). </p> <p>This code is QMacCocoaViewContainer on PyQt4 example.</p>