[PyQt] got stuck translating webftpclient example to PyQt

Moritz Warning moritzwarning at web.de
Mon Feb 3 21:34:00 GMT 2014


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

On 02/03/2014 10:18 PM, Hans-Peter Jansen wrote:
> Dear Moritz,
> 
> On Sonntag, 2. Februar 2014 20:26:27 Moritz Warning wrote:
>>
>> ok, I have switched to unicode strings.
>> Thanks for the pointer.
> 
> As an author of example code, you should adhere to a good coding style even 
> more closely than under other circumstances.
> 
> Therefore, you should indent with 4 spaces:
> http://www.python.org/dev/peps/pep-0008/#code-lay-out. 
> 
> Using * imports are considered harmful:
> http://docs.python.org/3.3/howto/doanddont.html
> 
> For PyQt{4,5}, it's best practise to use:
> 
> from PyQt4 import QtCore, QtNetwork, QtWebKit
> 
Ok.

>> Anyway, I looks like the cpp example (and for that reason my python port) is
>> broken anyway. I created a minimal example. But it did not give me a clue
>> and I haven't found other code to compare to, yet.
>>
>> Only a part of the expected content is displayed (the first 512 Bytes):
>> Minimal example that demonstrates the problem:
>>
>> https://github.com/mwarning/PyQt4-Examples/blob/minimal/webftpclient/main.py
>>
>> (in case someone is interested and/or knows the answer)
> 
> I've glimpsed over it, and you're right: that's a blatant bug in either the 
> example or Qt itself. While I didn't harvested much success in filing Qt bugs 
> in the past, but it's still the best thing to do right now. 
> 
> Let us know about the outcome, please. 
I will!

> 
> Pete
> 

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

iQEcBAEBAgAGBQJS8AtIAAoJECHrh56PP4wpkoAH/RLghF4WWbyzKIMQFwpc7pj9
kKWPxVgGLAhWF+5weUIxndOkwGH7Kph1EtC11zcBwgZgn7/9aKgHjKhjhnxLxQF1
/Lt4DkUbpcUiGdHGf6PvjSYUyad4EEEtMdJtVFUdVs2bRKQ39Y81iF0zQXXIAHdF
xVxDTBSesA0fmcULLG2y/xaDWBqNz+CO7Bwu6+7/dSkYI8y5qhAARlfYk1kUHSmx
TSHp5yCbcKXZZuNFtB3UvMyY1J/tBMeT6DYlffs4UpE+AHz0HEAdlRrbFpxKSskt
S3vp0S4kuKR9p99MjwwRwXEjsa7KeGVYT6eCsuoXoU4+NPh6Vvp3BsUFQe+pwzA=
=tQsV
-----END PGP SIGNATURE-----


More information about the PyQt mailing list