-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QLabel broken with PySide 6.7.0 #547
Comments
Seems like a bug in PySide. QContainer inherits QWidget, so the first
supported signature should match.
…On Fri, Apr 12, 2024 at 5:27 PM Brad Buran ***@***.***> wrote:
A fresh checkout of enaml with pip install enaml[qt6-pyside] pulls in
PySide 6.7.0. Running enaml-run enaml/examples/widgets/field.enaml gives
the following stacktrace:
(dbtx-ep) C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\examples\widgets>enaml-run field.enaml
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\bburan\anaconda3\envs\dbtx-ep\Scripts\enaml-run.exe\__main__.py", line 7, in <module>
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\runner.py", line 69, in main
window.show()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\widgets\window.py", line 382, in show
self.activate_proxy()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\widgets\toolkit_object.py", line 213, in activate_proxy
child.activate_proxy()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\widgets\toolkit_object.py", line 213, in activate_proxy
child.activate_proxy()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\widgets\toolkit_object.py", line 210, in activate_proxy
self.activate_top_down()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\widgets\toolkit_object.py", line 226, in activate_top_down
self.proxy.activate_top_down()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\qt\qt_toolkit_object.py", line 73, in activate_top_down
self.create_widget()
File "C:\Users\bburan\projects\consulting\Decibel\dbtx-ep\src\enaml\enaml\qt\qt_label.py", line 47, in create_widget
self.widget = QLabel(self.parent_widget())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'PySide6.QtWidgets.QLabel.__init__' called with wrong argument types:
PySide6.QtWidgets.QLabel.__init__(QContainer)
Supported signatures:
PySide6.QtWidgets.QLabel.__init__(Optional[PySide6.QtWidgets.QWidget] = None, PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))
PySide6.QtWidgets.QLabel.__init__(str, Optional[PySide6.QtWidgets.QWidget] = None, PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags))
—
Reply to this email directly, view it on GitHub
<#547>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABBQSII3NE74NXS66K2Z7LY5BNTTAVCNFSM6AAAAABGE3YKXCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DCMBWGQZTMNI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes, makes sense. I will close this issue and notify the PySide devs. |
Thanks @bburan |
For reference, this is the core issue. spyder-ide/qtpy#480 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A fresh checkout of
enaml
withpip install enaml[qt6-pyside]
pulls in PySide 6.7.0. Runningenaml-run enaml/examples/widgets/field.enaml
gives the following stacktrace:The text was updated successfully, but these errors were encountered: