#Quiz

4 messages · Page 1 of 1 (latest)

keen forge
#

I'm trying to make my quiz look like this (1st image) but it looks like this so far (2nd image) i'm basically trying to center both images the logo and layout like the 1st image in the center can anyone help me with this

keen forge
#

i can send the code if u would like

ember zealot
#

You've gotta give code. No one knows what you're doing incorrectly from these pictures

keen forge
#
from tkinter import *
root=Tk()
# Adding width and height for the window
root.geometry('1920x1080')
#Giving the window a title
root.title('Mathematical Quiz Game')
# Giving the window background a black color
root.config(bg='black')

leftframe=Frame(root, bg='black', padx=90)
leftframe.grid(row=0, column=0)

rightframe=Frame(root)
rightframe.grid(row=0, column=1)

topframe=Frame(leftframe, bg='black', pady=15)
topframe.grid(row=0, column=0)

centerframe=Frame(leftframe, bg='black', pady=15)
centerframe.grid(row=1, column=0)

bottomframe=Frame(leftframe)
bottomframe.grid(row=3, column=0)

centerImage=PhotoImage(file='img.png')
logoLabel=Label(centerframe,image=centerImage, bg='black', width=500, height=500)
logoLabel.grid(row=0,column=0)

layoutImage=PhotoImage(file='layout.png')
layoutLabel=Label(bottomframe, image=layoutImage, bg='black')
layoutLabel.grid(row=0, column=0)








root.mainloop()