Re: per instance descriptors

2006-12-07 Thread Simon Bunker
Carl Banks wrote: > Simon Bunker wrote: > >>Hi I have code similar to this: >> >>class Input(object): >> >> def __init__(self, val): >> self.value = val >> >> def __get__(self, obj, objtype): >> return self.value

Re: per instance descriptors

2006-12-07 Thread Simon Bunker
George Sakkis wrote: > [EMAIL PROTECTED] wrote: > > >>George Sakkis wrote: >> >>>Simon Bunker wrote: >>> >>> >>>>Hi I have code similar to this: >>>> >>>>class Input(object): >>>> >>>

per instance descriptors

2006-12-06 Thread Simon Bunker
Hi I have code similar to this: class Input(object): def __init__(self, val): self.value = val def __get__(self, obj, objtype): return self.value def __set__(self, obj, val): # do some checking... only accept floats etc self.value = val class

Python and GLSL

2006-05-16 Thread Simon Bunker
Hi I was wondering if there is a Python module for running GLSL (OpenGL shader language) in OpenGL through Python. I think that Cg is available through PyCg - most likely using PyGame for the OpenGL. Has anyone done this with GLSL shaders? thanks Simon -- http://mail.python.org/mailman/list