mattions / neuronvisio

A Graphical User Interface with 3D Visualization features for NEURON simulation enviroment
https://neuronvisio.readthedocs.io
Other
30 stars 15 forks source link

Plot3D button in Controls fails #45

Closed theiera closed 12 years ago

theiera commented 12 years ago

Configuration: python2.6 py26-pyqt4.9.0

Error message: Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/neuronvisio/controls.py", line 311, in launch_visio self.visio = Visio(self.ui.sec_info_label, self.manager) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/neuronvisio/visio.py", line 118, in init self.mayavi = MayaviQWidget(container) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/neuronvisio/visio.py", line 77, in init layout.setMargin(0) AttributeError: 'PySide.QtGui.QVBoxLayout' object has no attribute 'setMargin'

Related info: (http://bugs.pyside.org/show_bug.cgi?id=905) A bit of google-foo shows me that this was declared to be obsolete after Qt4.3 (line 2463 of http://qt.gitorious.org/pyside/hugopl-pyside-shiboken/blobs/44af04703081f529c433f0fbc5229e9e0d12304f/PySide/QtGui/typesystem_gui_common.xml)

mattions commented 12 years ago

This is due to code taken from the mayavi Doc:

https://github.com/mattions/neuronvisio/blob/master/neuronvisio/visio.py#L77

We should find which is the new way to setMargin