self.SetAutoLayout(True)
vbox.Fit(self)
self.SetAutoLayout(True)
vbox.Fit(self)
+ def shutdown(self):
+ try:
+ self.gui.shutdown()
+ except AttributeError:
+ pass
#
# Top-level window frame with menu and status bars.
#
# Top-level window frame with menu and status bars.
self.top_block.start()
def OnCloseWindow(self, event):
self.top_block.start()
def OnCloseWindow(self, event):
+ # Give user API a chance to do something
+ self.panel.shutdown()
+
+ # Stop flowgraph as a convenience
self.SetStatusText("Ensuring flowgraph has completed before exiting...")
if self.top_block is not None:
self.top_block.stop()
self.SetStatusText("Ensuring flowgraph has completed before exiting...")
if self.top_block is not None:
self.top_block.stop()