w******t 发帖数: 69 | 1 有个command line application,想直接拿来用,不改动程序, 但是想用WIDGET来做UI.
我考虑的方案是用一个local web server来实现widget 和这个程序的通信. WIDGET
通过web server去调用这个程序, 这部分没有问题. 但是反过来CALLBACK怎样实现? 这
个程序的EVENT怎样发送给WIDGET?
请高手支招!
谢谢! | m******t 发帖数: 2416 | 2 Why can't the "widget" talk to the command line app directly - via, for
instance, pipes? | w******t 发帖数: 69 | 3 Pipes,能说细点吗?
我觉得让WIDGET调用command line application不难, 但反过来, command line
application怎么样notify events to Widget?
thanks! | m******t 发帖数: 2416 | 4
Since you can't change the command line application, I presume the command
line app only knows to write to standard out?
【在 w******t 的大作中提到】 : Pipes,能说细点吗? : 我觉得让WIDGET调用command line application不难, 但反过来, command line : application怎么样notify events to Widget? : thanks!
|
|