[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: QStandardPaths.AppLocalDataLocation missing in PyQt6?
From:       Marko Luther <marko.luther () gmx ! net>
Date:       2021-08-26 17:27:36
Message-ID: F62C26FD-974B-4824-9CC3-E4929675042F () gmx ! net
[Download RAW message or body]

>>> from PyQt6.QtCore import QStandardPaths
>>> QStandardPaths.StandardLocation.AppLocalDataLocation
<StandardLocation.AppLocalDataLocation: 9>

Got it now. 

Sorry for the noise and thanks for the quick reply,
Marko

> On 26. Aug 2021, at 19:21, Phil Thompson <phil@riverbankcomputing.com> wrote:
> 
> On 26/08/2021 18:16, Marko Luther wrote:
>> Dear Phil,
>> is AppLocalDataLocation no longer exported from QStandardPaths on
>> PyQt6? I am using PyQt 6.1.1 from pip.
>>>>> from PyQt6.QtCore import QStandardPaths
>>>>> QStandardPaths.AppLocalDataLocation
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>> AttributeError: type object 'QStandardPaths' has no attribute
>> 'AppLocalDataLocation'
> 
> Enum members must be fully qualified in PyQt6.
> 
> Phil

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic