AttributeError

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AttributeError

tarun14110
Getting below error, what may be the issue ?
​    self.MRMLNodeComboBox_ImportExportNode.setNoneEnabled(self.radioButton_Export.isChecked())
AttributeError: qMRMLNodeComboBox has no attribute named 'setNoneEnabled'​

--
Regards,
Tarun kumar yadav
B.Tech 3rd year (CSE)
Roll no. 2014110

_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ
Reply | Threaded
Open this post in threaded view
|

Re: AttributeError

lasso2

Qt object properties are wrapped in Python as attributes. For example:

comboBox = slicer.qMRMLNodeComboBox()

comboBox.noneEnabled = False

 

Andras

 

From: slicer-devel [mailto:[hidden email]] On Behalf Of Tarun Kumar Yadav
Sent: March 13, 2017 14:42
To: SPL Slicer Devel <[hidden email]>
Subject: [slicer-devel] AttributeError

 

Getting below error, what may be the issue ?

​    self.MRMLNodeComboBox_ImportExportNode.setNoneEnabled(self.radioButton_Export.isChecked())
AttributeError: qMRMLNodeComboBox has no attribute named 'setNoneEnabled'​


--

Regards,

Tarun kumar yadav

B.Tech 3rd year (CSE)

Roll no. 2014110


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ