Me again,

On 9/18/2015 13:39, Werner wrote:
> Hi Chris,
>
> Another one.
>
> Group.AddObject is missing this line:
> obj._Canvas = self._Canvas
>
> Could it be that this was added to FC after Robin copied things to Phoenix?
It seems that Group is missing a few things which are in 2.9.5 but not 
Phoenix.

__init__ is missing:
         # this one uses a proprty for _Canvas...
         self._Actual_Canvas = None

         for obj in ObjectList:
             self.AddObject(obj, calcBB = False)

And the property stuff for _Canvas is missing:
     ## re-define _Canvas property so that the sub-objects get set up right
     @property
     def _Canvas(self):
         """
         getter for the _Canvas property
         """
         return self._Actual_Canvas
     @_Canvas.setter
     def _Canvas(self, canvas):
         """
         setter for Canvas property
         """
         self._Actual_Canvas = canvas
         for obj in self.ObjectList:
             obj._Canvas = canvas

I guess 2.9.5 is correct and somehow things did not get into Phoenix, 
correct?

Werner
>
> Werner
>
> On 9/18/2015 10:57, Werner wrote:
>> Hi Chris,
>>
>> Found another issue, 'itervalues' has gone in PY3.  Following is my work
>> around, can you think of a nicer way of doing this?
>>
>>                if six.PY2:
>>                    for Event in self._Canvas.HitDict.itervalues():
>>                        try:
>>                            del Event[self.HitColor]
>>                        except KeyError:
>>                            pass
>>                else:
>>                    for Event in self._Canvas.HitDict.values():
>>                        try:
>>                            del Event[self.HitColor]
>>                        except KeyError:
>>                            pass
>>
>>
>> Werner
>> _______________________________________________
>> FloatCanvas mailing list
>> [email protected]
>> http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
>>
> _______________________________________________
> FloatCanvas mailing list
> [email protected]
> http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
>

_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to