Closed jwiggins closed 10 years ago
Actually, I get a constraint violation when running the example.
Traceback (most recent call last):
File "volume_renderer.py", line 88, in <module>
main()
File "volume_renderer.py", line 82, in main
show_volume(volume)
File "volume_renderer.py", line 58, in show_volume
win.show()
File "/Users/rkern/git/et/nucleic-enaml/enaml/widgets/window.py", line 416, in show
self.activate_proxy()
File "/Users/rkern/git/et/nucleic-enaml/enaml/widgets/toolkit_object.py", line 213, in activate_proxy
child.activate_proxy()
File "/Users/rkern/git/et/nucleic-enaml/enaml/widgets/toolkit_object.py", line 213, in activate_proxy
child.activate_proxy()
File "/Users/rkern/git/et/nucleic-enaml/enaml/widgets/toolkit_object.py", line 214, in activate_proxy
self.activate_bottom_up()
File "/Users/rkern/git/et/nucleic-enaml/enaml/widgets/toolkit_object.py", line 236, in activate_bottom_up
self.proxy.activate_bottom_up()
File "/Users/rkern/git/et/nucleic-enaml/enaml/qt/qt_toolkit_object.py", line 82, in activate_bottom_up
self.init_layout()
File "/Users/rkern/git/et/nucleic-enaml/enaml/qt/qt_container.py", line 328, in init_layout
self._setup_manager()
File "/Users/rkern/git/et/nucleic-enaml/enaml/qt/qt_container.py", line 522, in _setup_manager
manager.set_items(self._create_layout_items())
File "/Users/rkern/git/et/nucleic-enaml/enaml/layout/layout_manager.py", line 331, in set_items
solver.addConstraint(cn)
kiwisolver.UnsatisfiableConstraint: 1 * height + -0 == 0 | strength = 1.001e+09
:+1: I wasn't getting the constraint error (I'm using Casuarius), but those constraint policies were likely left over from before I added the share_layout = True
.
LGTM.