PythoncadBugTraker item #2856044, was opened at 2009-09-10 16:30
Message generated for change (Comment added) made by matteoboscolo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=2856044&group_id=263167

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bug
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Adrian (adyh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with Dimensions

Initial Comment:
I can't figure out what happens, I'm currently focused on something else so I 
didn't give it too much thought... here goes: after adding a segment and a 
linear dimension to the segment exit the program and the following error 
messages occur:

Traceback (most recent call last):
  File "/home/adrian/Projects/pythoncad/PythonCAD/Generic/message.py", line 
113, in sendMessage
    _method(self, *args)
  File "/home/adrian/Projects/pythoncad/PythonCAD/Interface/Gtk/gtkimage.py", 
line 1293, in __layerRemovedChild
    self.__eraseObject(_child)
  File "/home/adrian/Projects/pythoncad/PythonCAD/Interface/Gtk/gtkimage.py", 
line 1250, in __eraseObject
    obj.erase(self)
  File "/home/adrian/Projects/pythoncad/PythonCAD/Interface/Gtk/gtkinit.py", 
line 1380, in _erase_dim
    self.draw(gimage, gimage.image.getOption('BACKGROUND_COLOR'))
  File "/home/adrian/Projects/pythoncad/PythonCAD/Interface/Gtk/gtkinit.py", 
line 1169, in _draw_ldim
    self._drawDimStrings(gimage, col)
  File "/home/adrian/Projects/pythoncad/PythonCAD/Interface/Gtk/gtkinit.py", 
line 819, in _draw_dimstrings
    _r, _g, _b = _bgcol.getColors()
AttributeError: 'NoneType' object has no attribute 'getColors'
remaining connections for obj: <PythonCAD.Generic.dimension.LinearDimension 
object at 0x966ef2c>
message: change_complete
connected to obj: <PythonCAD.Interface.Gtk.gtkimage.GTKImage object at 
0x95cc56c>
message: refresh
connected to obj: <PythonCAD.Interface.Gtk.gtkimage.GTKImage object at 
0x95cc56c>
message: change_pending
connected to obj: <PythonCAD.Interface.Gtk.gtkimage.GTKImage object at 
0x95cc56c>


----------------------------------------------------------------------

>Comment By: Matteo Boscolo (matteoboscolo)
Date: 2011-01-17 08:09

Message:
R37 bug

----------------------------------------------------------------------

Comment By: Adrian (adyh)
Date: 2009-09-10 18:45

Message:
Well, I haven't done anything special... it's not even using code that I
wrote, it's the old one... I just draw these and get an error... I'm still
working on the paste bug but I'll check this out as soon as that turns out
ok... it seems I've found another issue with dimensions so this is all kind
of slowing me down...

----------------------------------------------------------------------

Comment By: Matteo Boscolo (matteoboscolo)
Date: 2009-09-10 17:01

Message:
May be you have created some entity that  python can't destroy ...
I had a similar problem douring the develop of the two line fillet ...

In my case redefining a segment endpoints I delete a  point of the segment
and at the closing of pythoncad he try to delete the point that i had
olready eleted..

may be is somthing similar.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=2856044&group_id=263167

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Pythoncad-developer mailing list
Pythoncad-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pythoncad-developer

Reply via email to