[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QNetworkReply pyQt
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2017-05-03 17:31:10
Message-ID: 20170503173109.hzp4bfnhfwk3ypvv () hooch ! localdomain
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wed, May 03, 2017 at 01:17:12PM -0400, Christopher Probst wrote:
> Sorry I am confused here. This is a pyQt mailing list and I am putting a
> python 3.5 example which does not seem to work on my end. I am merely
> asking what I am doing wrong?

QObject(parent) is (similar to) what you'd do in C++, but does nothing
useful in Python.

You want something like  super().__init__(parent)  or
QObject.__init__(self, parent)  instead.

See e.g.:
https://www.blog.pythonlibrary.org/2014/01/21/python-201-what-is-super/

Florian

--=20
https://www.qutebrowser.org  | me@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/

["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic