Sorry if this is an obvious question but I am new to python and can't seem to find an easy example for what I want to to.
I would like to define a button with tinker and then have that execute a scriptable shell binary file with options.
In TCL/TK, this would be a simple example ;
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/wish -f
- frame .rc -borderwidth 2
- wm title . "Resources"
- pack .rc
- button .rc.b -text "Press Me to process" -command {exec shake -x test.sk}
- pack .rc.b
So, I have looked as os.system and subprocess but I can't see an easy method to do this, like the above, simple 'hello world' type thing.
So in summary, if I went to a shell and typed shake -x test.sk, the shake binary would process its input file test.shk with the argument x and everything is ok. Calling {exec shake -x test.sk} from a tcl/tk script would do the same thing. I just can't seem to find a way to rewrite my example above using python.
Thanks for any help.