[PythonCAD] R25 bug

Michele Petrazzo michele.petrazzo at unipex.it
Fri May 27 19:59:20 CEST 2005


I have just download the release 25, and I found these three bugs:

- when I print:
   File 
"/home/michele/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkmenus.py", 
line 320, in file_print_screen_cb
     gtkprinting.print_dialog(gtkimage, _plot)
   File 
"/home/michele/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkprinting.py", 
line 152, in print_dialog
     if isinstance(_size_widget, gtk.ComboBox):
AttributeError: 'module' object has no attribute 'ComboBox'

- into PythonCAD/Interface/Gtk/gtkmodify.py at line 393 there is a 
Truee, not True

- I draw an object (line, circle, etc..), I select move (one of the 
three), I select the first point to move, the second and after I select 
no objects then the program ask me for select an object (I click two 
times into the canvas). After I re-click for the distance (first and 
second point), but now I click over the object, and I receive this error:

   File 
"/home/michele/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkimage.py", 
line 127, in da_general_event
     event, _tool)
   File 
"/home/michele/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkmodify.py", 
line 123, in move_elem_button_press_cb
     move_objects(gtkimage, _objs, tool)
   File 
"/home/michele/PythonCAD-DS1-R25/PythonCAD/Interface/Gtk/gtkmodify.py", 
line 83, in move_objects
     PythonCAD.Generic.move.move_objects(_active_layer, objlist, _dx, _dy)
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/move.py", 
line 341, in move_objects
     _move_segment(layer, _obj, _dx, _dy)
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/move.py", 
line 86, in _move_segment
     layer.addObject(_np1)
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/layer.py", 
line 427, in addObject
     obj.setParent(self)
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/entity.py", 
line 305, in setParent
     Entity.addChild(parent, self)
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/entity.py", 
line 345, in addChild
     self.modified()
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/entity.py", 
line 212, in modified
     self.sendMessage('modified')
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/message.py", 
line 114, in sendMessage
     _method(self, *args)
   File "/home/michele/PythonCAD-DS1-R25/PythonCAD/Generic/image.py", 
line 1019, in _objectModified
     _undo[_i].append((_pid, _oid))
IndexError: list index out of range

Hope this help,
Michele


More information about the PythonCAD mailing list