Questions tagged [pygobject]

GTK+ and other GObject bindings are provided by PyGObject through introspection.

Python library providing bindings for GObject based libraries through GObject-Introspection.

For more information:

817 questions
3
votes
1 answer

cx_freeze & pygobject in a subdirectory

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…
Naib
  • 999
  • 7
  • 20
3
votes
1 answer

How to overlay transparent buttons on top of Gtk.drawingarea

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…
sugarmuff
  • 435
  • 5
  • 17
3
votes
1 answer

How to read camera make and model with GExiv2 in Python

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…
3
votes
1 answer

How to get python to recognize/find homebrew installed gi.repository (PyGObjects)?

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 …
Will03
  • 145
  • 1
  • 9
3
votes
1 answer

Python + Glade + PyGObject. How can I get the value of two text fields at once?

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:…
Patrick Collins
  • 10,306
  • 5
  • 30
  • 69
3
votes
1 answer

PyGObject with GStreamer examples?

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:…
Zignd
  • 6,896
  • 12
  • 40
  • 62
3
votes
1 answer

Using Gtk.spinner with a long time function

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…
fernandezr
  • 660
  • 6
  • 19
3
votes
0 answers

Why does Gtk.Dialog response signal spits 2 arguments instead of 3?

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…
3
votes
1 answer

Gtk.ScrolledWindow without horizontal scroll bar

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…
skytux
  • 1,236
  • 2
  • 16
  • 19
3
votes
4 answers

Editing GtkWidget attributes/properties

In most pygtk widget pages, they contain sections called 'Attributes', 'Properties', and 'Style Properties'. How can I change these properties and attributes?
Marco Scannadinari
  • 1,774
  • 2
  • 15
  • 24
3
votes
1 answer

How do I take a screenshot using GdkPixbuf?

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…
Steve Gricci
  • 133
  • 1
  • 6
3
votes
1 answer

Build instructions for pygobject on OSX

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.
Micah Carrick
  • 9,967
  • 3
  • 31
  • 43
3
votes
1 answer

Why the method set_color_foreground and its companions set_color_XXX don't work in Vte ( Python - Gtk3)?

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…
Irr
  • 656
  • 1
  • 9
  • 19
3
votes
1 answer

Python GI Notify How can I call the Gtk.main()?

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…
Depado
  • 4,811
  • 3
  • 41
  • 63
3
votes
2 answers

Gtk.Entry in Gtk.TreeView (CellRenderer)

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…
simon
  • 15,344
  • 5
  • 45
  • 67