On dimanche 21 décembre 2008, Florian Höch wrote: > Frédéric wrote: > >> Hiding the underlying utilities and the shell window is on my list, > >> but I have yet to find a way to interact with the commandline tools > >> like dispcal programmatically (and cross-platform). > > > > subprocess module should do this: > > > > http://docs.python.org/library/subprocess.html#module-subprocess > > Unfortunately only part of what I need, because it cannot send keyboard > input to dispcal. So something like pexpect might be worth a try. But > its not available for Windows afaik, which makes me wonder if I maybe > should try and write some wrappers for the C functions in dispcal > directly (but, being no C programmer, I don't know how hard that would > be). Yes, you're right. But I saw something about keyboard emulation for python a few days ago; I'll try to find it... -- Frédéric http://www.gbiloba.org