Discussion:
pass some objects in a guidata dialog box ?
waxs MOMAC
2013-01-30 16:41:40 UTC
Permalink
How is it possible to pass some objects in a guidata dialog box :
In the following example I have this error :
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\pySAXS\guisaxs\qt\testGuidata.py",
line 27, in <module>
param2.edit()
File "C:\Python27\lib\site-packages\guidata\dataset\datatypes.py", line
725, in edit
win = DataSetEditDialog(self, icon=self.__icon, parent=parent,
AttributeError: 'Processing2' object has no attribute '_DataSet__icon'


Example code :
import guidata

import guidata.dataset.datatypes as dt
import guidata.dataset.dataitems as di

class Processing2(dt.DataSet):
"""Example"""
def __init__(self,value1=1,value2=2):
a = di.FloatItem("Parameter #1", default=value1)
b = di.IntItem("Parameter #2", min=0, max=10, default=value2)


if __name__ == "__main__":
# Create QApplication
import guidata
_app = guidata.qapplication()

param2=Processing2(1.5,2.5)
param2.edit()
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
waxs MOMAC
2013-01-30 16:45:42 UTC
Permalink
Sorry, there was a previous answer...
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...