parazeeknova / nyxtext

Field duplicates the name of its containing class PTC-W0052
Anti-pattern
Minor
3 months ago6 months old
Class member menubar has same name as its encolising class Menubar
 15        if os.name == "nt":
 16            self.menubar = CTkTitleMenu(root)
 17        elif os.name == "posix":
 18            self.menubar = CTkMenuBar(root) 19
 20        # Title bar menus
 21        self.file_menu = self.menubar.add_cascade("File")
Class member menubar has same name as its encolising class Menubar
 13    def __init__(self, root):
 14        self.root = root
 15        if os.name == "nt":
 16            self.menubar = CTkTitleMenu(root) 17        elif os.name == "posix":
 18            self.menubar = CTkMenuBar(root)
 19
Class member menubar has same name as its encolising class Menubar
 13    def __init__(self, root, text_Area):
 14        self.root = root
 15        self.text_Area = text_Area
 16        self.menubar = tk.Menu(self.root, background="grey", fg="white") 17        self.file_path_1 = None
 18
 19        # Defining menu options as menu objects