开发者

Enthought Traits names limitations?

I ran into a weird problem while trying to build a Traits GUI that relies on Matplotlib. To summarize it: if, in the example here: http://www.scipy.org/Cook开发者_StackOverflow中文版book/EmbeddingInTraitsGUI, if I replace everywhere the name of the "figure" trait (which, I thought, was just a property I could name the way I want) by, e.g., "figu", I get the following error: "An error occured creating a custom editor. Please contact the developer."

Am I doing something wrong, or is that limitation documented somewhere?

Thanks in advance.


Did you remember to change the line in the MakePlot function from

fig = editor.object.figure

to

fig = editor.object.figu
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜