Re: GTK+ or PyGobject installation

2018-09-22 Thread Christoph Reiter via python-hackers-list
On Fri, Sep 21, 2018 at 5:35 PM, Maziar Parsijani wrote: > Hi Christoph Reiter > I checked it and it was installed.(gir1.2-gtk-3.0) OK, thanks. Please open an issue at https://gitlab.gnome.org/GNOME/pygobject/issues and include the code you are trying to execute plus the exact error mess

Re: GTK+ or PyGobject installation

2018-09-21 Thread Christoph Reiter via python-hackers-list
On Fri, Sep 21, 2018 at 9:23 AM, Maziar Parsijani via python-hackers-list wrote: > Hi, > I use debian 9.3 and PyCharm IDE .The python3-gi labraries and pygobject is > installed with synaptic now when I am going to import like this : > > import gi > gi.require_version("Gtk", "3.0") > from gi.reposi

Re: Create GLib.OptionContext from pointer

2018-05-16 Thread Christoph Reiter
On Sun, Apr 15, 2018 at 3:31 AM, Aleksandr Mezin wrote: > I call a non-introspectable function through ctypes. The function > returns GOptionContext*. > How can I create a pygobject wrapper (GLib.OptionContext) for it? You can't really, please open an issue at https://gitlab.gnome.org/GNOME/pygob

Re: OSX: importing gi from pygobject3: “ImportError: cannot import name _gi”

2018-04-12 Thread Christoph Reiter
On Thu, Apr 12, 2018 at 6:33 PM, Krister wrote: > brew reinstall pygobject3 gtk+3 Does "brew reinstall pygobject3 --with-python@2" help? homebrew has started to drop Python 2 stuff by default ___ python-hackers-list mailing list python-hackers-list

Re: Update pygi docs

2018-03-12 Thread Christoph Reiter
On Sun, Mar 11, 2018 at 12:53 PM, Christoph Reiter wrote: > On Sun, Mar 11, 2018 at 12:50 PM, infirit wrote: >> Hi, >> >> git.gnome.org for Gtk forwards the request to gitlab automatically but >> the line number is not working because it is handled differently. So

Re: Update pygi docs

2018-03-11 Thread Christoph Reiter
On Sun, Mar 11, 2018 at 12:50 PM, infirit wrote: > Hi, > > git.gnome.org for Gtk forwards the request to gitlab automatically but > the line number is not working because it is handled differently. So > source links in the docs work but don't move to the correct line number. > > I saw pgi-docgen g

Re: Python pointers in python-gi ?

2018-03-11 Thread Christoph Reiter
On Sun, Mar 11, 2018 at 1:47 AM, Reuben Rissler wrote: > This email is thoroughly explained by : > > https://stackoverflow.com/questions/49213440/how-does-one-call-gdk-frame-clock-get-refresh-info-from-python > > > As far as I can tell, when python-gi passes in a variable to a C function > which u

PyGObject NEWS

2018-01-11 Thread Christoph Reiter
PyGObject on PyPI You can now install PyGObject from PyPI through pip: virtualenv --python=python3 myvenv source myvenv/bin/activate pip install pygobject The version on there is currently the unstable 3.27.1 release to allow testing, but after 3.28 is out it

Re: Gitlab Migration

2017-12-10 Thread Christoph Reiter
On Wed, Dec 6, 2017 at 10:47 PM, infirit wrote: > Op 12/06/2017 om 07:45 PM schreef Christoph Reiter: >> Any thoughts? > > Getting rid of bugzilla and git.g.o isn't reason enough :P > > More seriously though. The github like integration in gitlab works very > well. An

Re: the directory for current theme used by Gtk

2017-12-09 Thread Christoph Reiter
I use the following to get a list of available themes, maybe it's useful: import os import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk, Gio def get_themes(): theme_dir = Gtk.rc_get_theme_dir() theme_dirs = [theme_dir, os.path.join(os.path.

Gitlab Migration

2017-12-06 Thread Christoph Reiter
I was wondering if we should register pygobject for migration to gitlab.gnome.org now that more things are moving there [0] Any thoughts? [0] https://mail.gnome.org/archives/desktop-devel-list/2017-December/msg00014.html ___ python-hackers-list mailing

Re: PyGObject GtkTreeStore.set override multiple signals

2017-11-14 Thread Christoph Reiter
On Tue, Nov 14, 2017 at 4:28 PM, infirit wrote: > Op 09/15/2017 om 12:58 PM schreef infirit: >> If something else needs to be added/changed please let me know. > > What else is needed to get this upstream? Looks like I missed your followup, sorry. Please file a bug at https://bugzilla.gnome.org/e

PyGObject CI System

2017-10-26 Thread Christoph Reiter
There is now a crude CI system for pygobject at https://github.com/pygobject/pygobject-ci It runs tests under Linux/Windows/macOS using different architectures and Python versions for the master and 3.26 branch. Rebuilds get triggered once per day using the cron feature provided by travis/circle/

Re: PyGObject GtkTreeStore.set override multiple signals

2017-08-20 Thread Christoph Reiter
On Sun, Aug 20, 2017 at 10:47 PM, infirit wrote: > Wouldn't using Gtk.ListStore.set in the override make much more sense? > Something like attached patch perhaps? Looks good to me. Maybe add a test counting the row-changed signals. ___ python-hackers-li

Re: gstreamer + pygobject problem

2017-07-06 Thread Christoph Reiter
On Fri, Jul 7, 2017 at 2:01 AM, Damon Lynch wrote: > Hello, > > This code to extract a frame of video works some of the time, but certainly > not all the time: > > https://gist.github.com/damonlynch/630224ac1c472cb73bc17b260e3cc5fb > > On a large number of versions of several mainstream Linux dist

Re: Gtk.AccelGroup connect and disconnec signals

2017-05-01 Thread Christoph Reiter
On Mon, May 1, 2017 at 2:10 PM, infirit wrote: > Very likely we will be breaking code. But if we are going to break existing > code we could also ask for a API change in Gtk itself? Reading the > guidelines on [1] asking for a API changes for language bindings it is a > valid reason. The question

Re: Gtk.AccelGroup connect and disconnec signals

2017-04-30 Thread Christoph Reiter
On Sat, Apr 29, 2017 at 5:32 PM, infirit wrote: > Hi, > > In the old PyGtk connecting and disconnecting accelerator keys was renamed > because it interferes with GObject signal (dis)connect. They then decided to > use Gtk.AccelGroup.(dis)connect_group, see [1]. > > The question is, should the same

Re: Some PyGObject related news/updates

2017-04-28 Thread Christoph Reiter
On Fri, Apr 28, 2017 at 6:29 PM, John Ralls wrote: > Thanks, that's a much better explanation, though it still doesn't explain why > you chose to host the docs and doc generator on Github instead of > git.gnome.org. Likewise, while I agree with you about documentation on wikis, > Gnome has http

Re: Some PyGObject related news/updates

2017-04-28 Thread Christoph Reiter
On Fri, Apr 28, 2017 at 4:11 PM, John Ralls wrote: > This doesn't make sense. I'll try to clarify. At least I consider the documentation and documentation generation to be a part of the PyGObject "project" since it's hard to use without and by "official" I meant that users, when finding the page

Some PyGObject related news/updates

2017-04-28 Thread Christoph Reiter
Hey everyone, * There now exists a "pygobject" [0] github organization containing repos related to everything Python + GObject related. My hope here is to make them look a bit more "official", give an overview of all the work happening, and to reduce the bus factor. * The organization also

Re: PyGObject GLib.spawn_async versus documentation

2017-01-11 Thread Christoph Reiter
On Tue, Jan 10, 2017 at 11:58 PM, Christoph Reiter wrote: > On Tue, Jan 10, 2017 at 6:15 PM, infirit wrote: >> This confused the hell out of me until I looked for some examples on the >> internet. I found in the GLib override that g_spawn_async is reassigned >> with gi.

Re: PyGObject GLib.spawn_async versus documentation

2017-01-10 Thread Christoph Reiter
On Tue, Jan 10, 2017 at 6:15 PM, infirit wrote: > This confused the hell out of me until I looked for some examples on the > internet. I found in the GLib override that g_spawn_async is reassigned > with gi._gi._glib.spawn_async which is my guess the reason it is t is > different. Is that a know i

Re: PyGobject internals and documentation

2016-12-31 Thread Christoph Reiter
On Mon, Dec 26, 2016 at 8:22 PM, David Bellot wrote: > On my road to understand how libgirepository works (and without > documentation it's not easy), I have a naive question: > - what is the use of girffi and a structure like GIFunctionInvoker, and in > general the use of libffi, when there is a

Re: Subclass Gio.DBusProxy and UnicodeDecodeError under python 3

2016-12-12 Thread Christoph Reiter
On Sun, Dec 11, 2016 at 6:12 PM, infirit wrote: > Hi all, > > I subclassed Gio.DBusProxy and overridden the do_g_properties_changed > virtual function. In there I emit my own signal that consumers of the > proxy can connect to. I have created a minimal example of what I am > doing which you can fi

Re: Python 3.4 / GTK3 / Async

2016-10-03 Thread Christoph Reiter
Afaik you need something like https://github.com/nathan-hoad/gbulb On Mon, Oct 3, 2016, 17:08 wrote: > Hi > > I use tkinter with a async function on a Linux/Window app. > Now I will use gtk3 instead of tkinter. > Is there also a way to run my async function? > How should I adapt the code > Here

Re: does gobject-introspection support C structs with bit fields?

2016-09-12 Thread Christoph Reiter
On Thu, Jul 21, 2016 at 8:03 PM, Giuseppe Scrivano wrote: > Are C structs with bit fields supported? We can't replace the bit > fields at this point, as it would be a breaking change for us. Any > suggestions? Doesn't look like it; at least not completely. The gir contains field sizes but libgi

Re: ListStore & python3

2016-09-12 Thread Christoph Reiter
On Thu, Aug 4, 2016 at 5:30 PM, Patate Crude wrote: > Hi, > > I'm trying to have my application run under both python2 and 3, and I'm > having a surprising problem. > > I have a gtk.ListStore with a column that has to hold integers between > 2^32 and 2^64, what would be long's in python2. Have a

Re: testing for GType == 0

2016-06-18 Thread Christoph Reiter
On Sat, Jun 18, 2016 at 6:23 PM, wrote: > What would be the best way to test the return value of image.get_type() > for invalid? image.get_type() == GObject.TYPE_INVALID ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gn

Re: Can't run tests in PyGObject

2016-05-25 Thread Christoph Reiter
On Wed, May 25, 2016 at 8:57 PM, charishma wrote: > Kerrick Staley writes: > >> >> >> Hello. In my .jhbuildrc, I have the modules list set to ['pygobject', > 'clutter']. I ran >> >> jhbuild build >> jhbuild shell >> git clone git://git.gnome.org/pygobject >> >> >> cd pygobject >> make >> cd test

Re: Can't start glade 3.18 from pygi AIO for windows 7

2016-05-22 Thread Christoph Reiter
On Sun, May 22, 2016 at 3:00 PM, Jose Luis Toledano Lopez wrote: > > > El 22/05/2016 a las 14:57, Christoph Reiter escribió: >> >> os.environ['PANGOCAIRO_BACKEND'] = 'win32' > > > what doesn't start is the glade editor sry for the confusio

Re: Can't start glade 3.18 from pygi AIO for windows 7

2016-05-22 Thread Christoph Reiter
On Sun, May 22, 2016 at 2:10 PM, Jose Luis Toledano Lopez wrote: > Hi: > > > I was working on my app until some day the glade app stoped working > causing a memory leak and never starting up > > it ups to 2 GB or more ram > > > I can0't find any help on the internet so I come here waiting for

Re: Python gdbus example server

2014-12-17 Thread Christoph Reiter
On Wed, Dec 17, 2014 at 12:16 AM, Tony Asleson wrote: > - How do I find the corresponding constants for things like: > G_IO_ERROR, G_IO_ERROR_FAILED, G_DBUS_ERROR_MATCH_RULE_NOT_FOUND and https://lazka.github.io/pgi-docs/#Gio-2.0/mapping.html ___ pyth

Re: Poor performance with large ListStore/TreeView

2014-01-14 Thread Christoph Reiter
2014/1/14 Jonathan Ballet : > I'm a bit out of idea on what else I can try. I can provide more > information about those numbers, especially if you need some profiling > data. I'm all in for more PyGObject performances too, although I don't > where to start in the code base, but I'm willing to try

Re: gi.repository destroys auto-completion

2013-12-30 Thread Christoph Reiter
2013/12/30 Profpatsch : > import gi.repository > destroys any kind of autocompletion, be it in ipython or in jedi. I can't reproduce this with ipython $ ipython --version 0.13.2 $ python -c "import gi;print gi.version_info" (3, 10, 2) ___ python-hacker

Re: Getting more informations from Gtk-CRITICAL & co

2013-02-24 Thread Christoph Reiter
2013/2/24 Jonathan Ballet : > Hi, > > Sometimes, I get some Gtk-CRITICAL errors in the console when running > applications using PyGObject, such as: > > (sonata:10324): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion > `icon_set != NULL' failed Long shot: I had something similar yeste