[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyQT and threading support
From:       "Marc Boeker" <marc () wgmail ! de>
Date:       2004-01-31 12:27:22
Message-ID: 200401311227.i0VCRLQ14874 () mailgate5 ! cinetic ! de
[Download RAW message or body]

hi,

i'm quite new to python and pyqt so get ready for a n00b's question ;)
i've got a normal qtextedit widget called text_recv. then i also got 3
functions, handling the threading stuff. (read = main thread, start_thread and \
stop_thread) after connecting to the serial port, i'm calling start_thread(). \
everything works fine. but when i'm goingt to append the recieved data (from the com \
port) to the textedit, the whole script freezes. only a "killall" helps to terminate \
the process. printing out the recieved data to the console works without any \
problems. ok, i created a new function called append_text(). append_text only appends \
the text, given by a parameter to the textedit via self.text_recv.append(data). \
calling append_text("foobar") not in a thread works fine, but calling this function \
from a thread results in the same problem...;(

i know strange problem and a strange description. sorry!

thnx for your help

best regards from germany

marc
______________________________________________________________________________
Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic