def showNcdumpMessage(parent, filepath): """Open a dialog with the output of ncdump.""" title = "ncdump output for file %s" % filepath text = NcDumper().dump(filepath) # TODO: Get a decent wxpython editor somewhere #SimpleTextViewer(parent, text, title=title).Show() MyEditorFrame.from_text(parent, text, title=title).Show()
def OnNetcdf_NcDump(self, event): """Call ncdump and show results in a dialog.""" for path in self.nc_filepaths: s = NcDumper().dump(path) caption = "ncdump output for %s" % path wxdg.ScrolledMessageDialog(self, s, caption=caption, style=wx.MAXIMIZE_BOX).Show()
def openWxncview(parent, filepath): """Open a dialog with the output of ncdump.""" title = "wxncview: %s" % filepath text = NcDumper().dump(filepath) NcViewerFrame(parent, filepath, title=title).Show()