Skip to content
Advertisement

Tag: pygtk

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.

Cannot Import GST in Python

I’m in a quandary. I’m following the following tutorial (specifically, 6.4.2) http://majorsilence.com/pygtk_audio_and_video_playback_gstreamer I’m running Python 2.7, PyGTK 2.24, and GStreamer WinBuilds 10.7 (the main installer and the SDK). When I try and compile the program, I get the following error: Traceback (most recent call last): File “”, line 1, in import gst File “C:Program FilesOSSBuildGStreamerv0.10.6libsite-packagesgst-0.10gst__init__.py”, line 193, in from _gst

Virtualenv on Ubuntu with no site-packages

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 to make a virtualenv (with –no-site-packages) aware of specific modules that are

Advertisement