You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just updated to atom/enaml (0.10.2, 0.16.1) and stared getting nonsensical errors.
Traced it to when an attribute overrides an existing attribute.
For example:
fromenaml.core.apiimportConditional, Looperfromenaml.widgets.apiimportWindow, Container, LabelenamldefErrorContainer(Container): container:
attrerrors: list= []
Looper:
iterable<<container.errorsLabel:
text=loop.itemenamldefCustomContainer(ErrorContainer):
attrerrors: list= [] # Works fine if this is commented outLabel:
text="Bar"enamldefMain(Window): window:
CustomContainer:
pass
WTF ???
$ enaml-run tests/example.enaml
Traceback (most recent call last):
File "/home/test/micormamba/envs/test/bin/enaml-run", line 8, in <module>
sys.exit(main())
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/runner.py", line 69, in main
window.show()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/widgets/window.py", line 382, in showself.activate_proxy()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/widgets/toolkit_object.py", line 213, in activate_proxy
child.activate_proxy()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/widgets/toolkit_object.py", line 214, in activate_proxyself.activate_bottom_up()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/widgets/toolkit_object.py", line 236, in activate_bottom_upself.proxy.activate_bottom_up()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/qt/qt_toolkit_object.py", line 80, in activate_bottom_upself.init_layout()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/qt/qt_container.py", line 337, in init_layoutself._setup_manager()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/qt/qt_container.py", line 541, in _setup_manager
manager.set_items(self._create_layout_items())
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/layout/layout_manager.py", line 309, in set_items
hc = root.hard_constraints()
File "/home/test/micormamba/envs/test/lib/python3.10/site-packages/enaml/layout/layout_manager.py", line 55, in hard_constraintsreturn [d.left >=0, d.top >=0, d.width >=0, d.height >=0]
TypeError: '>=' not supported between instances of 'list' and 'int'
It seems like the member index is messed up somehow.
The text was updated successfully, but these errors were encountered:
I just updated to atom/enaml (0.10.2, 0.16.1) and stared getting nonsensical errors.
Traced it to when an attribute overrides an existing attribute.
For example:
WTF ???
It seems like the member index is messed up somehow.
The text was updated successfully, but these errors were encountered: