Author: ArcRiley
Date: 2008-01-29 00:11:16 +0000 (Tue, 29 Jan 2008)
New Revision: 804
Modified:
trunk/pysoy/examples/shapes.py
trunk/pysoy/src/_core-x11/Window.pxi
Log:
some fixes for icon
Modified: trunk/pysoy/examples/shapes.py
===================================================================
--- trunk/pysoy/examples/shapes.py 2008-01-29 00:10:34 UTC (rev 803)
+++ trunk/pysoy/examples/shapes.py 2008-01-29 00:11:16 UTC (rev 804)
@@ -5,7 +5,9 @@
sce = soy.Scene()
scr = soy.Screen()
-win = soy.Window(scr, 'Mesh shape
test',soy.transports.File('media/pysoy_logo.soy')['gimp'])
+tex = soy.transports.File('media/pysoy_logo.soy')['gimp']
+sleep(.1) # Hold your horses, buddy!
+win = soy.Window(scr, 'Mesh shape test', tex)
cam = soy.bodies.Camera(sce)
cam.position = (0.0, 0.0, 20.0)
lig = soy.bodies.lights.Light(sce)
Modified: trunk/pysoy/src/_core-x11/Window.pxi
===================================================================
--- trunk/pysoy/src/_core-x11/Window.pxi 2008-01-29 00:10:34 UTC (rev
803)
+++ trunk/pysoy/src/_core-x11/Window.pxi 2008-01-29 00:11:16 UTC (rev
804)
@@ -260,7 +260,7 @@
raise TypeError('not a Texture')
if (<soy.textures.Texture> value)._depth != 1 :
raise TypeError('texture must not be 3 dimensional')
- if (<soy.textures.Texture> value)._chan != 3 :
+ if (<soy.textures.Texture> value)._chans != 3 :
raise TypeError('texture must be RGB format')
self._icon = value
ximage_buffer = glx.XCreateImage(_display,
self._screen._xVisualInfo.visual,
_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn