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

No exceptions from GObject properties in pygobject?

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 =…
OdraEncoded
  • 3,064
  • 3
  • 20
  • 31
0
votes
1 answer

Port a pygtk based C API to pygobject

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 ?
sagarchalise
  • 992
  • 8
  • 14
0
votes
1 answer

install pygobject3 for python3 in windows?

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 !!!…
X.Strange
  • 175
  • 1
  • 16
0
votes
1 answer

Gtk MessageDialog causes segfault (PYGObject)

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…
DanielTA
  • 6,038
  • 3
  • 23
  • 27
0
votes
1 answer

Dynamically add rows to GTK List PyGObject

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…
Cody Dostal
  • 311
  • 1
  • 3
  • 13
0
votes
1 answer

Different models for different level TreeView nodes

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…
Gilad Naaman
  • 6,390
  • 15
  • 52
  • 82
0
votes
1 answer

Show drop-down list without entry by using PyGObject ComboBox

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…
gaetanm
  • 1,394
  • 1
  • 13
  • 25
0
votes
1 answer

PyGObject: Setting ComboBoxText's Active Text

How can I set the active text of a ComboBoxText (with entry)? There is no such method in the documentation.
Gilad Naaman
  • 6,390
  • 15
  • 52
  • 82
0
votes
0 answers

PyGobject TreeView Columns re-sized when selected

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…
Gilad Naaman
  • 6,390
  • 15
  • 52
  • 82
0
votes
1 answer

Missing text in GUI (PyGObject)

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

Blank window when lanching about dialogue twice?

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…
Marco Scannadinari
  • 1,774
  • 2
  • 15
  • 24
0
votes
1 answer

How to resize a PythonGtk.Window under the size that a child label needs for showing its text?

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

Correct way of listening for a specific key with pygobject?

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…
Daniel
  • 140
  • 2
  • 8
0
votes
1 answer

Where to find reference for PyGObject

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

resize borderless window with vpaned in python+gtk3

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…
Özcan Esen
  • 340
  • 1
  • 13