I am giving a sample code and the error.

Code:

import pyglet

class Resize(pyglet.window.Window):
    def __init__(self):
        super(Resize, self).__init__()

        self.label = pyglet.text.Label('Resize now', x=10,y=20)
        self.resizable=True

    def on_draw(self):
        self.clear()
        self.label.draw()

if __name__ == '__main__':
    window = Resize()
    pyglet.app.run()

Error:

/usr/bin/python -u  "/home/onur/Desktop/Lessons/OpenGL/size.py"
Traceback (most recent call last):
  File "/home/onur/Desktop/Lessons/OpenGL/size.py", line 15, in <module>
    window = Resize()
  File "/home/onur/Desktop/Lessons/OpenGL/size.py", line 8, in __init__
    self.resizable=True
AttributeError: can't set attribute

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to