I have two class, it is child class of HasTraits. this case:
view =View(
VGroup(
HGroup(
Label(u' '),
Item(
"bt_import", label=' '
),
Item(
"bt_export", label=' '
),
show_left=False
),
HGroup(
Label(u' '),
Item(
"signalplot",
editor=ComponentEditor(size=(600, 300)),
show_label=False
),
Label(u' '),
),
HGroup(
Label(u' '),
Item(
"spectrumplot",
editor=ComponentEditor(size=(600, 300)),
show_label=False
),
Label(u' '),
),
),
width=600,
height=800,
resizable=False,
title=u"FFT 过滤"
)
In here, I will put two class. signalplot<-signal class and spectrumplot<-spectrum class two class:
class Signal(HasTraits):
view = View()
.......
class Spectrum(HasTraits):
view = View()
.......
This case, How to make two class? and How to put two class in interface?