开发者

Enthought Traits names limitations?

开发者 https://www.devze.com 2023-03-12 08:02 出处:网络
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/EmbeddingInTra

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

精彩评论

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