how do i get the frame to fill the screen om tkinter

Viewed 28

im creating a quiz for my computer science project and i am unable to get the customtkinter background to fill the whole screen

here is a screenshotenter image description here

and here is my code:

from tkinter import*
import customtkinter
import tkinter as tk
from tkinter import ttk
from PIL import ImageTk, Image


class homepage(customtkinter.CTkFrame):
      def __init__(self, master):
          customtkinter.CTkFrame.__init__(self, master)
          self.Frame = customtkinter.CTkFrame(
          master=self,).pack()

          self.Button = customtkinter.CTkButton(self, text="sign up", 
                        command=lambda: master.switch_frame( "pagethree")).pack()
        
          self.Button = customtkinter.CTkButton(self, text="login", 
          command=lambda: master.switch_frame(            "Pageone")).pack()

        
0 Answers
Related