Adding and removing items from a playlist
Let's write some code for a feature that allows us to add and remove items from a playlist. To be more specific, we will write the code for a function for the four buttons marked in the following screenshot:
The four buttons, from left to right, perform the following functions:
- The first button from the left adds individual audio files to a playlist
- The second button deletes all the selected items from the playlist
- The third button scans a directory for audio files and adds all the found audio files to the playlist
- The last button empties the playlist
Since adding these features requires us to interact with the ...
Get Tkinter GUI Application Development Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.