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",…
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 =…
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?
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:…
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):
…
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…
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…
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…
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…
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…
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…
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…
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…