We have some toolkits like Tkinter,Pmw to develop python programs. I am giving one link where you can get all the required syntax's what ever you required.
Now i am showing how to write a simple python program by using these components. The interesting thing is the output of program is tictac game.
NOTE:
1. In program i am assigning "single quotes" ie empty string to every variable b1,b2 etc after global b1,b2 etc....
2. Please maintain indentation while your writing this program.
You Can Download Source Code From The Following Link.....
OUTPUT
Here i am showing three output screen shots to understand the tictac game.
I hope now you can freely write any basic python programs like this....
All the best