Re: [Pgu-devel] container.paint(): Button not in App
Status: Beta
Brought to you by:
philhassey
|
From: Mike W. <mw...@wi...> - 2006-04-13 03:58:36
|
The problem is the OPENGL setting in pygame.display.set_mode(). Does
PGU not support OpenGL? I was hoping to use PGU to render a GUI on top
of my PyOpenGL scene.
> I'm getting this error when I call the paint() method of my App() method:
>
> container.paint(): Button not in App
> 800 600 <rect(0, 0, 800, 600)>
>
> Here is a code snippet:
>
> import pygame, pgu
> from pygame import *
> from pgu import gui
>
> pygame.init()
> screen = pygame.display.set_mode( (800, 600), DOUBLEBUF | OPENGL )
> app = gui.App()
> app.init( gui.Button("Button #1"), screen )
>
> while True:
> for e in pygame.event.get():
> if e.type == QUIT:
> break;
> app.paint(screen)
> pygame.display.flip()
>
> Thoughts?
>
> - Mike
>
|