Пример #1
0
 def on_realize(self, widget):
     eventslog("on_realize(%s) gdk window=%s", widget, self.get_window())
     add_window_hooks(self)
     cb = self.on_realize_cb
     self.on_realize_cb = {}
     for x, args in cb.values():
         try:
             x(*args)
         except Exception as e:
             log.error("Error on realize callback %s for window %i", x, self._id, exc_info=True)
     if HAS_X11_BINDINGS:
         #request frame extents if the window manager supports it
         self._client.request_frame_extents(self)
     if self.group_leader:
         self.get_window().set_group(self.group_leader)
Пример #2
0
 def on_realize(self, widget):
     eventslog("on_realize(%s)", widget)
     add_window_hooks(self)
Пример #3
0
 def on_realize(self, widget):
     eventslog("on_realize(%s)", widget)
     add_window_hooks(self)