I'm trying to do some exception handling in python3 / pygobject with a property inside one of my custom gobject classes. The code I had was something like this
try:
label = foo.label # This is a GObject.Property
except Exception:
label =…
As recommended by pygtk itself, the way forward is GObjectIntrospection. I would like to port a C API for python which uses pygtk.h and pygobject.h. Can anyone show me the way towards documentation on how to do this ?
i need to write a python3 program for windows and i want to use gtk+3 for GUI
in GNU/Linux i use python3 and pygobject3 and now i cant find any binary version of pygobject3 for windows x86 or x86_64 !!!
only i find last windows version is 2.28 !!!…
What is wrong with my program? It works fine until it tries to show the dialog box and then it segfaults.
Forgive me if the solution is obvious, this is only my second GTK+ program.
import time, threading
from sys import exit
from gi.repository…
I'm trying to add items dynamically detected into a PyGTK listview.
I'm using Python 3 and PyGObject.
Here are some example lists:
['MomAndKids', 'ddwrt', 'Squirt', 'blurb']
['WPA1', 'Open', 'WPA2', 'WEP']
['44/70', '38/70', '66/70', '55/70']
I…
Let's say I have a TreeView (with a backing TreeStore) that represents a list of products.
A Product has the following specifications:
Name
Catalog Number
Comment
Also, each product has a list of Components that it is constructed of.
I want to…
Actually, I have a list (fooId, fooName) and I need to show a drop-down list wich only shows fooName from this list. But, when I need to get the selected item from the user, I just want to get the fooId and not the fooName.
According to the…
I am writing an Application in Python which uses a TreeView with a few columns.
When a row is double clicked or selected, the TreeView's column start changing their size a few times and then settle down. (Looks a bit like when auto-configuring a…
I have created a GUI with pyGObject using a xml description file and I'm trying to create a sidebar with GtkTreeView. GtkTreeView doesn't show any text in the headers and children in my GUI even though I have added some. Why is that? How can I fix…
I have an application design done, without any useful stuff happening, but I have two windows. One is the main window, and one is the about dialogue. They are all on one .ui file from Glade.
When I open the About dialogue using Help>About (in my…
I have a toplevel Gtk.Window which only child is a Gtk.Label.
If the width needed by the label to show its text is XXX pixels, I am not able to resize the top-level window with under XXX pixels. This happens if I set the size_request of the label to…
I am very new to programming with python and gtk. After a day of googling and trying to find documentation i came up with the following solution for reacting on a press of a given button:
from gi.repository import Gtk,Gdk
class…
I'm working on a Python based source code editor. I've created a clean layout with a Gtk.Notebook. Creating a main layout was easy with Glade, but right after I imported gi.repository, everything got hard. It's very hard to find documentation. From…
I want to resize borderless window with paned (seperator) object, If you know terminal application guake does this with motion-notify-event
here is the code:
self.resizer.connect('motion-notify-event', self.on_resizer_drag)
def…