import tkinter as tk
from tkinter import font as tkfont
import gui as gui



class Main(tk.Tk):

    def __init__(self, *args, **kwargs):
        tk.Tk.__init__(self, *args, **kwargs)

        self.geometry("500x700")  # You want the size of the app to be 500x500
        self.resizable(0, 0)  # Don't allow resizing in the x or y direction
        self.title('Korean Food')

        self.title_font = tkfont.Font(family='Helvetica', size=18, weight="bold", slant="italic")

        # the container is where we'll stack a bunch of frames
        # on top of each other, then the one we want visible
        # will be raised above the others
        container = tk.Frame(self)
        container.pack(side="top", fill="both", expand=True)
        container.grid_rowconfigure(0, weight=1)
        container.grid_columnconfigure(0, weight=1)

        self.frames = {}
        for F in (gui.Mainpage, gui.Secondpage):
            page_name = F.__name__
            frame = F(parent=container, controller=self)
            self.frames[page_name] = frame

            # put all of the pages in the same location;
            # the one on the top of the stacking order
            # will be the one that is visible.
            frame.grid(row=0, column=0, sticky="nsew")

        self.show_frame("Mainpage")

    def show_frame(self, page_name):
        '''Show a frame for the given page name'''
        frame = self.frames[page_name]
        print(type(frame))
        frame.tkraise()

    def which_frame(self, page_name):
        '''this gives the page object back. With this its possible to use the functions inside that object'''
        frame = self.frames[page_name]
        return frame


if __name__ == "__main__":
    app = Main()
    app.mainloop()
444a99bdf5548a524ef22000b34d40ad56993b0a
<mask token>


class Main(tk.Tk):

    def __init__(self, *args, **kwargs):
        tk.Tk.__init__(self, *args, **kwargs)
        self.geometry('500x700')
        self.resizable(0, 0)
        self.title('Korean Food')
        self.title_font = tkfont.Font(family='Helvetica', size=18, weight=
            'bold', slant='italic')
        container = tk.Frame(self)
        container.pack(side='top', fill='both', expand=True)
        container.grid_rowconfigure(0, weight=1)
        container.grid_columnconfigure(0, weight=1)
        self.frames = {}
        for F in (gui.Mainpage, gui.Secondpage):
            page_name = F.__name__
            frame = F(parent=container, controller=self)
            self.frames[page_name] = frame
            frame.grid(row=0, column=0, sticky='nsew')
        self.show_frame('Mainpage')

    def show_frame(self, page_name):
        """Show a frame for the given page name"""
        frame = self.frames[page_name]
        print(type(frame))
        frame.tkraise()
    <mask token>


<mask token>

<mask token>


class Main(tk.Tk):

    def __init__(self, *args, **kwargs):
        tk.Tk.__init__(self, *args, **kwargs)
        self.geometry('500x700')
        self.resizable(0, 0)
        self.title('Korean Food')
        self.title_font = tkfont.Font(family='Helvetica', size=18, weight=
            'bold', slant='italic')
        container = tk.Frame(self)
        container.pack(side='top', fill='both', expand=True)
        container.grid_rowconfigure(0, weight=1)
        container.grid_columnconfigure(0, weight=1)
        self.frames = {}
        for F in (gui.Mainpage, gui.Secondpage):
            page_name = F.__name__
            frame = F(parent=container, controller=self)
            self.frames[page_name] = frame
            frame.grid(row=0, column=0, sticky='nsew')
        self.show_frame('Mainpage')

    def show_frame(self, page_name):
        """Show a frame for the given page name"""
        frame = self.frames[page_name]
        print(type(frame))
        frame.tkraise()

    def which_frame(self, page_name):
        """this gives the page object back. With this its possible to use the functions inside that object"""
        frame = self.frames[page_name]
        return frame


<mask token>

<mask token>


class Main(tk.Tk):

    def __init__(self, *args, **kwargs):
        tk.Tk.__init__(self, *args, **kwargs)
        self.geometry('500x700')
        self.resizable(0, 0)
        self.title('Korean Food')
        self.title_font = tkfont.Font(family='Helvetica', size=18, weight=
            'bold', slant='italic')
        container = tk.Frame(self)
        container.pack(side='top', fill='both', expand=True)
        container.grid_rowconfigure(0, weight=1)
        container.grid_columnconfigure(0, weight=1)
        self.frames = {}
        for F in (gui.Mainpage, gui.Secondpage):
            page_name = F.__name__
            frame = F(parent=container, controller=self)
            self.frames[page_name] = frame
            frame.grid(row=0, column=0, sticky='nsew')
        self.show_frame('Mainpage')

    def show_frame(self, page_name):
        """Show a frame for the given page name"""
        frame = self.frames[page_name]
        print(type(frame))
        frame.tkraise()

    def which_frame(self, page_name):
        """this gives the page object back. With this its possible to use the functions inside that object"""
        frame = self.frames[page_name]
        return frame


if __name__ == '__main__':
    app = Main()
    app.mainloop()

import tkinter as tk
from tkinter import font as tkfont
import gui as gui


class Main(tk.Tk):

    def __init__(self, *args, **kwargs):
        tk.Tk.__init__(self, *args, **kwargs)
        self.geometry('500x700')
        self.resizable(0, 0)
        self.title('Korean Food')
        self.title_font = tkfont.Font(family='Helvetica', size=18, weight=
            'bold', slant='italic')
        container = tk.Frame(self)
        container.pack(side='top', fill='both', expand=True)
        container.grid_rowconfigure(0, weight=1)
        container.grid_columnconfigure(0, weight=1)
        self.frames = {}
        for F in (gui.Mainpage, gui.Secondpage):
            page_name = F.__name__
            frame = F(parent=container, controller=self)
            self.frames[page_name] = frame
            frame.grid(row=0, column=0, sticky='nsew')
        self.show_frame('Mainpage')

    def show_frame(self, page_name):
        """Show a frame for the given page name"""
        frame = self.frames[page_name]
        print(type(frame))
        frame.tkraise()

    def which_frame(self, page_name):
        """this gives the page object back. With this its possible to use the functions inside that object"""
        frame = self.frames[page_name]
        return frame


if __name__ == '__main__':
    app = Main()
    app.mainloop()

import tkinter as tk
from tkinter import font as tkfont
import gui as gui



class Main(tk.Tk):

    def __init__(self, *args, **kwargs):
        tk.Tk.__init__(self, *args, **kwargs)

        self.geometry("500x700")  # You want the size of the app to be 500x500
        self.resizable(0, 0)  # Don't allow resizing in the x or y direction
        self.title('Korean Food')

        self.title_font = tkfont.Font(family='Helvetica', size=18, weight="bold", slant="italic")

        # the container is where we'll stack a bunch of frames
        # on top of each other, then the one we want visible
        # will be raised above the others
        container = tk.Frame(self)
        container.pack(side="top", fill="both", expand=True)
        container.grid_rowconfigure(0, weight=1)
        container.grid_columnconfigure(0, weight=1)

        self.frames = {}
        for F in (gui.Mainpage, gui.Secondpage):
            page_name = F.__name__
            frame = F(parent=container, controller=self)
            self.frames[page_name] = frame

            # put all of the pages in the same location;
            # the one on the top of the stacking order
            # will be the one that is visible.
            frame.grid(row=0, column=0, sticky="nsew")

        self.show_frame("Mainpage")

    def show_frame(self, page_name):
        '''Show a frame for the given page name'''
        frame = self.frames[page_name]
        print(type(frame))
        frame.tkraise()

    def which_frame(self, page_name):
        '''this gives the page object back. With this its possible to use the functions inside that object'''
        frame = self.frames[page_name]
        return frame


if __name__ == "__main__":
    app = Main()
    app.mainloop()