<a href="mailto:tutor@python.org"></a>Could someone please point me to resources that would help me learn to pipe keyboard input for commands to a Tkinter GUI, and then to automate saving a screen shot of the resulting GUI display? Is this even possible?<br>
<br>I'm trying to automate regression testing of a simple Tkinter GUI. I'd like to supplant manual entry of keyboard commands (hotkeys like Alt-F, tabs and arrows to move among fields and buttons, data entry, 'enter', etc) with a file holding all that stuff, and store an image of the outcome for later review or comparison. <br>
<br>Simply piping a file to the GUI didn't work, but I don't know if this is because the pipe doesn't work or because I don't know how to properly represent events like Alt-F or Tab in the text file. I've looked in Programming Python and the Python Cookbook, and on the 'net, but haven't found anything that seems helpful.<br>
<br>Any help would be appreciated -- I don't want to manually step through a bunch of menu trees every time I make a change!<br><br><br>