Comments (5)
Sounds like a PySide bug. Can you test on PyQt and confirm?
from enaml.
Indeed, this does seem to work with PyQt.
from enaml.
Thanks. Marking as PySide bug.
from enaml.
Message box doesn't work with PySide2
Simply using message box leads to error with PySide2:
from enaml.stdlib.message_box import information
...
triggered ::
information(self, "Testing",
("If you see this then presumably PySide-Enaml bug was patched.\n" +
"But it still can be broken if Python hangs after pressing OK.")
)
...
Error:
Traceback (most recent call last):
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\qt\qt_action.py", line 79, in on_triggered
self.declaration.triggered(checked)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\core\declarative_meta.py", line 68, in declarative_change_handler
engine.write(owner, change['name'], change)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\core\expression_engine.py", line 217, in write
pair.writer(owner, name, change)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\core\standard_handlers.py", line 82, in __call__
call_func(func, (), {}, scope)
File "C:\PyCharmProjects\enaml_video\enaml_video_view.enaml", line 51, in f
)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\stdlib\message_box.enaml", line 148, in information
return _exec_box(parent, title, text, buttons, 'information')
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\stdlib\message_box.enaml", line 305, in _exec_box
box.set_parent(parent)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\core\object.py", line 160, in set_parent
parent.child_added(self)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\widgets\toolkit_object.py", line 185, in child_added
child.activate_proxy()
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\widgets\toolkit_object.py", line 210, in activate_proxy
self.activate_top_down()
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\widgets\toolkit_object.py", line 226, in activate_top_down
self.proxy.activate_top_down()
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\qt\qt_toolkit_object.py", line 75, in activate_top_down
self.create_widget()
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\qt\qt_dialog.py", line 72, in create_widget
self.widget = QWindowDialog(self, self.parent_widget(), flags)
File "C:\Miniconda3\envs\enaml\lib\site-packages\enaml\qt\qt_dialog.py", line 41, in __init__
super(QWindowDialog, self).__init__(parent, flags)
TypeError: 'PySide2.QtWidgets.QDialog' called with wrong argument types:
PySide2.QtWidgets.QDialog(PySide2.QtWidgets.QAction, PySide2.QtCore.Qt.WindowType)
Supported signatures:
PySide2.QtWidgets.QDialog(PySide2.QtWidgets.QWidget = nullptr, PySide2.QtCore.Qt.WindowFlags = Qt.WindowFlags())
Process finished with exit code 0
Presumably now it's worth investigations as PySide2 was added to pypi. I installed PySide2-5.11.1 from pip (pip install pyside2
+ delete qt.conf
if it's near python.exe
).
Related issue about work arounds for this bug stopped working with PySide1. But I didn't test them with PySide2 because I'm more interested in upstream solution rather than a work around.
from enaml.
Indeed this is new I believe. I will try to investigate but I do not know when I will find time to do so.
from enaml.
Related Issues (20)
- Mechanism to provide custom size hints HOT 9
- Dock Area resource file needs to be fixed for Qt6 HOT 2
- Tracking issue for Qt6 bugs HOT 3
- Can the expression engine provide context for errors somehow? HOT 3
- PopupView positions incorrectly with multiple displays HOT 4
- Tutorials are incomplete HOT 5
- Generate .pyi files for enaml files
- [DOC] How to change mouse cursor to "busy" state and back ? HOT 6
- [DOC] How to use async/await function in Enaml ? HOT 7
- [DOC] Similar projects
- Inheritance behaviour is broken with atom 0.9.0 HOT 1
- [FEAT] wxWidgets instead of Qt HOT 6
- TypeError when using try/except with "as" in Enaml code HOT 4
- Generating metadata for package enaml produced metadata for project name unknown HOT 5
- [DOC] What's the way to get a dynamic "spreadsheet" like view HOT 4
- [BUG] Upgrading from 0.15.2 to 0.16.x goes boom, boom, boom HOT 9
- SyntaxError does not always show line generating the error HOT 3
- SVGImageView addition HOT 3
- Shouldn't Object parent and ProxyToolkitObject declaration be using atomref? HOT 2
- Member index messed up with latest atom & enaml? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enaml.