Exemplo n.º 1
0
from PIL import Image, ImageTk

window = Tk()

#GUI window
window.title('Match Predictor')
window.geometry('660x700')
window.resizable(False, False)

#Logo
FRAME2 = LabelFrame(window)
FRAME2.grid(padx=10, pady=10)
IMAGEX = Image.open('messi.jpg')
PHOTOX = ImageTk.PhotoImage(IMAGEX)
LABELX = Label(FRAME2, image=PHOTOX)
LABELX.IMAGEX = PHOTOX
LABELX.grid(padx=3, pady=3)


def about_menu():
    """About program menu text."""
    messagebox.showinfo('Program Information', 'Match Predictor\n'  \
                        'For 2019-2020 Premier League season.\n\n')


def help_menu():
    """How to use the program menu help text."""
    messagebox.showinfo('How To...', 'Match Predictor\n\n'  \
                        'To obtain a prediction for any Premier League football'  \
                        ' match for the 2019-2020 season, first select the home'  \
                        ' team from the drop down list on the left, and then '  \