def create_custom_frame(self):
self.custom_frame = ttk.Frame(self.mainframe)
self.custom_title = ttk.Label(self.custom_frame, text='Custom tags:')
self.artist_label = ttk.Label(self.custom_frame, text='Artist: ')
self.artist_input = Text(self.custom_frame, width=20, height=1, font=self.font)
self.title_label = ttk.Label(self.custom_frame, text='Title: ')
self.title_input = Text(self.custom_frame, width=20, height=1, font=self.font)
self.album_label = ttk.Label(self.custom_frame, text='Album: ')
self.album_input = Text(self.custom_frame, width=20, height=1, font=self.font)
self.cover_art = ttk.Button(self.custom_frame, text='Browse for cover art', command=self.cover_art_browse)
self.cover_art_path = Entry(self.custom_frame, width=20, font=self.font)
self.custom_submit = ttk.Button(self.custom_frame, text='Download using custom tags', command=self.custom)
self.custom_title.grid(row=0, columnspan=2)
self.artist_label.grid(column=0, row=1)
self.artist_input.grid(column=1, row=1)
self.title_label.grid(column=0, row=2)
self.title_input.grid(column=1, row=2)
self.album_label.grid(column=0, row=3)
self.album_input.grid(column=1, row=3)
self.cover_art.grid(column=0, row=4)
self.cover_art_path.grid(column=1, row=4)
self.custom_submit.grid(row=5, columnspan=2, sticky=EW, pady=10)
self.custom_frame.pack(pady=10)
评论列表
文章目录