pygobject Questions
1
Solved
I'm currently learning GTK+ via PyGobject and need something like a canvas. I already searched the docs and found two widgets that seem likely to do the job: GtkDrawingArea and GtkLayout. I need a ...
Harrod asked 22/12, 2011 at 19:15
1
Solved
python 3.2.2
gtk3 3.2.2
python-gobject 3.0.2
I'm trying to display a GUI and do some work in the background. As I understand it should look something like this:
#!/usr/bin/env python3
# -*- co...
Burdensome asked 14/11, 2011 at 11:26
3
Solved
One of the great things of python is the ability to have introspection on methods and functions. As an example, to get the function signature of math.log you can (in ipython) run this:
In [1]: mat...
1
Solved
When I try to import Webkit from gi.repository, it gives an ImportError:
from gi.repository import Webkit
ERROR:root:Could not find any typelib for Webkit
Traceback (most recent call last):
File ...
Wanids asked 19/10, 2011 at 15:39
2
I'm trying to use a Gtk.Switch widget in an app but "activate" signal is not firing by clicks.
It works fine when using the widget with keyboard by hitting reture/space key on it but clicks don't ...
1
Solved
I've been trying to install PyGObject using a variety of methods. First, using apt-get but that only installs it for Python 2.x. Next I attempted to compile it myself but I have been having problem...
Tussore asked 15/8, 2011 at 13:10
1
Solved
In PyGtk I always used this to create a ListStore with an Image (using it with an IconView for displaying files):
store = gtk.ListStore(str, gtk.gdk.Pixbuf, bool)
But I can't figure out how to d...
1
Solved
I'm in the process of converting a program from PyGTK to PyGObject introspection for the first time and I've hit a roadblock with threading. I have a process that takes some time to complete, so I ...
Vegetative asked 4/8, 2011 at 14:20
1
Solved
So I'm still fairly new to Python, and have been learning for a couple months, but one thing I'm trying to figure out is say you have a basic window...
#!/usr/bin/env python
import sys, os
import...
2
Solved
I am converting a script to use Gtk3 using the migration guide (Porting GTK2 to GTK3). I converted my import pygtk to a from gi.repository import Gtk and so on...
I'm stuck because the glade modul...
3
Solved
The problem is basically this, in python's gobject and gtk bindings. Assume we have a class that binds to a signal when constructed:
class ClipboardMonitor (object):
def __init__(self):
clip = g...
© 2022 - 2024 — McMap. All rights reserved.