It seems that these problems are in fact unrelated. The empty window comes from ui/excepthook being broken for reasons unknown to me. The cause of those Program errors seem to be the use of context.reset_clip(), which now requires parameters. It seems, that this patch fixes the problems:
It seems that these problems are in fact unrelated. The empty window comes from ui/excepthook being broken for reasons unknown to me. The cause of those Program errors seem to be the use of context. reset_clip( ), which now requires parameters. It seems, that this patch fixes the problems:
=== modified file 'pybridge/ ui/__init_ _.py' ui/__init_ _.py 2009-12-13 14:49:27 +0000 ui/__init_ _.py 2010-05-25 18:52:54 +0000
--- pybridge/
+++ pybridge/
@@ -45,7 +45,7 @@
# Set exception hook to display error dialog.
import sys
from excepthook import excepthook
- sys.excepthook = excepthook
+ #sys.excepthook = excepthook
from manager import wm
from window_main import WindowMain
=== modified file 'pybridge/ ui/canvas. py' ui/canvas. py 2007-07-12 15:44:44 +0000 ui/canvas. py 2010-05-25 19:04:45 +0000 self.backing)
context. rectangle( x, y, width, height)
context. clip() # Set clip region.
--- pybridge/
+++ pybridge/
@@ -134,6 +134,7 @@
"""
context = cairo.Context(
+ context.save()
# Redraw background pattern in area.
context. set_source_ surface( item['source' ], pos_x, pos_y)
context. paint_with_ alpha(item[ 'opacity' ])
@@ -151,7 +152,8 @@
- context. reset_clip( ) reset_clip( )
self. window. invalidate_ rect((x, y, width, height), False) # Expose.
+ #context.
+ context.restore()
@@ -212,9 +214,11 @@ window. cairo_create( )
context. rectangle( *event. area)
context. clip() # Only redraw the exposed area.
context. set_source_ surface( self.backing, 0, 0)
context. paint() reset_clip( ) reset_clip( )
def _expose(self, widget, event):
context = widget.
+ context.save()
- context.
+ #context.
+ context.restore()
return False # Expected to return False.