Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 262951 Details for
Bug 389431
App stuck on first run
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Stuck example application
bug.py (text/x-python), 1.37 KB, created by
Alexey Kuznetsov
on 2007-11-18 15:33:23 UTC
(
hide
)
Description:
Stuck example application
Filename:
MIME Type:
Creator:
Alexey Kuznetsov
Created:
2007-11-18 15:33:23 UTC
Size:
1.37 KB
patch
obsolete
>#!/usr/bin/env python2.3 ># * 3-D gear wheels. This program is in the public domain. ># * Brian Paul ># * Conversion to GLUT by Mark J. Kilgard ># conversion to Python using PyOpenGL with frame rates ala glxgears ># Peter Barth > >from OpenGL.GL import * >from OpenGL.GLUT import * >import sys, time >import gtk >import gtk.gtkgl > >import string >import gtk >import gobject >import sys >import os >import math >import threading >import cairo > >class Triangle(gtk.DrawingArea): > > def __init__(self): > gtk.DrawingArea.__init__(self) > > glconfig = gtk.gdkgl.Config (mode = gtk.gdkgl.MODE_RGBA | gtk.gdkgl.MODE_DOUBLE) > gtk.gtkgl.widget_set_gl_capability (self, glconfig) > > self.connect("expose_event",self.on_expose) > self.connect("realize",self.on_init) > > def on_init(self,event): > self.beginGL() > self.endGL() > > def beginGL(self): > glDrawable = gtk.gtkgl.widget_get_gl_drawable(self) > glContext = gtk.gtkgl.widget_get_gl_context(self) > > glDrawable.gl_begin(glContext) > > def endGL(self): > glDrawable = gtk.gtkgl.widget_get_gl_drawable(self) > glDrawable.gl_end() > > def on_expose(self,widget,event): > > gtk.main_quit() > >if (__name__ == "__main__"): > > trig=Triangle() > > w = gtk.Window() > w.set_size_request(0,0) > w.set_decorated(False) > w.add(trig) > w.show_all() > gtk.main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 389431
: 262951