good day i need to show a file with yaml extension in tkinter list widget def Filer(self):...



good day i need to show a file with yaml extension in tkinter list widget





def Filer(self):

        self.filename = askopenfilename(title="File Finder", filetypes=[("yaml files", "*.yaml"),("All files","*.*")])

        with open(self.filename,"r",encoding="utf-8") as file:

            doc =yaml.load(file,Loader=yaml.FullLoader)

            file = yaml.dump(doc,sort_keys=True)

            for file in doc:

                self.List.insert(END,file)


Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here