Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81162
| Date | 2014-11-20 20:15 -0700 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16078.1416539730.18130.python-list@python.org> (permalink) |
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