I have a GTK GUI with Python code. There is a treeview on the GUI. I need to list file sizes on the treeview and sort them by file size by clicking on the column. But it sorts files by using their sizes as string. What is the common way for sorting this files? Using string file size values (with
Tag: gtk3
How do you add an inline image to PyGObject 3?
I want to put inline images into my PyGObject 3 programs so they won’t have to be loaded from disk. YoLinux shows how to edit an XPM file so its text can be inserted into Python code. The free e-book “PyGTK 2.0 Tutorial” by John Finlay gives two code examples. All that’s for PyGTK 2 not gi / PyGObject 3.
How to set the text size of Gtk.Entry in PyGObject?
I want increase the text size of Gtk.Entry . I am using Python3 Answer You can use Gtk.Entry.modify_font() to increase the size of the font. Here is an MCVE: