pygobject Questions

1

Solved

I'm currently trying to center my application window, but it seems to be impossible with PyGObject (GTK+ 3). Indeed, with pyGTK, I was doing it this way: window.set_position(gtk.WIN_POS_CENTER) ...
Tillandsia asked 5/5, 2013 at 21:12

1

Solved

I'm programming a little application in Python + Gtk3. I'm using a GtkGrid with one column and two rows. In the first row I put: a GtkScrolledWindow, and inside it a TreeView with two columns. In t...
Octodecillion asked 27/3, 2013 at 15:6

1

Solved

First of all, it is important to mention that I'm learning Python and Gtk+ 3, so I'm not an advanced programmer in these languages. I'm trying to make a graphical interface in Gtk3 for a Python sc...
Reside asked 15/3, 2013 at 18:52

1

How do I get the name of a Gtk.Widget retrieved from a Builder object? I specifically mean the name seen in Glade (eg: button1), not the name of the class (GtkWindow). This question is exac...
Uncaused asked 13/3, 2013 at 18:6

1

Solved

So you have some function, say Gtk.Builder.get_object(), which returns some widget. In our case a Gtk.Window(). I have a subclass of Gtk.Window() which adds some signal handlers. class Window(Gtk...
Girardi asked 11/3, 2013 at 3:32

1

Solved

i must write my own cell renderer with button, i came up with this: #!/usr/bin/env python3 from gi.repository import Gtk class CellRendererButton(Gtk.CellRenderer): def __init__(self): Gtk.Cell...
Ea asked 21/2, 2013 at 9:8

3

Solved

Pictures will explain the title: Under LMDE & Ubuntu 12.04 my GtkIconView looks like this - its correct in terms of the spacing between the icons: Under Ubuntu 12.10, 13.04 & Fedora 17 ...
Exceptionable asked 30/12, 2012 at 10:53

1

Solved

I'm developing another image viewer using Python and Gtk and the viewer is currently very simple: it consists of a GtkWindow with a GtkTreeView on the left side displaying the list of my images, an...
Goldia asked 1/12, 2012 at 10:21

2

Solved

from gi.repository import Gtk #print Gtk.GTK_MAJOR_VERSION win = Gtk.Window() win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main() That is my code, how can I know which version ...
Kobe asked 19/6, 2012 at 9:46

1

I create application in GTK+3 and I Would like to change the background color for GtkBox but can not here this code: box.modify_bg(Gtk.StateType.NORMAL, color);
Frascati asked 23/6, 2012 at 3:6

1

Solved

I am trying to get a treemodel (a liststore in fact) that can be filtered and also sorted. I have the following piece of code self.modelfilter = self.liststore.filter_new() self.modelfilter.set_vi...
Steelyard asked 11/9, 2012 at 10:51

1

Solved

Right now I can make a terminal but the output is not used as a command. It just prints a string to the virtual terminal. from gi.repository import Gtk, GObject, Vte class TheWindow(Gtk.Window): ...
Tribadism asked 3/8, 2012 at 23:13

2

im trying to get drag and drop working well in pygobject, but it is slow and unresponsive, 90% of the time i have to wave the item i am dragging around before i can drop it successfully, can anyone...
Jovial asked 5/10, 2011 at 12:4

1

Solved

There seems to be a distinct lack of documentation of the GObjects module for python at the moment, so maybe somebody can help me. I am making an application which occasionally will have to notify...
Coventry asked 1/7, 2012 at 22:3

1

Solved

I'm trying to develop a GTK application in Python and I'm really stuck with the correct usage of a gtk.TreeStore. My main problem: I've already parsed some JSON and I have my own data structure whi...
Sharynshashlik asked 24/6, 2012 at 15:38

1

I'd like to create a Gtk.StatusIcon with custom text. Ideally I'd like to append this to an existing image, but text-only is ok, too. How can I achieve this? I've seen some posts about getting a G...
Cassady asked 29/4, 2012 at 3:36

1

Solved

I am trying to load a webkit view on a different thread than main thread for gtk. I see the example PyGTK, Threads and WebKit I slightly modify for support PyGObject and GTK3: from gi.repository...
Sewn asked 17/6, 2012 at 9:28

1

I'm in the process of writing a small/medium sized GUI application with PyGObject (the new introspection based bindings for Gtk). I started out with a reasonable test suite based on nose that was a...
Maudiemaudlin asked 11/6, 2012 at 8:8

2

How can I convert PIL Image in pixbuf?. I tried to change many examples but no solution import array from gi.repository import GdkPixbuf def image2pixbuf(self,im): arr = array.array('B', im.tost...
Bowman asked 26/4, 2012 at 21:56

2

Solved

I have a small application that uses a DrawingArea to draw a simple map using PyGObject and GTK3. I load a Pixbuf using from gi.repository import Gtk, GdkPixbuf pixbuf = GdkPixbuf.Pixbuf.new_from...
Holo asked 22/4, 2012 at 17:5

1

Solved

I'm trying to write simple graphic editor using PyGObject and python 3. I need to draw lines with different color and width using mouse. I found many examples like this but nothing more complex. H...
Parkway asked 22/4, 2012 at 18:26

1

Solved

I'm trying to use a Glade file that has a GtkSourceView widget in PyGObject. I've wrote a little guide on how to start using the new GtkSourceView 3.0 in Glade: http://cjenkins.wordpress.com/2012/0...
Lustrate asked 9/5, 2012 at 21:15

2

Solved

I want to write a python3/PyGTK3 application that displays PDF files and I was not able to find a python package that allows me to do that. There is pypoppler, but it looks outdated (?) and does no...
Psychoactive asked 13/3, 2012 at 10:29

1

Solved

I want to have a dialog window where some buttons close the dialog and others don't. The way I do this is by using the response signal from the Gtk.Dialog to call emit_stop_by_name('response') on t...
Excitement asked 30/1, 2012 at 3:26

1

Solved

I'm trying to implement the Heigh-for-width Geometry Management in GTK with Python for my custom Widget. My widget is a subclass from Gtk.DrawingArea and draws some parts of an Image. As I underst...
Konyn asked 29/2, 2012 at 9:14

© 2022 - 2024 — McMap. All rights reserved.