Skip to content

Commit 5397cc3

Browse files
committed
self.o definition changed
1 parent 6f72a92 commit 5397cc3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/module/gtkwindow.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def __init__(self):
99
self.start_windowmanager()
1010
self.builder = Gtk.Builder()
1111
self.builder.add_from_file("data/main.ui")
12+
self.o = self.builder.get_object
1213
self.__init_variables()
1314
self.__init_gui()
1415
self.__update_user_background_loop()
@@ -26,10 +27,6 @@ def __init_variables(self):
2627
self.ignore_password_cache = False
2728
self.background_handler = None
2829

29-
30-
def o(self, name=None):
31-
return self.builder.get_object(name)
32-
3330
def __connect_signals(self):
3431
def block_delete(*args):
3532
return True
@@ -356,7 +353,7 @@ def set_background(self, bg=None):
356353
if px != None and self.background_pixbuf != px:
357354
self.background_pixbuf = px
358355
except Exception as e:
359-
print(str(e))
356+
print(traceback.format_exc(), file=sys.stderr)
360357
if self.background_handler != None:
361358
self.background_pixbuf = self.background_handler(self.background_pixbuf)
362359
GLib.idle_add(self.draw_background)

0 commit comments

Comments
 (0)