from pathlib import Path
from tkinter import (
    Tk,
    Frame,
    Button,
    Canvas,
    X,
    RIGHT,
    BOTH,
    PhotoImage,
)

from GUISettings import GUISettings

gui = GUISettings()
class ExcelBox(Tk):

    def __init__(
            self,
            title: str = 'ExcelBox',
            color: str = gui.bg_color,
            geometry: str = gui.geo,
            photo_path: str = str(
                Path.cwd() / 'src' / 'images' / 'excel_icon.png'
            )
        ):
        
        super().__init__()
        self.title(title)
        self.configure(background=color)
        self.tk.call(
            'wm',
            'iconphoto',
            self._w,
            PhotoImage(file=photo_path)
        )
        self.geometry(geometry)

        self.mainloop()

    @classmethod
    def custombox(
            cls,
            title: str = None,
            color: str = None,
            geometry: str = None,
            photo_path: str = None,
        ):
        return cls(title, color, geometry)
254f3b5ff0f08d03a1d11d52d108868167a4936a
<mask token>


class ExcelBox(Tk):
    <mask token>

    @classmethod
    def custombox(cls, title: str=None, color: str=None, geometry: str=None,
        photo_path: str=None):
        return cls(title, color, geometry)

<mask token>


class ExcelBox(Tk):

    def __init__(self, title: str='ExcelBox', color: str=gui.bg_color,
        geometry: str=gui.geo, photo_path: str=str(Path.cwd() / 'src' /
        'images' / 'excel_icon.png')):
        super().__init__()
        self.title(title)
        self.configure(background=color)
        self.tk.call('wm', 'iconphoto', self._w, PhotoImage(file=photo_path))
        self.geometry(geometry)
        self.mainloop()

    @classmethod
    def custombox(cls, title: str=None, color: str=None, geometry: str=None,
        photo_path: str=None):
        return cls(title, color, geometry)

<mask token>
gui = GUISettings()


class ExcelBox(Tk):

    def __init__(self, title: str='ExcelBox', color: str=gui.bg_color,
        geometry: str=gui.geo, photo_path: str=str(Path.cwd() / 'src' /
        'images' / 'excel_icon.png')):
        super().__init__()
        self.title(title)
        self.configure(background=color)
        self.tk.call('wm', 'iconphoto', self._w, PhotoImage(file=photo_path))
        self.geometry(geometry)
        self.mainloop()

    @classmethod
    def custombox(cls, title: str=None, color: str=None, geometry: str=None,
        photo_path: str=None):
        return cls(title, color, geometry)

from pathlib import Path
from tkinter import Tk, Frame, Button, Canvas, X, RIGHT, BOTH, PhotoImage
from GUISettings import GUISettings
gui = GUISettings()


class ExcelBox(Tk):

    def __init__(self, title: str='ExcelBox', color: str=gui.bg_color,
        geometry: str=gui.geo, photo_path: str=str(Path.cwd() / 'src' /
        'images' / 'excel_icon.png')):
        super().__init__()
        self.title(title)
        self.configure(background=color)
        self.tk.call('wm', 'iconphoto', self._w, PhotoImage(file=photo_path))
        self.geometry(geometry)
        self.mainloop()

    @classmethod
    def custombox(cls, title: str=None, color: str=None, geometry: str=None,
        photo_path: str=None):
        return cls(title, color, geometry)

from pathlib import Path
from tkinter import (
    Tk,
    Frame,
    Button,
    Canvas,
    X,
    RIGHT,
    BOTH,
    PhotoImage,
)

from GUISettings import GUISettings

gui = GUISettings()
class ExcelBox(Tk):

    def __init__(
            self,
            title: str = 'ExcelBox',
            color: str = gui.bg_color,
            geometry: str = gui.geo,
            photo_path: str = str(
                Path.cwd() / 'src' / 'images' / 'excel_icon.png'
            )
        ):
        
        super().__init__()
        self.title(title)
        self.configure(background=color)
        self.tk.call(
            'wm',
            'iconphoto',
            self._w,
            PhotoImage(file=photo_path)
        )
        self.geometry(geometry)

        self.mainloop()

    @classmethod
    def custombox(
            cls,
            title: str = None,
            color: str = None,
            geometry: str = None,
            photo_path: str = None,
        ):
        return cls(title, color, geometry)