objects.gui.pictureSaverDialog.pictureSaverDialog Class Reference

This class simply displays a "Save As" dialog, allowing the user to save the current ScreenShot to file. More...

List of all members.

Public Member Functions

def __init__


Detailed Description

This class simply displays a "Save As" dialog, allowing the user to save the current ScreenShot to file.

Definition at line 24 of file pictureSaverDialog.py.


Member Function Documentation

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         
        


The documentation for this class was generated from the following file:

Generated on Mon Mar 30 00:26:32 2009 for EyeSpy by  doxygen 1.5.8