Re: TypeError: setLayoutDirection(self, Qt.LayoutDirection): argument 1 has unexpected type 'ProxyMetaclass'

Phil Thompson <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
On 04/08/2019 03:04, Kyle Altendorf wrote:
> While reworking my code to correct the errors related to my previous
> message I ran into another exception loading .ui files.  This one
> doesn't seem to be related to 3.7.4 specifically and I ran my test all
> the way back to pyqt5.8 with the latest micro for each minor version
> failing.
> 
> Code and output at:
>     https://gist.github.com/altendky/151ddfdab48d566330a2ad8099229153
> 
> The traceback ends up at:
>       File
> "/home/altendky/tmp/venv3.7.4/lib/python3.7/site-packages/PyQt5/uic/properties.py",
> line 417, in setProperties
>         getattr(widget, 'set%s%s' % (ascii_upper(prop_name[0]),
> prop_name[1:]))(prop_value)
>     TypeError: setLayoutDirection(self, Qt.LayoutDirection): argument
> 1 has unexpected type 'ProxyMetaclass'

Putting everything in the one script is probably causing problems, ie. 
the script that loads the UI also defines the custom widget which means 
the script is run twice (and maybe it would recurse if there was no 
exception).

Phil
_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.