Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 527e59f

Browse files
committed
Add README header about project archival.
1 parent 912908c commit 527e59f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
THIS PROJECT HAS BEEN ARCHIVED
2+
==============================
3+
4+
**With the release of PyGObject 3.50.0, GBulb is no longer required**. PyGObject
5+
now contains native integration with the Python event loop. If you require
6+
asyncio support in your GTK app, we advise upgrading your project to use the
7+
native asyncio API of `PyGObject 3.50.0+ <https://pypi.org/project/PyGObject/>`__.
8+
9+
Example usage of PyGObject with native asyncio support::
10+
11+
import asyncio
12+
13+
import gi
14+
gi.require_version("Gtk", "3.0")
15+
16+
from gi.events import GLibEventLoopPolicy
17+
from gi.repository import Gtk
18+
19+
asyncio.set_event_loop_policy(GlibEventLoopPolicy())
20+
21+
app = Gtk.Application(...)
22+
app.run()
23+
24+
The last published version of this project (v0.6.6) is compatible with versions of
25+
PyGObject prior to 3.50.0.
26+
127
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/gbulb.svg
228
:target: https://pypi.python.org/pypi/gbulb
329
:alt: Python Versions

0 commit comments

Comments
 (0)