Features/GTK3/Porting/Implode: Difference between revisions

Humitos (talk | contribs)
Humitos (talk | contribs)
Line 36: Line 36:


  def _configure_event_cb(self, widget, event):
  def _configure_event_cb(self, widget, event):
I just used the ''size-allocate'' signal to save the the dimensions of the widget (width and height), so I can use them later on the '''draw''' signal.
def _size_allocate_cb(self, widget, rect):
    self.width = rect.width
    self.height = rect.height


== Focus ==
== Focus ==