简体   繁体   English

wxpython支持像窗口一样聊天

[英]wxpython support for chat like window

I have been searching through for a while -how to go about making the gui for chat like window. 我已经搜索了一段时间-如何进行GUI窗口之类的聊天。 The basic need is to show the FB wall post sort of thing (constantly updating). 基本需求是显示FB墙柱式的事物(不断更新)。 (co-relating it with chat window) where there are multiple post and each post have demarking line. (将其与聊天窗口关联),其中有多个帖子,每个帖子都有标记行。

img post 1
------------
img post 2
------------ (along with scrolling enabled.)

Have explored some parts of TextCtrl/Combo Box, but would like to take suggestions about existing modules,if any, for something similar or any other good approach with TextCtrl/Combo Box. 已经探究了TextCtrl / Combo Box的某些部分,但是希望对现有模块(如果有)提出建议,以寻求与TextCtrl / Combo Box类似或其他好的方法。

I would use one of the text control widgets. 我将使用文本控件小部件之一。 The RichText ones or the StyledText controls would allow font manipulations fairly easily. RichText控件或StyledText控件将允许字体操作相当容易。 Or you could create a custom widget using something like wx.ClientDC to draw the text and write some scrolling code yourself. 或者,您可以使用wx.ClientDC之类的东西来创建自定义窗口小部件以绘制文本并自己编写一些滚动代码。 The latter is harder, but more flexible. 后者更难,但更灵活。

I think the ideal way to do this would be with wxWebkit, but that project is still in the early stages. 我认为理想的方法是使用wxWebkit,但是该项目仍处于早期阶段。

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

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