I have a small py program that using py27 & pygtk. I can freeze this this quite happily with cx_freeze.
I have been attempting to "port" it over to py33 & pygobject. This has been completed quite successfully and I am not trying to adapt my…
I have created a Gtk.grid which contains a bunch of buttons that are resizable and draggable around the grid.
I have also created a Gtk.drawingarea which draws grid lines. I wish to make my buttons transparent like…
I'm totally new to GExiv2 or GObject introspection, but managed to figure out how to read the date of the image:
from gi.repository import GExiv2
def get_exif_data(filename='DSCN3025.JPG'):
exif = GExiv2.Metadata(filename)
print…
When I input "from gi.repository import Gtk" into the interpreter I get
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named gi.repository
Here is my brew list
at-spi2-atk freetype …
I'm a little bit lost building a UI with Glade and Python 3. I've made a GtkWindows, which has a GtkBox. The GtkBox has a GtkButton and two GtkPaned objects. Each of the panes have a GtkEntry object. Eventually, I want this to become a login form:…
I'd like to see some examples that uses PyGObject and GStreamer, but I could not find anything on web.
The only information available in the official website is the link to the source code for the Python binding:…
I am trying to get working a gtk.spinner using Pygobject in python. The main thing is that I use this element to show the user that a long time action is in progress. The problem is that the spinner stops when doing the function.
the code is…
I am trying to learn Python and PyGObject, so I have written a simple program that adds user inputted two numbers and shows the result and created the user interface using Glade.
It has also an about dialog. However, whenever I want to process…
Using Python and Gtk3, I have created a Gtk.TreeView and put it inside a Gtk.ScrolledWindow. I don't like horizontal scroll bars, so I removed it using the Gtk.PolicyType.NEVER, but now I can't resize the window in that direction.
So the question…
In most pygtk widget pages, they contain sections called 'Attributes', 'Properties', and 'Style Properties'. How can I change these properties and attributes?
Using PyGTK, I used to be able to take a screenshot using gtk.gdk.pixbuf.get_from_drawable.
I can't seem to figure out how to do that using PyGObject and GdkPixbuf. I've tried get_from_drawable and get_from_window but neither work in…
How do you build pygobject (GTK+ 3 in Python with introspection) on OSX? I'm not a mac user--I'm hoping to help my colleagues run an application I wrote for Linux on their mac books.
I am writing an application using Vte in Python + Gtk3.
I am not able to change all the color.
For example, for the foreground color, I tried this code, but the text color doesn't change:
class Shell(Gtk.Box):
def…
I'm trying to create a Python notification application. To make it short here is what I wanted to do :
1. Checking my gmail account
2. Display a notification with the number of unread mails
3. Display a button that permits me to open chromium…
I want to pack a Gtk.Entry (with Gtk.EntryCompletion hooked up) into a cell in a Gtk.TreeView. Does anyone know how this can be done? (I just need entry completion on a text entry in a tabular view.)
Do I perhaps need to subclass Gtk.CellRenderer…