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
0
votes
1 answer

GTK ComboBox is empty

I have a Gtk.Grid to which I want to add a row with a combo box, which is initialized with a list. However, my combo box is empty. Can anyone see what I'm missing here? I used this tutorial as reference queryTypes = ["Name", "Grade", "Year",…
Oded Sayar
  • 427
  • 1
  • 4
  • 17
0
votes
1 answer

How to set Gtk.Entry text to right aligned in PyGObject?

I am beginner with PyGObject. entry = Gtk.Entry() Is there some method for setting the text alignment for Gtk.Entry in PyGObject ?
Sanjay Prajapat
  • 253
  • 2
  • 13
0
votes
1 answer

Python Gtk3 creating simple container object with Gtk.Container

I tried to create a basic GTK Container widget with the following code: from Gtk3Modules import * from gi.repository.GObject import GObject class Ex(Gtk.Container): pass btn = Gtk.Button("nss") ab = Ex() ab.add(btn) w =…
Nomad
  • 918
  • 6
  • 23
0
votes
0 answers

How could I make the title of a TreeView Column editable?

I based on editable cell example, I was able to figure out how to make cells of a column in a table (implemented by TreeView) editable. But, how could I make the title of the column editable?
ali65
  • 106
  • 1
  • 6
0
votes
1 answer

HTTP not supported when using GLib’s GIO APIs

I'm writing a GTK application that sometimes downloads files with HTTP. Since I don't want to block normal execution, I obviously can't use urllib or Requests, so I'm trying to use GIO instead. However, I'm getting a GLib.Error: g-io-error-quark:…
Kyuuhachi
  • 651
  • 6
  • 15
0
votes
1 answer

why use 'widget' in python callback function (Gtk) which only prints on stdout?

I am learning Gtk programming with python from this. But I can not understand what is the reason for the widget keyword in the following callback definition? Can someone please explain what it does? def on_button_clicked(self, widget): …
Dipanjan Patra
  • 59
  • 1
  • 3
  • 10
0
votes
0 answers

Problems Installing Python GTK+3 for Windows

I've been following the PyGObject installation instructions for Windows: http://pygobject.readthedocs.io/en/latest/getting_started.html#windows-logo-windows However, the installation seems to freeze in the middle of the GTK+3 install. At first I…
CM-Dev
  • 373
  • 1
  • 5
  • 15
0
votes
1 answer

How to set the gravity on a GTK3+ window in python

I run python 2.7.13 on windows 7. I am creating a window with Gtk (from pygobject 3.18.2). I am running windows 7 with a custom shell and I am trying to make a toolbar at the bottom of the screen. I use a grid to divide the window in a top and a…
bbuggy
  • 25
  • 7
0
votes
1 answer

How do I pause a loop with a button in PyGObject?

I have a button that runs a loop and updates the window accordingly. I want another "pause" button that pauses this loop but it doesn't seem like I can do that while the loop is running. Perhaps threading is the solution (I tried…
Bill joe
  • 11
  • 1
0
votes
1 answer

Why can't I have a loop in the onclick function in PyGObject?

I am creating a user interface using PyGObject and I want the program to "run" a loop when a button is clicked and refresh the window accordingly. For example, in the following code, I want the program - on the click of the button - to update the…
0
votes
1 answer

Why does deleting the widgets in a window and then creating them again yield strange error messages in PyGObject?

I have a window and I want a change to a value in one widget to change another widget; hence in the event handler for the widget, I "refresh" the window by deleting its widgets and creating them again. In my actual code, I have several widgets and…
Bill joe
  • 11
  • 1
0
votes
1 answer

How can I maintain, atleast, some order in which callbacks connect to a signal?

When I simply use 'connect', there is no way I can specify the order in the callbacks will be called. Having connect_before and connect_after to connect before/after the default doesn't serve my purpose. I want something like connect_first and…
Suhas
  • 131
  • 1
  • 12
0
votes
1 answer

Can a GObject signal return a non-gobject object?

The callback function has to return a custom non-GObject class's object, Can a GObject have such a callback?
Suhas
  • 131
  • 1
  • 12
0
votes
1 answer

Proper way to open multiple appwindows with Python GTK3 Gtk.Application

I'm learning GTK3 under Python3 and made an app that has only one AppWindow so far. I'm using Gtk.Application. I can't figure out how to proper handle opening a second window. I can open it directly from my main Window but I don't know how to pass…
JuanMatias
  • 87
  • 1
  • 1
  • 10
0
votes
1 answer

modify Gobject load library path for python

In order to troubleshoot my Python Gstreamer app, I cloned and added some debug statements to the Gstreamer core. Now I want Python to load my private build of gstreamer, instead of the standard one in /usr/local/lib/gstreamer-1.0/. For the…
Lawrence I. Siden
  • 9,191
  • 10
  • 43
  • 56