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

List:       pykde
Subject:    Re: [PyQt] QNetworkReply pyQt
From:       Barry <barry () barrys-emacs ! org>
Date:       2017-05-04 21:51:45
Message-ID: 4110181E-AED2-46C1-B5B2-48D09E1DFF01 () barrys-emacs ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On 3 May 2017, at 18:17, Christopher Probst <christop.probst@gmail.com> 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? 
> > On Wed, May 3, 2017 at 1:02 PM, Phil Thompson <phil@riverbankcomputing.com> \
> > wrote:
> > > On 03/05/2017 17:15, Christopher Probst wrote:
> > > I am going to send the example again without a dependency to my project.
> > > For some odd reason the finished signal is never received.
> > > 
> > > import sys
> > > 
> > > from PyQt5.QtWidgets import QApplication
> > > from PyQt5.QtNetwork import *
> > > from PyQt5.QtCore import *
> > > 
> > > class DebugginClass(QObject):
> > > def __init__(self, parent=None):
> > > QObject(parent)

This not how you init the base class.

Try
            super().__init__( parent )

E.g write in python style not C++ style.

> > 
> > This is Python not C++.
> > 
> > Phil
> 
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[Attachment #5 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body dir="auto"><div></div><div><br></div><div><br>On 3 May \
2017, at 18:17, Christopher Probst &lt;<a \
href="mailto:christop.probst@gmail.com">christop.probst@gmail.com</a>&gt; \
wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">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?</div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 1:02 PM, Phil \
Thompson <span dir="ltr">&lt;<a href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On 03/05/2017 17:15, Christopher Probst \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> I am going to send the example again without a \
dependency to my project.<br> For some odd reason the finished signal is never \
received.<br> <br>
import sys<br>
<br>
from PyQt5.QtWidgets import QApplication<br>
from PyQt5.QtNetwork import *<br>
from PyQt5.QtCore import *<br>
<br>
class DebugginClass(QObject):<br>
&nbsp; &nbsp; def __init__(self, parent=None):<br>
&nbsp; &nbsp; &nbsp; &nbsp; \
QObject(parent)<br></blockquote></span></blockquote></div></div></div></blockquote><div><br></div>This \
not how you init the base class.<div><br></div><div>Try</div><div>&nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; super().__init__( parent )</div><div><br></div><div>E.g \
write in python style not C++ style.</div><div><br></div><div><blockquote \
type="cite"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote>
<br></span>
This is Python not C++.<span class="HOEnZb"><font color="#888888"><br>
<br>
Phil<br>
</font></span></blockquote></div><br></div>
</div></blockquote><blockquote \
type="cite"><div><span>_______________________________________________</span><br><span>PyQt \
mailing list &nbsp;&nbsp;&nbsp;<a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></span><br><span><a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankc \
omputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></div></body></html>


[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