[PyQt] how does qApp work in Python? (was Re: from PyQt5.Qt import *)
Christian Tismer
tismer at stackless.com
Thu Jun 28 16:23:22 BST 2018
On 28.06.18 15:42, Christian Tismer wrote:
> On 28.06.18 14:52, Kyle Altendorf wrote:
>> On 2018-06-28 08:37, Christian Tismer wrote:
>>> There is just a single exception that I built explicitly
>>> into our new PySide2 version:
>>>
>>> It allows to write "from PySide2 import *".
>>
>> Since this just came up recently in #pyqt, how do you handle qApp? Same
>> question for PyQt actually. It didn't seem to be working as expected.
>> I also wouldn't expect it to work with the * imports in any case.
Addendum:
Yes, it works with (and without) "from PySide2 import *" because that
is unrelated:
Things which are added to __builtins__ are always found without
any extra import. It is sufficient to import any PySide2 module.
Cheers -- Chris
--
Christian Tismer-Sperling :^) tismer at stackless.com
Software Consulting : http://www.stackless.com/
Karl-Liebknecht-Str. 121 : http://pyside.org
14482 Potsdam : GPG key -> 0xE7301150FB7BEE0E
phone +49 173 24 18 776 fax +49 (30) 700143-0023
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 522 bytes
Desc: OpenPGP digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180628/54096bf4/attachment-0001.sig>
More information about the PyQt
mailing list