Popular recipes tagged "pyside"http://code.activestate.com/recipes/tags/pyside/2013-10-12T08:43:09-07:00ActiveState Code RecipesPyqt / 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> 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>