Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81162
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:file': 0.07; 'variables': 0.07; 'classes.': 0.09; 'lines:': 0.09; 'sake': 0.09; 'statements': 0.09; 'subject:How': 0.10; 'anyway': 0.14; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'namespace.': 0.16; 'normally,': 0.16; 'preserving': 0.16; 'pyqt,': 0.16; 'subject:access': 0.16; 'modification': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'example': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'either.': 0.24; 'example.': 0.24; "i've": 0.25; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; 'michael': 0.29; 'skip:p 30': 0.29; 'code': 0.31; 'run': 0.32; 'minimal': 0.33; 'subject:from': 0.34; 'c++': 0.36; 'subject:?': 0.36; 'should': 0.36; 'being': 0.38; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'believe': 0.68; 'do:': 0.91 |
| X-Virus-Scanned | amavisd-new at torriefamily.org |
| Date | Thu, 20 Nov 2014 20:15:23 -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> <546EAC1E.1000602@gmail.com> |
| In-Reply-To | <546EAC1E.1000602@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| 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.16078.1416539730.18130.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416539730 news.xs4all.nl 2844 [2001:888:2000:d::a6]:50110 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81162 |
Show key headers only | View raw
On 11/20/2014 08:06 PM, Michael Torrie wrote: > anyway I've attached the working example. Just a little caveat. This code is not my original code. I would not do certain things that I just noticed, like these lines: from PyQt4.QtCore import * I would never do that normally, and recommend that you don't either. I might do: import PyQt4.QtCore as QtCore for the sake of brevity while preserving the namespace. Also, while PyQt, being a binding to a C++ library uses camelCase, I would not use it for my own variables and classes. I prefer pep8_compliant_variable_names. Also I note you are using PySide. I believe this example should run with minimal modification to the import statements on PySide
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to access Qt components loaded from file? Michael Torrie <torriem@gmail.com> - 2014-11-20 20:15 -0700
csiph-web