使用 Python wxWidgets 添加聊天控件的最佳方法是什么? (wxpython)
What's the best way to add a chat control with Python wxWidgets? (wxpython)
我正在编写一个界面类似于 MSN 界面的聊天机器人。
我需要一个白色背景的控件,该控件需要可滚动,以便它只显示最近的消息。我正在使用 StaticText 控件,但可能有更好的东西。
我知道我可以在每次有新文本时创建一个标签并将其放入可滚动面板中,但我想知道是否有更好的选择。
只读 wxTextCtrl (with attributes allowing you to use colours/bold/italic, but not much more), wxRichTextCtrl (with many more features, but quite a bit slower) or even wxHtmlWindow 比使用多个 wxStaticText
控件更好。
我正在编写一个界面类似于 MSN 界面的聊天机器人。
我需要一个白色背景的控件,该控件需要可滚动,以便它只显示最近的消息。我正在使用 StaticText 控件,但可能有更好的东西。
我知道我可以在每次有新文本时创建一个标签并将其放入可滚动面板中,但我想知道是否有更好的选择。
只读 wxTextCtrl (with attributes allowing you to use colours/bold/italic, but not much more), wxRichTextCtrl (with many more features, but quite a bit slower) or even wxHtmlWindow 比使用多个 wxStaticText
控件更好。