Public Member Functions | |
| def | __init__ |
Definition at line 24 of file pictureSaverDialog.py.
| def objects.gui.pictureSaverDialog.pictureSaverDialog.__init__ | ( | self, | ||
| parent, | ||||
| fig | ||||
| ) |
Definition at line 25 of file pictureSaverDialog.py.
00025 : 00026 00027 if fig == None: 00028 logger.log(__name__ + ": Could not save image, because supplied picture object is None") 00029 return 00030 00031 dlg = wx.FileDialog(parent, "Save Screenshot as ...", "\\", "screenshot.png", "Portable Network Graphics (*.png)|*.png", style=wx.SAVE|wx.OVERWRITE_PROMPT) 00032 00033 if dlg.ShowModal() == wx.ID_OK: 00034 path = dlg.GetPath() 00035 fig.savefig(path, orientation='landscape') 00036 00037 00038 00039 00040
1.5.8