Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 6ae28df

Browse files
Version 3.0 Update
1 parent 01414f8 commit 6ae28df

File tree

4 files changed

+48
-3
lines changed

4 files changed

+48
-3
lines changed

Erin Hunter Book Chooser Main Window.py

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,39 @@
44
window = Tk()
55
window.title("Erin Hunter Book Chooser")
66

7-
label = Label( window, text = "Welcome to the Erin Hunter Book Chooser.\nPlease choose your favorite animal and the app will select your most likely favorite book written by Erin Hunter.\n You can visit the website link displayed to learn more.\n\nClick the X button to continue!")
7+
label = Label( window, text = "Welcome to the Erin Hunter Book Chooser.\nPlease select your favorite animal below and the app will select your favorite Erin Hunter authored book.\n You can visit the website link displayed to learn more afterwards.\n")
88

99
label.pack( padx = 300, pady = 100 )
1010

11-
import mainchoice
11+
12+
frame = Frame(window)
13+
14+
book = StringVar()
15+
16+
17+
radio_1 = Radiobutton( frame, text='Cats', \
18+
variable = book, value = ' Warriors by Erin Hunter.\nVisit warriorscats.com for more information.')
19+
radio_2 = Radiobutton( frame, text='Bears', \
20+
variable = book, value = ' Seekers by Erin Hunter.\nVisit seekrsbears.com for more information.')
21+
radio_3 = Radiobutton(frame, text='Dogs', \
22+
variable = book, value = ' Survivors by Erin Huter.\nVisit survivorsdogs.com for more information.')
23+
24+
radio_1.select()
25+
26+
def dialog():
27+
box.showinfo('Erin Hunter Book Selection', \
28+
'Your Erin Hunter Book selection is:' + book.get() )
29+
30+
btn = Button( frame, text = 'Choose', command = dialog)
31+
32+
btn.pack(side = RIGHT, padx = 5)
33+
radio_1.pack(side = LEFT)
34+
radio_2.pack(side = LEFT)
35+
radio_3.pack(side = LEFT)
36+
frame.pack( padx = 30, pady = 30 )
37+
38+
window.mainloop()
39+
1240

1341
window.mainloop()
1442

Requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
In order to run this application you must have the following:
2+
3+
- Python 3.5 or higher
4+
- Tkinter -Tk()-

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
if sys.platform == 'win32' : base = 'Win32GUI'
66

77
setup( name = 'Erin Hunter Book Chooser' ,
8-
version = '1.0' ,
8+
version = '3.0' ,
99
description = 'Choose\'s Erin Hunter books.' ,
1010
author = 'William Vandergraaf' ,
1111
option = { 'build_exe' : opts } ,

setup_information.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import setup
2+
import os
3+
import sys
4+
5+
setup(
6+
name='Erin Hunter Book Chooser',
7+
version='3.0',
8+
author = 'William Vandergraaf',
9+
author_email = 'willtheorangeguy@outlook.com',
10+
url = 'https://github.com/dog-face-development/erin-hunter-book-chooser',
11+
license='MIT',
12+
description= "This program will select you favorite Erin Hunter authored book based on you favorite of three animals.",
13+
)

0 commit comments

Comments
 (0)