Updated python test gui code with more examples from tutorial