up to now this bug only appeas on MAC OS.

if you create a rect without setting the "size"...
rect = g_Player.createNode('rect', {'pos':(10, 10), 'color':'FF0000',  
'fillcolor':'00FF00', 'fillopacity':1.0})

and append it (for example to the parentNode)...
self._parentNode.appendChild(rect)

python will crash.



test code:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from libavg import *

g_Player = avg.Player.get()


class AppTest(AVGApp):
     multitouch = True

     def __init__(self, parentNode):
         super(AppTest, self).__init__(parentNode)

     def init(self):
         mainNode = g_Player.createNode("""
         <div>
             <rect id="bg" size="%s" strokewidth="0"
                 fillcolor="555555" fillopacity="1"/>
         </div>
         """ %self._parentNode.size)
         self._parentNode.appendChild(mainNode)
         rect = g_Player.createNode('rect', {'pos':(10, 10),  
'color':'FF0000', 'fillcolor':'00FF00', 'fillopacity':1.0})
         self._parentNode.appendChild(rect)


if __name__ == '__main__':
     AppTest.start(resolution=(400, 400))

_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to