Skip to content

Commit 6a45120

Browse files
author
omkarxx
committed
added the playlist box
1 parent f892cc3 commit 6a45120

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.ipynb_checkpoints/mp3_player-checkpoint.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": 9,
19+
"execution_count": 7,
2020
"metadata": {},
2121
"outputs": [],
2222
"source": [
2323
"from tkinter import *\n",
2424
"\n",
2525
"root = Tk()\n",
26-
"root.title(\"MP3 player\")\n",
27-
"root.geometry(\"600x500\")\n",
28-
"\n",
26+
"root.title(\"MP3 player\") # the title of the app window\n",
27+
"root.geometry(\"600x500\") # the size of the box\n",
28+
"playlist_box = Listbox(root,bg=\"black\",fg=\"green\",width=40) # declaring a playlist box\n",
29+
"playlist_box.pack(pady=30) # to pack that to the root screen \n",
2930
"\n",
3031
"\n",
3132
"\n",

mp3_player.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": 9,
19+
"execution_count": 7,
2020
"metadata": {},
2121
"outputs": [],
2222
"source": [
2323
"from tkinter import *\n",
2424
"\n",
2525
"root = Tk()\n",
26-
"root.title(\"MP3 player\")\n",
27-
"root.geometry(\"600x500\")\n",
28-
"\n",
26+
"root.title(\"MP3 player\") # the title of the app window\n",
27+
"root.geometry(\"600x500\") # the size of the box\n",
28+
"playlist_box = Listbox(root,bg=\"black\",fg=\"green\",width=40) # declaring a playlist box\n",
29+
"playlist_box.pack(pady=30) # to pack that to the root screen \n",
2930
"\n",
3031
"\n",
3132
"\n",

0 commit comments

Comments
 (0)