formatBtn = {'PNG':'pngFiles', 'JPEG':'jpegFiles'}
listFormat = [u'PNG', u'JPEG']
cb_1 = ttk.Combobox(root, values=listFormat)
button_1 = Button(root, text="Convert")
button_1.grid(row=2, column=1, sticky=(N, S, W, E), command=formatBtn[cb_1.get()])