project/__main__.py
def change_background(self, status: str):
        """
        Changes background according to the weather
        :param status: Weather status. E.g. `Clear`
        """
        self.background_image = ImageTk.PhotoImage(
            Image.open(f"data/{status}.jpg"))
        self.main_canvas.itemconfig(self.canvas_image,
                                    image=self.background_image)

        Changes background according to the weather
        :param status: Weather status. E.g. `Clear`
        
Changes background according to the weather
Changes background according to the weather
def change_background(self, status: str):
        self.background_image = ImageTk.PhotoImage(
            Image.open(f"data/{status}.jpg"))
        self.main_canvas.itemconfig(self.canvas_image,
                                    image=self.background_image)
def change_background ( self , status : str ) : self . background_image = ImageTk . PhotoImage ( Image . open ( f"data/{status}.jpg" ) ) self . main_canvas . itemconfig ( self . canvas_image , image = self . background_image )
Changes background according to the weather
Changes background according to the weather
"""
        Changes background according to the weather
        :param status: Weather status. E.g. `Clear`
        """
self
status
str
Weather status. E.g. `Clear`
Weather status . E . g . ` Clear `