简体   繁体   English

集成在GTK3 / PyGObject中的Python网络/ TCP软件包

[英]Python network/tcp package that integrates in GTK3/PyGObject


I am writing an application with Python3 and GTK3 and I need some basic networking library. 我正在用Python3和GTK3编写应用程序,我需要一些基本的网络库。

Which choices do I have? 我有哪些选择?
Do I need to integrate a package into the gtk main loop or is there some other way? 我需要将软件包集成到gtk主循环中还是有其他方法?
What about Twisted? 扭曲呢? Would the in-development python3 support work in my case? 在我的情况下,开发中的python3支持会正常工作吗? (I think Twisted supports gtk main-loop integration?) Is it a good idea to use it already? (我认为Twisted支持gtk主循环集成吗?)已经使用它是一个好主意吗?

Lots of questions :-) 很多问题:-)

Thanks, 谢谢,
Fabian Henze 法比安·亨泽(Fabian Henze)

GIO is the IO library that GTK+ uses, but I don't see a reason why any other library can't be used. GIO是GTK +使用的IO库,但是我看不出无法使用任何其他库的原因。 You just need to make sure that all UI changes are done within the GDK lock; 您只需要确保所有UI更改都在GDK锁内完成; the PyGTK FAQ (especially section 20) has some tips for this, although some of it may not be relevant to the new PyGObject. PyGTK常见问题解答 (特别是第20节)为此提供了一些提示,尽管其中一些可能与新的PyGObject不相关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM