parazeeknova / nyxtext

Consider removing the commented out code block PY-W0069
Anti-pattern
Major
2 months ago6 months old
Consider removing the commented out code block
 66        )
 67
 68        self.treeview = ttk.Treeview(self.part_frame, height=40, show="tree")
 69        # self.treeview.heading("#0", text="Files: ", anchor="w") 70        self.treeview.grid(row=1, column=0, columnspan=2, sticky="nsew")
 71
 72        # Call the item_opened() method each item an item is expanded.
Consider removing the commented out code block
 79        root.iconbitmap(icon)
 80        menu_bar = Menubar(root)
 81    elif os.name == "posix":  # for Linux and MacOS
 82        # root.iconphoto(False, PhotoImage(file="editor/scripts/misc/icons/icon.png")) 83        pass
 84
 85    # Setting width variables
Consider removing the commented out code block
 79        root.iconbitmap(icon)
 80        menu_bar = Menubar(root)
 81    elif os.name == "posix":  # for Linux and MacOS
 82        # root.iconphoto(False, PhotoImage(file="editor/scripts/misc/icons/icon.png")) 83        pass
 84
 85    # Setting width variables
Consider removing the commented out code block
335        self.text_Area.text_area.tag_add(tk.SEL, "1.0", tk.END)
336        self.text_Area.text_area.mark_set(tk.INSERT, "1.0")
337        self.text_Area.text_area.see(tk.INSERT)
338        # self.text_Area.text_area.configure(bg="blue",fg="blue")339
340    def begin_end_select(self):
341        pass
Consider removing the commented out code block
257            self.root.destroy()
258
259    def open_folder(self):
260        # self.file_path = filedialog.askdirectory()261        directory = os.path.dirname(self.file_path_1)
262
263        # Open the directory