Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'xml,': 0.05; 'subject:Python': 0.06; 'subject: + ': 0.07; 'subject:code': 0.07; 'thu': 0.09; 'emit': 0.16; 'subject:analysis': 0.16; 'wrote:': 0.18; 'module': 0.19; 'email addr:gmail.com>': 0.22; 'separate': 0.22; 'file.': 0.24; 'subject:/': 0.26; 'michael': 0.29; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'code': 0.31; 'that.': 0.31; 'app.': 0.31; 'request,': 0.31; 'file': 0.32; 'something': 0.35; 'test': 0.35; 'received:google.com': 0.35; "i'll": 0.36; 'nov': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'signal': 0.60; 'subject:Fwd': 0.61; 'simple': 0.61; 'save': 0.62; 'here': 0.66; 'calls,': 0.84; 'rework': 0.84; 'wall.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=sU8VGPrd+mQ3QBQ0ZE2O3tM003YxpQQ/983qbBi+pBo=; b=VkcHWlhqSdSvKjyLShgKaqJKh38e56Y1XEu30PPHOvACifS9Vr3n6lOst1UcOGjdSw D8Bn/l5jGOnWfx+YVtN5IiJTSFJ+/8TVARL2luNKYZFazbgScBq7KzSUx6x2gG9RuAyN +m11beAVpqM4WuYnPnbeoT6gNYw+sNozJ/83A0mXAWMWMVu4a5EPMtkkrhjf5PiNCexQ JMBTJzTtIIXOmIiaWsMjdQr+lT9Ds5kh3wZaivP2ORXDHe+jNsK7ar1oYZEolvo8FUbr 6d9h+km4IgAT9BTn8RVwQfND8LEGIJO6wxA72BYSL2a9m19fWJBeyYFBhYjuI/P7ZkhR HQxg== X-Received: by 10.224.121.1 with SMTP id f1mr33797647qar.76.1417089524194; Thu, 27 Nov 2014 03:58:44 -0800 (PST) MIME-Version: 1.0 References: <5473E188.5020608@gmail.com> <5474A333.2090207@mrabarnett.plus.com> <5474C889.5090503@mrabarnett.plus.com> <547545CF.60208@gmail.com> <5476A134.7050407@gmail.com> <5476A48C.1050607@gmail.com> From: Juan Christian Date: Thu, 27 Nov 2014 11:58:42 +0000 Subject: Re: Fwd: Python Signal/Slot + QThred code analysis To: python-list@python.org Content-Type: multipart/alternative; boundary=001a11c1ee24b4a3fc0508d5dd45 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417089532 news.xs4all.nl 2916 [2001:888:2000:d::a6]:33712 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81624 --001a11c1ee24b4a3fc0508d5dd45 Content-Type: text/plain; charset=UTF-8 On Thu Nov 27 2014 at 2:12:40 AM Michael Torrie wrote: Hmm, I hit a wall. There's no main.ui file. Can you rework your code so that you have a single file (plus a separate ui file that's okay), that simulates the url request, that I can execute easily. As you asked, here it's, everything on one module and without network calls, http://pastebin.com/ibS9FSSd The main.ui is a XML, http://pastebin.com/Eq9hNMBX , just save it as main.ui and it will work. I think now you have everything in order to test the app. What I have in mind is simple (I think), have the Outpost get the data using QThread, and when it got everything needed emit a signal. So when I have something like 'var = Outpost('123')', when I get the signal I'll know that I can call 'var.trades, var.posts' and it won't give me NullErrors or something like that. --001a11c1ee24b4a3fc0508d5dd45 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu Nov 27 2014 at 2:12:40 AM Michael Torrie <torriem@gmail.com> wrote:
Hmm, I hit a wall. Ther= e's no main.ui file. Can you rework your code
so that you have a s= ingle file (plus a separate ui file that's okay),
that simulates th= e url request, that I can execute easily.

As you asked, = here it's, everything on one module and without network calls,=C2=A0http://pastebin.com/ibS9FSSd

The main.ui is a XML,=C2=A0http://pastebin.com/Eq9hNMBX , just save it as main.ui an= d it will work. I think now you have everything in order to test the app.

What I have in mind is simple (I think), have the O= utpost get the data using QThread, and when it got everything needed emit a= signal. So when I have something like 'var =3D Outpost('123')&= #39;, when I get the signal I'll know that I can call 'var.trades, = var.posts' and it won't give me NullErrors or something like that.<= /div> --001a11c1ee24b4a3fc0508d5dd45--