Hi, <br>i am using qt4reactor with twisted. My app structure is below:<br><br>i have pyqt class <br><br>class MainWindow(Object):<br> bla<br> bla<br> bla<br> from twisted.internet import reactor<br> reactor.connectTCP('<a href="http://192.168.1.100">192.168.1.100</a>', 8000, ClientFactory_(self)) # i am sending qt object to clientFactory<br>
<br>class ClientFactory_(ClientFactory):<br> def __init__(self,ui):<br> self.ui = ui<br> def buildProtocol(self, addr):<br> return Uploader(self.ui)<br> bla<br> bla<br><br>class Uploader(Protocol):<br>
def __init__(self,ui):<br> self.ui = ui<br> """ Some upload stuffs"""<br> bla<br> bla<br> bla<br> def updateProgressBar(self, newValue):<br> self.ui.progressBar.setValue(newValue)<br>
<br>i am updating my progressBar from Upload class, but window is freezing when i do it (only progressBar isnot, others are freezing when i upload file). How can i solve this, how can i design it?<br><br>Thanks all..<br clear="all">
<br>-- <br>Aydın ŞEN<br><br> Ege Üniversitesi <br>Uluslararası Bilgisayar Enstitüsü<br>