Hi David, welcome to wonderful world of PySide ;)

To get QTimer working you need a event loop running or a
QCoreApplication running make sure you have that.

this is a small example:

from PySide.QtCore import QCoreApplication, QTimer

def myFunction():
    print "hello"

if __name__ == '__main__':
    import sys
    app = QCoreApplication(sys.argv)
    t = QTimer()
    t.timeout.connect(myFunction)
    t.start()
    sys.exit(app.exec_())


About documentation we do not have a official PySide tutorial you can
use Nokia Qt tutorial[1] to get start with Qt.

[1]http://developer.qt.nokia.com/resources

BR

On Fri, Oct 22, 2010 at 4:31 PM, David Hautbois <[email protected]> wrote:
> Hello
>
> First, apologize for newbie questions in this message and in the next
> messages I will write to this list.
> Previously, I used PyGTK because maemo and hildon.
> Now, because Meego, I'm learning Pyside.
>
> I successfully use Qtimer in GUI apps.
> But how to use it in nonGUI apps ? (because I have no widget to attach
> the timer to)
>
> I added a simple print statement in the method called by the timer.
> But this print statement does not write to the stdout.
>
> Thanks.
>
> David.
> PS: Some tutorials are welcome.
>
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside
>



-- 
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to