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>&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp; from twisted.internet import reactor<br>&nbsp;&nbsp;&nbsp; reactor.connectTCP(&#39;<a href="http://192.168.1.100">192.168.1.100</a>&#39;, 8000, ClientFactory_(self)) # i am sending qt object to clientFactory<br>
<br>class ClientFactory_(ClientFactory):<br>&nbsp;&nbsp;&nbsp; def __init__(self,ui):<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.ui = ui<br>&nbsp;&nbsp;&nbsp; def buildProtocol(self, addr):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return Uploader(self.ui)<br>&nbsp;&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp;&nbsp; bla<br><br>class Uploader(Protocol):<br>
&nbsp;&nbsp;&nbsp; def __init__(self,ui):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.ui = ui<br>&nbsp;&nbsp;&nbsp; &quot;&quot;&quot; Some upload stuffs&quot;&quot;&quot;<br>&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp; bla<br>&nbsp;&nbsp;&nbsp; def updateProgressBar(self, newValue):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ege Üniversitesi <br>Uluslararası Bilgisayar Enstitüsü<br>