Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 pygtk 2.0。
我知道我可以将图像插入到 gtk.TextBuffer() 中,但我找不到任何关于插入小 mp4 的信息。
我想到了一个动画 gif(如果可能的话),但我认为他们想改用 mp4 文件。
如果有人知道,请指教。预先感谢。
根据我在 Internet 上收集到的信息,您无法将 mp4 嵌入到 gtk.TextBuffer 中。您可以嵌入图像,例如 png。
需要将其嵌入到表格或框架之类的小部件中,然后向终端发送命令以启动播放视频的 mp4 播放器。