Skip to content

Commit

Permalink
Added save panel to cocoaagg. Sent to me by bwark@u.washington.edu.
Browse files Browse the repository at this point in the history
Added setupegg.py to the manifest.

svn path=/trunk/matplotlib/; revision=2097
  • Loading branch information
cmoad committed Feb 27, 2006
1 parent 48bd724 commit d923135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include API_CHANGES CHANGELOG KNOWN_BUGS INSTALL NUMARRAY_ISSUES
include INTERACTIVE TODO
include Makefile MANIFEST.in MANIFEST
include matplotlibrc.template matplotlibrc
include __init__.py setupext.py setup.py makeswig.py
include __init__.py setupext.py setup.py setupegg.py makeswig.py
include examples/data/*
include lib/matplotlib/toolkits
include images/*
Expand Down
4 changes: 3 additions & 1 deletion lib/matplotlib/backends/backend_cocoaagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def windowShouldClose_(self, sender):
return objc.YES

def saveFigure_(self, sender):
print >>sys.stderr, 'Not Implented Yet'
p = NSSavePanel.savePanel()
if(p.runModal() == NSFileHandlingPanelOKButton):
self.canvas.print_figure(p.filename())

def printFigure_(self, sender):
op = NSPrintOperation.printOperationWithView_(self.plotView)
Expand Down

0 comments on commit d923135

Please sign in to comment.