[PyQt] Re: callback problem

Alberto Berti alberto at metapensiero.it
Wed Jul 2 16:20:24 BST 2008


>>>>> "Oguz" == Oguz Yarimtepe <comp.ogz at gmail.com> writes:

    Oguz> It runs only one time when the main
    Oguz> function is called. What should i do to make it run as a
    Oguz> background process and keep checking the xrandr output.

As always, it's good habit to have a look at the docs:)
You can use standard python threads, QThreads or QTimer (have a look
also at QObject.startTimer())

http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtimer.html
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qobject.html#startTimre



More information about the PyQt mailing list