pygtk

Has threading in GTK w/ Python changed in PyGObject introspection?

Has threading in GTK w/ Python changed in PyGObject introspection? Question: I’m in the process of converting a program from PyGTK to PyGObject introspection for the first time and I’ve hit a roadblock with threading. I have a process that takes some time to complete, so I pop up a dialog with a progress bar …

Total answers: 1

Best practices for adding .gitignore file for Python projects?

Best practices for adding .gitignore file for Python projects? Question: I’m trying to collect some of my default settings, and one thing I realized I don’t have a standard for is .gitignore files. There’s a great thread showing a good .gitignore for Visual Studio projects, but I don’t see many recommendations for Python and related …

Total answers: 6

How to escape characters in Pango markup?

How to escape characters in Pango markup? Question: My program has a gtk.TreeView which displays a gtk.ListStore. The gtk.ListStore contains strings like this: “<span size=’medium’><b>”+site_title+”</b></span>”+”n”+URL Where URL is (obviously) a URL string. Sometimes there are characters in URL that cause pango to fail to parse the markup. Is there a way to escape URL as …

Total answers: 3

Which GTK widget combination to use for scrollable column of widgets?

Which GTK widget combination to use for scrollable column of widgets? Question: I’m working with PyGTK, trying to come up with a combination of widgets that will do the following: Let me add an endless number of widgets in a column Provide a vertical scrollbar to get to the ones that run off the bottom …

Total answers: 3

Virtualenv on Ubuntu with no site-packages

Virtualenv on Ubuntu with no site-packages Question: I’ve been using virtualenv lately while developing in python. I like the idea of a segregated development environment using the –no-site-packages option, but doing this while developing a PyGTK app can be a bit tricky. The PyGTK modules are installed on Ubuntu by default, and I would like …

Total answers: 5

Glade or no glade: What is the best way to use PyGtk?

Glade or no glade: What is the best way to use PyGtk? Question: I’ve been learning python for a while now with some success. I even managed to create one or two (simple) programs using PyGtk + Glade. The thing is: I am not sure if the best way to use GTK with python is …

Total answers: 11