Skip to content

Commit ff7f822

Browse files
committed
Merge branch 'master' of github.com:congzhangzh/trio-guest-plus-asyncio-guest
2 parents 5068ba4 + 18a2e45 commit ff7f822

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

asyncio_guest/asyncio_guest_gtk.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
# limitations under the License.
1616
#
1717

18-
import sys
1918
from asyncio_guest_run import asyncio_guest_run, schedule_on_asyncio
19+
import asyncio_example_tasks
2020

21+
import sys
2122
import traceback
2223
from functools import wraps
2324

@@ -28,9 +29,6 @@
2829
from gi.repository import Gtk, GLib
2930
from outcome import Error
3031

31-
import example_tasks
32-
33-
3432
class GtkHost:
3533
def run_sync_soon_threadsafe(self, fn):
3634
# idle_add repeats infinitely unless fn returns False
@@ -86,10 +84,11 @@ def main(task):
8684
display,
8785
run_sync_soon_threadsafe=host.run_sync_soon_threadsafe,
8886
done_callback=host.done_callback,
89-
host_uses_signal_set_wakeup_fd=True,
87+
#TODO
88+
#host_uses_signal_set_wakeup_fd=True,
9089
)
9190
host.mainloop()
9291

9392

9493
if __name__ == "__main__":
95-
main(example_tasks.count)
94+
main(asyncio_example_tasks.count)

0 commit comments

Comments
 (0)