from tkinter import *
from tkinter.filedialog import askdirectory

window = Tk()

window.title("Welcome to jpg to pbm converter app")

window.geometry('350x200')

lbl = Label(window, text="1)Place files you want to convert in images\n2)click the CONVERT FILES button\n3)Collect your files from processed images folder")

lbl.grid(column=0, row=0)

def clicked():
    entrypath = askdirectory(title='Select Source Folder') # shows dialog box and return the path
    destpath = askdirectory(title='Select Destination Folder') # shows dialog box and return the path  
    import converter_final
    conv=converter_final.converter(entrypath,destpath)
    conv.main()
    lbl.configure(text="Processing files !!")

btn = Button(window, text="Convert files", command=clicked)

btn.grid(column=1, row=0)

window.mainloop()
8571f5b925092ad19fbce61547ca73034b0d5dbc
<mask token>


def clicked():
    entrypath = askdirectory(title='Select Source Folder')
    destpath = askdirectory(title='Select Destination Folder')
    import converter_final
    conv = converter_final.converter(entrypath, destpath)
    conv.main()
    lbl.configure(text='Processing files !!')


<mask token>

<mask token>
window.title('Welcome to jpg to pbm converter app')
window.geometry('350x200')
<mask token>
lbl.grid(column=0, row=0)


def clicked():
    entrypath = askdirectory(title='Select Source Folder')
    destpath = askdirectory(title='Select Destination Folder')
    import converter_final
    conv = converter_final.converter(entrypath, destpath)
    conv.main()
    lbl.configure(text='Processing files !!')


<mask token>
btn.grid(column=1, row=0)
window.mainloop()

<mask token>
window = Tk()
window.title('Welcome to jpg to pbm converter app')
window.geometry('350x200')
lbl = Label(window, text=
    """1)Place files you want to convert in images
2)click the CONVERT FILES button
3)Collect your files from processed images folder"""
    )
lbl.grid(column=0, row=0)


def clicked():
    entrypath = askdirectory(title='Select Source Folder')
    destpath = askdirectory(title='Select Destination Folder')
    import converter_final
    conv = converter_final.converter(entrypath, destpath)
    conv.main()
    lbl.configure(text='Processing files !!')


btn = Button(window, text='Convert files', command=clicked)
btn.grid(column=1, row=0)
window.mainloop()

from tkinter import *
from tkinter.filedialog import askdirectory
window = Tk()
window.title('Welcome to jpg to pbm converter app')
window.geometry('350x200')
lbl = Label(window, text=
    """1)Place files you want to convert in images
2)click the CONVERT FILES button
3)Collect your files from processed images folder"""
    )
lbl.grid(column=0, row=0)


def clicked():
    entrypath = askdirectory(title='Select Source Folder')
    destpath = askdirectory(title='Select Destination Folder')
    import converter_final
    conv = converter_final.converter(entrypath, destpath)
    conv.main()
    lbl.configure(text='Processing files !!')


btn = Button(window, text='Convert files', command=clicked)
btn.grid(column=1, row=0)
window.mainloop()

from tkinter import *
from tkinter.filedialog import askdirectory

window = Tk()

window.title("Welcome to jpg to pbm converter app")

window.geometry('350x200')

lbl = Label(window, text="1)Place files you want to convert in images\n2)click the CONVERT FILES button\n3)Collect your files from processed images folder")

lbl.grid(column=0, row=0)

def clicked():
    entrypath = askdirectory(title='Select Source Folder') # shows dialog box and return the path
    destpath = askdirectory(title='Select Destination Folder') # shows dialog box and return the path  
    import converter_final
    conv=converter_final.converter(entrypath,destpath)
    conv.main()
    lbl.configure(text="Processing files !!")

btn = Button(window, text="Convert files", command=clicked)

btn.grid(column=1, row=0)

window.mainloop()