Python Mini Project
Python Mini Project
Let’s try to make a game using Tkinter. In this game player has to enter
color of the word that appears on the screen and hence the score
increases by one, the total time to play this game is 30 seconds. Colors
used in this game are Red, Blue, Green, Pink, Black, Yellow, Orange,
White, Purple and Brown. Interface will display name of different colors in
different colors. Player has to identify the color and enter the correct color
name to win the game.
TABLE OF CONTENTS:
1. Introduction
2. Literature Review
3. Methodology
6. References:
1. INTRODUCTION
Let’s try to make a game using Tkinter. In this game player has to enter color of
the word that appears on the screen and hence the score increases by one, the
total time to play this game is 30 seconds. Colors used in this game are Red,
Blue, Green, Pink, Black, Yellow, Orange, White, Purple and Brown. Interface
will display name of different colors in different colors. Player has to identify the
color and enter the correct color name to win the game.
4. Results & Discussion
if timeleft == 60:
score += 1
random.shuffle(colours)
global timeleft
# if a game is in play
if timeleft > 0:
# Driver Code
timeLabel.pack()
6. References
(i) Technical Paper Details : Tk/Tcl has long been an integral part of
Python. It provides a robust and platform independent windowing toolkit, that is
available to Python programmers using the tkinter package, and its extension,
the tkinter.tix and the tkinter.ttk modules.
tkinter’s chief virtues are that it is fast, and that it usually comes bundled with
Python. Although its standard documentation is weak, good material is available,
which includes: references, tutorials, a book and others. tkinter is also famous
for having an outdated look and feel, which has been vastly improved in Tk 8.5.
Nevertheless, there are many other GUI libraries that you could be interested in.
For more information about alternatives, see the Other Graphical User Interface
Packages section.
(ii) Web reference : To learn more about any of the Tkinter topics
discussed here, you may like to refer to the following sources: