Make the canvas window background transparent
This commit is contained in:
parent
b04c19efb4
commit
2e2db562c5
@ -9,6 +9,10 @@ class Window(gtk.Window):
|
||||
self.add(self._canvas)
|
||||
self._canvas.show()
|
||||
|
||||
self._canvas.connect_after('realize', self._window_realize_cb)
|
||||
|
||||
def set_root(self, root):
|
||||
self._canvas.set_root(root)
|
||||
|
||||
def _window_realize_cb(self, canvas):
|
||||
canvas.window.set_back_pixmap(None, False)
|
||||
|
Loading…
Reference in New Issue
Block a user