【发布时间】:2021-05-03 12:28:29
【问题描述】:
gnuplot 终端 qt 接受 widget id (http://www.bersch.net/gnuplot-doc/complete-list-of-terminals.html#qt)。
如何使用此 ID 号将 gnuplot qt 窗口嵌入到 pyqt5 应用程序中?我将不胜感激一个最小的工作代码。
关于 c++ 的类似问题没有答案 (Embed gnuplot inside existing QtWidget)。
为了比较,tcl/tk (program wish) + x11 终端下面的作品
set unit [open "| gnuplot 2>@1" w+]
frame .x11 -bg "white" -width 640 -height 450
button .b1 -text "some button"
pack .x11 .b1
puts $unit "set term x11 window '[winfo id .x11]'"
flush $unit
puts $unit "pl sin(x)"
flush $unit
【问题讨论】:
-
c++ 问题有答案——第一条评论
-
@mugiseyebrows 从技术上讲不是答案,而是评论
-
但是它在 pyqt 中看起来如何?