- background, mask = gtk.gdk.pixbuf_new_from_file(self.find_resource(self._BG)).render_pixmap_and_mask()
- self.window.realize()
- self.window.window.set_back_pixmap(background, False)
+ bgimg = self.find_resource(self._BG)
+ if bgimg:
+ background, mask = gtk.gdk.pixbuf_new_from_file(bgimg).render_pixmap_and_mask()
+ self.window.realize()
+ self.window.window.set_back_pixmap(background, False)