Hi Joseph,

I think you need to add a default value to your option, which you can do like this:

|python_box = self.create_checkbox(_("Use colors"),'use_colors', default=True)|

Cheers,
Carlos

El 14/10/13 15:34, Joseph Martinot-Lagarde escribió:
I created a plugin to incle line_profiler into spyder's interface : https://github.com/Nodd/spyder_line_profiler

I have a small issue and I'm not sure if it is a spyder bug or a bug in my plugin. I have a checkbox settings linked to a 'use_colors' boolean settings. At first launch when I ask for the value of this setting, I get an Exception "|ConfigParser.NoOptionError: No option 'use_colors' in section: 'lineprofiler'". If I open and close the preference window, the error disappears.

I have almost the same code as the pylint plugin for the configuration, so I don't see where the problem ||could be. Am I supposed to register the setting somehow ? Or catch the exception and set a default value as I did (but there's already a default value in the config page so it seems strange) ? |
--
You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to