Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to make a Command Line Interface from a given data model used for GUI
    primarykey
    data
    text
    <p>HI, guys. I am developing a GUI to configure and call several external programs with Python and I use wxPython for the GUI toolkits. Basically, instead of typing commands and parameters in each shell for each application (one application via one shell), the GUI is visualizing these parameters and call them as subprocesses. I have built the data model and the relevant view/gui controls (mainly by using the observer pattern or try to separate model with the gui widgets), and it is OK. </p> <p>Now there is a request from my colleagues and many other people (even including myself), is it possible to have a command line interface for the subprocesses, or even for the whole configuration GUI, based on the data model I already have? This is due to the fact that many people prefer CLI, CLI is better in reliability, and also needs of programmer debugging and interfacing. </p> <p>As I am rather new to developing a CLI, I really need some help from you. I appreciate any advice and information from you. </p> <p>to be more specific, </p> <ol> <li><p>If I completely forget about the data model built for GUI, start from scratch. Is there some good materials or samples to have a reference?</p></li> <li><p>If I still want to utilize the data model built for GUI, is it possible? If possible, what shall I do and any samples to follow? Do I need to refactor the data model?</p></li> <li><p>Is it possible to have the CLI and GUI at the same time? I mean, can I take the CLI as another view of the data model? Or there is other right approach? </p></li> </ol> <p>Thank you very much for your help!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload