[PyQt] got stuck translating webftpclient example to PyQt

Moritz Warning moritzwarning at web.de
Sun Feb 2 02:33:19 GMT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I tried to translate the webftpclient example from the Qt examples to PyQt and got stuck.
The code is on github: https://github.com/mwarning/PyQt4-Examples

Currently, the window opens but nothing is displayed.
The HTML string to be displayed seems to be alright.

Here is the order of method calls for the cpp code:

FtpView.init
NetworkAccessManager.init
Downloader.init
NetworkAccessManager.createRequest
FtpReply.init
FtpReply.processCommand
FtpReply.processCommand
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processCommand
FtpReply.setListContent
FtpReply.bytesAvailable: 920
FtpReply.isSequential
FtpReply.readData
FtpReply.bytesAvailable: 408
FtpReply.bytesAvailable: 408
FtpReply.updateWindowTitle
FtpReply.abort

.. and my malfunctioning PyQt code:

FtpView.init
NetworkAccessManager.init
Downloader.init
NetworkAccessManager.createRequest
FtpReply.init
FtpReply.processCommand
FtpReply.processCommand
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processListInfo
FtpReply.processCommand
FtpReply.setListContent
FtpReply.bytesAvailable: 920
FtpReply.isSequential
FtpReply.bytesAvailable: 920
FtpReply.bytesAvailable: 920
FtpView.updateWindowTitle
FtpReply.abort

As you can see the behavior differs after isSequential is called.

Any ideas how I can debug this further?

regards,
mwarning
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQEcBAEBAgAGBQJS7a5vAAoJECHrh56PP4wpDhUH/1h2d1d+kq6vzhC2vJgwi1QF
QqMlvMAUsOIPxUT2e+AY60J8ABjjguGLLEp2D8M8Fl7grOj9wQsgY47ORkH7YHaL
a7w+eM51TbRELfl+5Lb8wgdSjWNFY62+SLvFq/cRHpbqoPjhj4z6vwSZ4RYTFKWN
v+Oz11sPgqR6SnhWESb3TmYeA+AoUscRFkjNSFP6hN4EysaScK+qs8j7Tv8O9Lul
AkVGSycL4AZ9xD3NcOe6nFKndCuBlCwGDwcFRDkbKW/K+29xAezVky0h9WINz4EG
llii6s6sXwXHVBaGtxi0N0Ehc+rxLLSl5mBjYbXBp++ac1jSLg9OG9Dr+7MLwU0=
=o+N8
-----END PGP SIGNATURE-----


More information about the PyQt mailing list