pygobject Questions

1

I am trying to install PyGtk on windows 7 for Python 2.7, but when go to use pip to install PyGtk it says I need PyGObject so I installed the Visual C++ package for Python (I know I have the correc...
Craunch asked 23/7, 2018 at 19:21

3

I cannot make Python3 work with GTK3. I'm in a cluster context and I had everything recompiled from the sources. When I run a simple example : from gi.repository import Gtk win = Gtk.Window() wi...
Jointress asked 30/7, 2014 at 12:34

1

I am using python3 with Gtk3 and i need to basically remove some widgets from my Gtk.Window and replace them with other widgets when a Gtk.Button is clicked.I have tried using Gtk.ListBoxes with Gt...
Rauscher asked 31/10, 2017 at 8:18

2

Solved

I have a GUI built in Glade (3.18) which is called by a Python 3 program (using PyGObject). I get a lot of warnings when running the program (Fedora 21) that say: Gtk-Message: GtkDialog mapped wit...
Swashbuckler asked 26/4, 2015 at 20:36

0

I accidentally deleted 'pyGObject' package from python3.6 interpreter. After trying to reinstall I get the following error message. C:\WINDOWS\system32>pip install pygobject Collecting pygobje...
Quantize asked 5/4, 2018 at 16:16

3

Solved

I have some RGBA data in Python 3 and I want to display the image it represents in a GTK3 window without using any extra libraries. First thing I tried was editing a Pixbuf's data as in an example...
Benzoyl asked 13/9, 2012 at 19:44

2

Solved

After searching for a long time I found a solution (pretty simple) to move between cells of a treeview grid using Tab key and mantaining cells in edit mode. Now I've got a problem: cell edit confi...
Stinson asked 19/3, 2013 at 11:7

1

Solved

I'm receiving the following warnings in my GTK 3 application: Gtk-WARNING **: Allocating size to __main__+MCVEWindow 0000000004e93b30 without calling gtk_widget_get_preferred_width/height(). How...
Martelli asked 16/9, 2017 at 11:36

1

Solved

Is there a way that I can check to see if the Gtk.main() loop is alive? Similar to the threading.is_alive() function? Any help is much appreciated :)
Kaduna asked 23/6, 2017 at 22:2

4

I'm trying to convert the 3d array returned by cv2.imread to the continguous rgb byte array, in order to display in GTK. And below is my conversion code: def ndarr2rgb(img): r_arr = img[:, :, 0]....
Votaw asked 5/6, 2014 at 14:24

4

Solved

Sometimes I need to call a gtk/gobject function that only exists in C, but returns an object that has a python wrapper. Previously I used a solution based on ctypes that worked well: http://faq.py...
Spermary asked 29/12, 2011 at 13:13

3

With gettext you can either use the default system-wide locale directory, or specify one yourself using bindtextdomain. This is useful when running a program directly from source when the compiled ...
Owing asked 10/4, 2012 at 18:27

1

As title suggests I am reading frames from my webcam (using openCV, i want to do some follow up feature detection with it) and want to write the result to a pyGTK3 DrawableArea widget. Following th...
Leaseholder asked 30/10, 2016 at 7:45

3

Solved

Installing the python interpreter: http://python.org/ftp/python/2.7.2/python-2.7.2.msi and: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.0.win32-py2.7.msi run: pyt...
Triphthong asked 1/9, 2011 at 19:17

1

Solved

For example, the telephone format is +999 99 9999-9999. That is, the GtkEntry automatically add the characters (+,[space] and -) as the user types.
Thant asked 16/10, 2016 at 20:13

1

That's the basic idea. I couldn't understand them while reading about all this in python's documentation. There's simply too much of it to understand it. Could someone explain me how to get a wo...
Hagiographer asked 21/8, 2016 at 5:56

1

Solved

I am having trouble in managing the insert-text signal emitted by the Gtk.Entry widget. Consider the following example: from gi.repository import Gtk def on_insert_text(entry, new_text, new_text_...
Raquel asked 7/8, 2016 at 15:31

1

Solved

I have the following two threads: myThread = threading.Thread(target=sender.mainloop.run, daemon=True) myThread.start() myThread2 = threading.Thread(target=receiver.mainloop.run, daemon=True) myT...
Raymund asked 17/4, 2016 at 18:43

2

I have the following code, that uses pygtk: attr = pango.AttrList() attr.change(pango.AttrSize(( 50 * window_height / 100) * 1000, 0, -1)) attr.change(pango.AttrFamily("Sans", 0, -1)) attr.change...
Culver asked 9/1, 2012 at 3:39

1

Solved

I have coded something with an asyncio loop: loop = asyncio.get_event_loop() # bla coroutines loop.run_forever() and now, someone gives to me a part of code using a GObject.MainLoop() l = GObje...
Amphichroic asked 19/1, 2016 at 15:18

3

Solved

I want to popup a context menu when the user right-clicks on the header row of a Gtk.TreeView. In GTK3, Gtk.TreeViewColumn has a get_button() method, which makes this easy; simply attach the menu t...
Interplead asked 5/8, 2011 at 17:26

1

Solved

I'm assembling a GUI using PyGObject. This Python code works in context. I get a toolbar button with the stock "Open" icon. from gi.repository import Gtk # ... toolbar = Gtk.Toolbar() toolbar.ge...
Unrivaled asked 22/11, 2015 at 19:59

2

Solved

I'm using PyCharm 2.5 on Ubuntu 11.10, trying to develop an application using PyGObject 3.0 on Python 3.2.2. I've installed the Ubuntu package python3-gobject, and when I run my code, it works exac...
Wahlstrom asked 10/7, 2012 at 16:39

2

Solved

im trying to port some small examples from PyGTK to the new PyGobject bindings, but ive hit a roadblock with a popupmenu, despite getting no errors, no menu is being shown on rightclick, here is th...
Thaumatrope asked 26/6, 2011 at 16:45

1

Solved

I have a very simple PyGObject application: from gi.repository import Gtk, Gdk class Window(Gtk.Window): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.set_border...
Eyesore asked 27/9, 2015 at 19:40

© 2022 - 2024 — McMap. All rights reserved.