app/home_page.py
def open_new_page(self, page_name):
        """Open Search or Compare Page based on passed
        argument (clicked button) and minimize the actual one."""

        # minimize actual window
        self.master.iconify()

        # open the new chosen one
        SearchPage(parent_self=self) if page_name == 'search_page' \
            else ComparePage(parent_self=self)
Open Search or Compare Page based on passed
        argument (clicked button) and minimize the actual one.
Open Search or Compare Page based on passed
argument (clicked button) and minimize the actual one.
Open Search or Compare Page based on passed argument ( clicked button ) and minimize the actual one .
def open_new_page(self, page_name):
        self.master.iconify()
        SearchPage(parent_self=self) if page_name == 'search_page' \
            else ComparePage(parent_self=self)
def open_new_page ( self , page_name ) : self . master . iconify ( ) SearchPage ( parent_self = self ) if page_name == 'search_page' else ComparePage ( parent_self = self )
Open Search or Compare Page based on passed
argument (clicked button) and minimize the actual one.
Open Search or Compare Page based on passed argument ( clicked button ) and minimize the actual one .
"""Open Search or Compare Page based on passed
        argument (clicked button) and minimize the actual one.""" # minimize actual window # open the new chosen one
self
page_name