Difference between revisions of "Features/GTK3/Porting/Finance"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
parse, color = Gdk.Color.parse('#000000') | parse, color = Gdk.Color.parse('#000000') | ||
self.helpbox.modify_bg(Gtk.StateType.NORMAL, color) | self.helpbox.modify_bg(Gtk.StateType.NORMAL, color) | ||
+ | |||
+ | |||
+ | col = Gtk.TreeViewColumn(_('Description'), renderer) | ||
+ | col.set_cell_data_func(renderer, self.description_render_cb) | ||
+ | |||
+ | Receives another argument: ''data'' | ||
+ | |||
+ | def description_render_cb(self, column, cell_renderer, model, iter, data): |
Revision as of 11:40, 2 July 2012
AttributeError: 'EventBox' object has no attribute 'get_colormap'
replaced by:
parse, color = Gdk.Color.parse('#000000') self.helpbox.modify_bg(Gtk.StateType.NORMAL, color)
col = Gtk.TreeViewColumn(_('Description'), renderer) col.set_cell_data_func(renderer, self.description_render_cb)
Receives another argument: data
def description_render_cb(self, column, cell_renderer, model, iter, data):