Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81161

Re: How to access Qt components loaded from file?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'filename:fname piece:py': 0.07; 'method.': 0.07; 'subject:file': 0.07; 'sys': 0.07; '__name__': 0.09; 'finished.': 0.09; 'okay': 0.09; 'second.': 0.09; 'tutorials,': 0.09; 'subject:How': 0.10; 'def': 0.12; 'gui': 0.12; 'anyway': 0.14; 'thread': 0.14; 'books': 0.15; "'__main__':": 0.16; '(self):': 0.16; 'arbitrarily': 0.16; 'emits': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'self.layout': 0.16; 'subject:access': 0.16; 'terminate.': 0.16; 'true:': 0.16; 'skip:# 20': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'app': 0.19; 'basically': 0.19; 'finished': 0.19; 'seems': 0.21; 'example': 0.22; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'example.': 0.24; 'tells': 0.24; 'why.': 0.24; 'connected': 0.24; "i've": 0.25; 'handling': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'code': 0.31; "skip:' 10": 0.31; 'apparently': 0.31; 'doc': 0.31; 'second,': 0.31; 'skip:q 20': 0.31; 'update.': 0.31; 'class': 0.32; 'run': 0.32; 'quite': 0.32; 'skip:_ 10': 0.34; 'subject:from': 0.34; 'could': 0.34; "can't": 0.35; 'skip:s 30': 0.35; 'something': 0.35; 'but': 0.35; 'google': 0.35; 'false': 0.36; 'skip:s 60': 0.36; 'doing': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'so,': 0.37; 'turn': 0.37; 'list': 0.37; 'christian': 0.38; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'moving': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'signal': 0.60; 'entire': 0.61; 'took': 0.61; 'complete': 0.62; 'name': 0.63; 'soon': 0.63; 'our': 0.64; 'managing': 0.66; 'partially': 0.84; 'tricky': 0.84; 'functioning.': 0.91
X-Virus-Scanned amavisd-new at torriefamily.org
Date Thu, 20 Nov 2014 20:06:06 -0700
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11
MIME-Version 1.0
To python-list@python.org
Subject Re: How to access Qt components loaded from file?
References <CAAp0bGvE_4gONgiAOjW7K2XNY7cUJz5xPB7o9rGdGS=BXCwHCQ@mail.gmail.com> <546B3FE4.3050204@telenet.be> <CAAp0bGuNzkfFsPK2WFpPv3jHsdTBUrL+VAVQQYMAmva9nAMWfg@mail.gmail.com>
In-Reply-To <CAAp0bGuNzkfFsPK2WFpPv3jHsdTBUrL+VAVQQYMAmva9nAMWfg@mail.gmail.com>
Content-Type multipart/mixed; boundary="------------070808060104070907090003"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16077.1416539178.18130.python-list@python.org> (permalink)
Lines 122
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416539178 news.xs4all.nl 2840 [2001:888:2000:d::a6]:45972
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81161

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 11/20/2014 01:25 PM, Juan Christian wrote:
> **Back to the list
> 
> So, as I said the PyQt doc is using C o.0
> 
> Yes, I read the tutorials, I'll google for some books and things related.

Okay so I took a long look at the example code that was on stackoverflow
and figured it out.  It's not quite as complete as I thought, and it's
only partially functioning.  I rewrote it to function a little better.
Hopefully it will give you an example.  Working with QThread and then
moving the worker object to that thread is apparently the recommended
way of doing it, but it makes signal handling a two-stage affair.
Basically the worker thread has to notify Qthread that it's finished
using a finished signal which has to be connected to the QThread's
quit() method.  That in turn emits its own finished signal which the GUI
can trap.  It seems a bit convoluted to me.

anyway I've attached the working example.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to access Qt components loaded from file? Michael Torrie <torriem@gmail.com> - 2014-11-20 20:06 -0700

csiph-web