test gui sample code by python