Meanings extracted from this website
This project has a GUI interface that is built using the Tkinter library.
The GUI contains buttons with cards as images.
The 22 card buttons correspond to 22 cards of major arcana.
The placement(upright or reverse) as well as the sequence of the cards generated are random.
The generated sequence as well the chosen cards are stored in a list.
The cards' meanings are stored in meaning.py
This program has the following functions:
+main()
This function calls the GUI() function
+tips_title()
(created for the sake of meeting CS50 criteria)
This function returns the text for the title of tips section.
+tips_text()
(created for the sake of meeting CS50 criteria)
This function returns the text for the body of tips section.
+button_click(card)
This function is called when a button is clicked, i.e, a card is chosen.
This function appends the card clicked(chosen) by the user into a list called chosen_list.
+GUI()
This function is responsible for all of the front-end and most of the back-end portion of this program.
For the backend portion
It generates the random sequence of the tarot card and stores it in a list cards
It also stores a list of Tkinter buttons and stores it in a list called btn
The sequence and the card number and the position of the chosen cards are used to extract meaning from the list of dictionaries CardList
This function also displays the final reading.
For the frontend portion
It inserts the title and icon of the GUI window.
It displays the button as per the specified grid on the screen and also adds image to the button