예제 #1
0
파일: popupmenus.py 프로젝트: gmrigna/abipy
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()
예제 #2
0
 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()
예제 #3
0
파일: popupmenus.py 프로젝트: gmrigna/abipy
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()