def uppercaseEnd(string, number): String = string[::-1] import os, sys sys.path.append(os.path.dirname(__file__)) from substring import substringStart from replace import main String2 = substringStart(String, number) String = main(String, String2, String2.upper()) return String[::-1]
def lowercaseStart(string, number): import os, sys sys.path.append(os.path.dirname(__file__)) from substring import substringStart from replace import main string2 = substringStart(string, number) string = main(string, string2, string2.lower()) return string
Label(fm, text=item, relief=GROOVE, bd=5).pack(side=TOP, anchor=W, fill=X) fm.pack(side=LEFT, padx=10) # draw checkboxes fm2 = Frame(main.root) i = 0 for item in main.input_array: main.dict[main.input_ncd[i]] = Checkbar(fm2, item) main.dict[main.input_ncd[i]].pack(side=TOP, anchor=W, fill=X) main.dict[main.input_ncd[i]].config(relief=GROOVE, bd=1) i += 1 fm2.pack(side=LEFT, padx=10) # update string representation allstates() # draw tkinter main.root.mainloop() if __name__ == '__main__': playlist_name = "Replace" itunes_xml = "C:/Users/danie/Music/iTunes/iTunes Music Library.xml" excel_file = 'Genre.xlsx' path_list = playlist_list(playlist_name, itunes_xml) for item in path_list: audio_path = item replace.main(excel_file, audio_path)