¡@

Home 

python Programming Glossary: self.double_buffer

Drawing in PyGobject (python3)

http://stackoverflow.com/questions/10270795/drawing-in-pygobject-python3

self.window go 'window' # Create buffer self.double_buffer None # Connect signals self.builder.connect_signals self # Everything.. def draw_something self Draw something into the buffer db self.double_buffer if db is not None # Create cairo context with double buffer.. self widget cr Throw double buffer into widget drawable if self.double_buffer is not None cr.set_source_surface self.double_buffer 0.0 0.0..