Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting/Log
(view source)
Revision as of 08:29, 18 July 2012
381 bytes added
,
08:29, 18 July 2012
→Code Snippets
Line 19:
Line 19:
self._textview.scroll_to_mark(log.get_insert(), 0, use_align=False, xalign=0.5, yalign=0.5)
self._textview.scroll_to_mark(log.get_insert(), 0, use_align=False, xalign=0.5, yalign=0.5)
+
+
== Gtk.TreeSortable.set_sort_func ==
+
+
* http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html#Gtk.TreeSortable.set_sort_func
+
+
This function sometimes receives ''user_data'' so we need to add an optional argument to the definition.
+
+
def _sort_logfile(self, treemodel, itera, iterb):
+
+
replaced by:
+
+
def _sort_logfile(self, treemodel, itera, iterb, user_data=None):
= Missing things =
= Missing things =
Humitos
266
edits