def connectionMade(ftpClient):
test = FileReceiver('./testRetrieve.txt')
try:
ftpClient.retrieveFile('testFile.txt',test)
except:
print "Exception -", sys.exc_value
reactor.stop()
self.ui=Ui_MainWindow()
self.ui.setupUi(self)
def main():
app = QtGui.QApplication(sys.argv)
qt4reactor.install()
window=Main()
window.show()
from twisted.internet import reactor
reactor.run()
sys.exit(app.exec_())
if __name__ == "__main__"
Thank you Mark, that worked perfectly!
Renan Mathias Fernandes
On Mar 1, 2010, at 4:41 PM, Mark Bailey wrote:
> Hi Renan:
>
> I asked almost the same question a few weeks ago. Look at
> http://twistedmatrix.com/trac/wiki/FrequentlyAs
n example on how can I do that?
Thanks in advance,
Renan Mathias Fernandes
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python