[PythonCAD] Patch for DS1-R25 bugs
Art Haas
ahaas at airmail.net
Thu Jun 2 23:09:24 CEST 2005
Hi.
I'm going to post this patch to the website as well as the mailing list.
The patch contains two trivial fixes for the twenty-fifth releases.
Index: PythonCAD/Interface/Gtk/gtkmodify.py
===================================================================
--- PythonCAD/Interface/Gtk/gtkmodify.py (.../tags/DS1-R25) (revision 1865)
+++ PythonCAD/Interface/Gtk/gtkmodify.py (.../trunk) (revision 1865)
@@ -390,7 +390,7 @@
gtkimage.setPrompt("Select the points to move.")
# tool.delHandler("entry_event")
tool.setHandler("button_press", stretch_elem_button_press_cb)
- return Truee
+ return True
def stretch_horizontal_init(tool):
tool.initialize()
Index: PythonCAD/Interface/Gtk/gtkprinting.py
===================================================================
--- PythonCAD/Interface/Gtk/gtkprinting.py (.../tags/DS1-R25) (revision 1865)
+++ PythonCAD/Interface/Gtk/gtkprinting.py (.../trunk) (revision 1865)
@@ -149,7 +149,7 @@
plot.invertWhite(_icb.get_active())
plot.setLandscapeMode(_lcb.get_active())
plot.getPlotData()
- if isinstance(_size_widget, gtk.ComboBox):
+ if hasattr(gtk, 'ComboBox') and isinstance(_size_widget, gtk.ComboBox):
_idx = _size_widget.get_active()
elif isinstance(_size_widget, gtk.OptionMenu):
_idx = _sizewidget.get_history()
--
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