Popular recipes tagged "pyqt"http://code.activestate.com/recipes/tags/pyqt/popular/2014-10-17T10:40:48-07:00ActiveState Code RecipesUsing QMacCocoaViewContainer on PyQt4 (Python) 2014-10-17T10:40:48-07:00Keisuke URAGOhttp://code.activestate.com/recipes/users/668964/http://code.activestate.com/recipes/578951-using-qmaccocoaviewcontainer-on-pyqt4/ <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> Pyqt / Pyside: thread-safe callbacks + main loop integration (Python) 2013-10-12T08:43:09-07:00Justin Israelhttp://code.activestate.com/recipes/users/4187487/http://code.activestate.com/recipes/578634-pyqt-pyside-thread-safe-callbacks-main-loop-integr/ <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="http://code.activestate.com/recipes/81253/#c5" rel="nofollow">http://code.activestate.com/recipes/81253/#c5</a> <a href="http://code.activestate.com/recipes/578299-pyqt-pyside-thread-safe-global-queue-main-loop-int/" rel="nofollow">http://code.activestate.com/recipes/578299-pyqt-pyside-thread-safe-global-queue-main-loop-int/</a></p> PyQt4 pressed modifier keys names as method argument by a decorator (Python) 2013-09-29T14:13:04-07:00TNThttp://code.activestate.com/recipes/users/4187961/http://code.activestate.com/recipes/578675-pyqt4-pressed-modifier-keys-names-as-method-argume/ <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> Pyqt / Pyside: thread-safe global queue + main loop integration (Python) 2013-07-29T05:32:39-07:00Esteban Castro Borsanihttp://code.activestate.com/recipes/users/4184010/http://code.activestate.com/recipes/578299-pyqt-pyside-thread-safe-global-queue-main-loop-int/ <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> Convert PyQt properties to Python properties (Python) 2011-01-09T02:02:30-08:00Miguel Turnerhttp://code.activestate.com/recipes/users/4176460/http://code.activestate.com/recipes/577539-convert-pyqt-properties-to-python-properties/ <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="http://www.pyside.org/docs/pseps/psep-0102.html">PSEP 102</a>, which I sincerely hope will be accepted, as it will make PySide considerably more pythonic.</p> Using proxy connection for QWebView (Python) 2009-10-02T02:32:51-07:00Keisuke URAGOhttp://code.activestate.com/recipes/users/668964/http://code.activestate.com/recipes/576921-using-proxy-connection-for-qwebview/ <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>