Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting/Implode
(view source)
Revision as of 07:06, 28 June 2012
258 bytes removed
,
07:06, 28 June 2012
→size-allocate
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 ==
Humitos
266
edits