Re: Python 3.4 / GTK3 / Async

2016-10-04 Thread Adam Tauno Williams
On Mon, 2016-10-03 at 17:01 +0200, adrian.l...@bluewin.ch wrote:
> 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?

I believe the only requirement when using Gtk is to only call Gtk
methods [change the UI] from the main thread;  so if other threads just
queue or signal the main thread you should be OK.


-- 
Meetings Coordinator, Michigan Association of Railroad Passengers
537 Shirley St NE Grand Rapids, MI 49503-1754 Phone: 616.581.8010
E-mail: awill...@whitemice.org GPG#D95ED383 Web: http://www.marp.org


___
python-hackers-list mailing list
python-hackers-list@gnome.org
https://mail.gnome.org/mailman/listinfo/python-hackers-list


Re: Python 3.4 / GTK3 / Async

2016-10-04 Thread Christian Stadelmann
Am Dienstag, den 04.10.2016, 08:44 -0400 schrieb Adam Tauno Williams:
> On Mon, 2016-10-03 at 17:01 +0200, adrian.l...@bluewin.ch wrote:
> > 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?
> 
> 
> I believe the only requirement when using Gtk is to only call Gtk
> methods [change the UI] from the main thread;  so if other threads
> just
> queue or signal the main thread you should be OK.

I think so too.

And anyway, don't expect too much from async operations since CPython
(the default interpreter) has a global interpreter lock forcing it to
run single-threaded.

signature.asc
Description: This is a digitally signed message part
___
python-hackers-list mailing list
python-hackers-list@gnome.org
https://mail.gnome.org/mailman/listinfo/python-hackers-list