![]() Label() – Label is a Gui widget that is generally for displaying a piece of text on the window.title() – gives a title to the created window.geometry() – This function specifies the size of the window.Tk() – Using the Tk() method, we have created a window named root.Label(root,text='Image Format Converter',font='arial 15').place(x=210,y=10) Root.geometry('600x250')#geometry of window Creating the GUI Window: #creating window Here only the default extension is changed, else all is the same as in the previous function.ĥ. Using the same things as in the previous functions, we have created this function to change the format from Jpg to Png.Convert From Jpg to Png: #function to change from jpg to pngĮxport_file_path = filedialog.asksaveasfilename(defaultextension='.png')#choosing the path and changing extension to jpg ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |