Diez B. Roggisch
1/11/2008 4:16:00 PM
byte8bits@gmail.com schrieb:
> I have a C program that works very well. However, being C it has no
> GUI. Input and Output are stdin and stdout... works great from a
> terminal. Just wondering, has anyone every written a Python GUI for an
> existing C program? Any notes or documentation available?
>
> I have experience using wxPython from within Python apps and I like it
> a lot for its cross-platform capabilities. I was hoping to use
> wxPython for this as well.
Modules subprocess and pexpect (3rd-party-package) are your friends.
Alternatively, if you have the source for the C-app, exposing it's
functionality as DLL/SO and using ctypes as means to access it might
work as well.
Diez