[PythonCAD] [PATCH] Make 'Save As' work again

Art Haas ahaas at airmail.net
Tue Dec 5 16:46:47 CET 2006


The small patch below fixes the 'Save As' menu. Oops ...

Index: PythonCAD/Interface/Gtk/gtkmenus.py
--- PythonCAD/Interface/Gtk/gtkmenus.py	(revision 2654)
+++ PythonCAD/Interface/Gtk/gtkmenus.py	(revision 2655)
@@ -342,7 +342,7 @@
 def file_save_as_cb(menuitem, gtkimage):
-    _fname = gtkimage.getFilename()
+    _fname = gtkimage.image.getFilename()
     if _fname is None:
         _fname = gtkimage.getWindow().get_title()
     _get_filename_and_save(gtkimage, _fname)

Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822

More information about the PythonCAD mailing list