from threading import Thread # Print a list of all attributes available for a given # simics config object def list_attributes(obj): for attr in obj.attributes: print attr[0], "---", attr[2] # wx.Frame running its app loop in a dedicated thread # # -> derive additional Simics windows from this class to # start them up from the CLI window and return to it # afterwards class ThreadedWindow(Thread): def __init__(self): Thread.__init__(self) def show(self): self.start() def run(self): self.frame.Show(True) self.app.MainLoop()