projects
/
jamaendo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no background yet..
[jamaendo]
/
helldon
/
__init__.py
diff --git
a/helldon/__init__.py
b/helldon/__init__.py
index
cf817d7
..
c333823
100644
(file)
--- a/
helldon/__init__.py
+++ b/
helldon/__init__.py
@@
-15,6
+15,7
@@
class Program(gtk.Window):
def __init__(self):
gtk.Window.__init__(self, type=gtk.WINDOW_TOPLEVEL)
def __init__(self):
gtk.Window.__init__(self, type=gtk.WINDOW_TOPLEVEL)
+ self.set_app_paintable(True)
self._vbox = gtk.VBox()
self._title = gtk.Label("Jamaendo")
self._backbtn = gtk.Button("<<<")
self._vbox = gtk.VBox()
self._title = gtk.Label("Jamaendo")
self._backbtn = gtk.Button("<<<")
@@
-31,6
+32,14
@@
class Program(gtk.Window):
Program.instance = self
self._backbtn.connect('clicked', self.on_back)
Program.instance = self
self._backbtn.connect('clicked', self.on_back)
+ bgimg = 'data/bg.png'
+ if bgimg:
+ background, mask = gtk.gdk.pixbuf_new_from_file(bgimg).render_pixmap_and_mask()
+ self.set_app_paintable(True)
+ self.realize()
+ self.window.set_back_pixmap(background, False)
+ self.window.clear()
+
self._stack = []
def add_window(self, wnd):
self._stack = []
def add_window(self, wnd):