import pygtk pygtk.require('2.0') import gtk import gtk.glade from net.Lliurex.Mixer.Core import * class SourceMenuWidget(gtk.Frame): def __init__(self,name,count): super(SourceMenuWidget,self).__init__(name) print("[SourceMenuWidget] Init") self.show() self.set_border_width(6) #def __init__ #class SourceMenuWidget class MainWindow: def __init__(self,core): self.window=gtk.Window() self.window.resize(640,480) self.window.connect("destroy", self.destroy) # self.frame=SourceMenuWidget("test",2) self.hbox=gtk.HBox() self.window.add(self.hbox) # self.hbox.add(self.frame) self.core=core enum_list=[] self.frame_list=[] enum_list=core.acm.get_enums(0) for str in enum_list: frame=SourceMenuWidget(str,0) self.frame_list.append(frame) self.hbox.add(frame) self.window.show_all() #def __init__ def destroy(self,data): gtk.main_quit() #def destroy # class MainWindow