[Tutor] Re: Learning Python by example

Roel Schroeven rschroev_nospam_ml at fastmail.fm
Thu Sep 16 13:53:29 CEST 2004


nvettese at pdistributors.com wrote:

> My biggest issue is knowing the undertaking in converting a command line
> application to GUI with Python.

My advice is to put all application-specific functionality in functions 
and/or classes within modules. That way you can access the functionality 
from a command line or a GUI application.

Another option is a GUI that wraps around a command line application, as 
e.g. k3b does with cdrecord. But I think it is more difficult (because 
of the extra complexity of communication between GUI and command line) 
and it often results in a less integrated package.

-- 
"Codito ergo sum"
Roel Schroeven



More information about the Tutor mailing list