Cookbook GUI interface for a command-line script

前端 未结 4 1934
花落未央
花落未央 2021-01-03 10:11

I have a command-line Python script that works well to convert one sort of file into another given a few parameters and would now like to deploy this to some of my colleague

4条回答
  •  [愿得一人]
    2021-01-03 10:46

    Basically you just need to figure out what widgets will hold the data you want the best. I suspect you could use a couple combo boxes to hold different sets of extensions. Or you could just use the path name strings to figure that out. Hit a button and run the conversion process, probably in another thread so the GUI remains responsive.

    I'm biased for wxPython. However, you're better off taking a look at their demos and documentation and seeing which GUI toolkit fits your brain the easiest.

提交回复
热议问题