Questions tagged [pygi-aio]

PyGObject Win32. Python dynamic bindings of GObject-based Libraries for Windows.

PyGObject Win32.

Python dynamic bindings of GObject-based Libraries for Windows.
https://sourceforge.net/projects/pygobjectwin32/files/

9 questions
4
votes
0 answers

Python 3.4 importerror gtk

When I try to import gtk using: from gi.repository import Gtk I get: Traceback (most recent call last): File "", line 2158, in _find_spec AttributeError: 'DynamicImporter' object has no attribute 'find_spec' During…
Adam Sałata
  • 154
  • 2
  • 13
1
vote
0 answers

Build GUI project + cairo

Python 3.4 wxPython I need to build a project with all the libraries in one folder so that it can be transferred to other PCs. I don't need an exe file. Created a virtual environment, added all the libraries there. But the project uses PyGI 3.24.1…
ioprst
  • 187
  • 16
1
vote
1 answer

Using markup with Gtk.TextView

I have been trying to find a way to use Pango markup with Gtk.TextView and Gtk.TextBuffer in Python GObject, but it seems like this functionality is only available for tooltips and labels. Gtk.TextBuffer has the insert_markup method, but requires…
Holsterbau
  • 87
  • 1
  • 7
1
vote
0 answers

GdkPixbuf - Saving pixel data to file from Python

I am trying to save some pixels to a file using GdkPixbuf from Python in Windows. I am making use of the excellent PyGI AIO (3.14.0) binaries. #!/usr/bin/env python # -*- coding: utf-8 -*- from gi.repository import Gtk, Gdk, GdkPixbuf w, h, n = 4,…
kloffy
  • 2,928
  • 2
  • 25
  • 34
0
votes
1 answer

Styling list row with CSS in GTK+3

My Python app has a ListBox with some placeholder rows in them right now. for i in range(0, 10): myListRow = Gtk.ListBoxRow() myList.add(myListRow) myListItem = Gtk.Box(name="MyListItem", orientation=Gtk.Orientation.HORIZONTAL) …
Kavaeric
  • 43
  • 1
  • 6
0
votes
1 answer

GTK+3: Passing colours from Python to CSS

In the app I'm building, I have a variable with a hex colour code: accentColour = "#0877df" This value can be changed by the user. Since I'm using GTK+3, I'm using a CSS file to style the widgets. How can I pass the accentColour variable to use as…
Kavaeric
  • 43
  • 1
  • 6
0
votes
1 answer

PyGI: Styling Context Menu

I'm using PyGI to build a GUI for an app I've written in Python 3.4, and I'm using GTK+3's CSS implementation to style the interface. In my .css file, I've specified that all text by default should be white: * { color: #fff; } as I'm mostly…
Kavaeric
  • 43
  • 1
  • 6
0
votes
1 answer

Transferring code from pygst to pyGi

I wanted to build a program which streams radio from address. I wrote the following code: try: from gi.repository import Gst except AttributeError as e: pass def on_tag(bus, msg): taglist = msg.parse_tag() print 'on_tag:' for key…
Danis Fischer
  • 375
  • 1
  • 7
  • 27
0
votes
1 answer

GtkClutter - Clutter.Stage not receiving pointer events

I am using the excellent PyGI AIO (3.14.0) binaries to develop with Gtk3 and Clutter on Windows. So far it has been working great. However, there seems to be a problem with pointer events not reaching the Clutter.Stage inside a GtkClutter.Embed…
kloffy
  • 2,928
  • 2
  • 25
  • 34