Sunday, 23 January 2022

Python28a-Write a Python GUI program to create a list of Computer Science Courses using Tkinter module (use Listbox).

 Write a Python GUI program to create a list of Computer Science Courses using Tkinter module (use Listbox).      

from tkinter import *

 

import tkinter

 

top = Tk()

 

Lb1 = Listbox(top)

Lb1.insert(1, "Python")

Lb1.insert(2, "Perl")

Lb1.insert(3, "C")

Lb1.insert(4, "PHP")

Lb1.insert(5, "JSP")

Lb1.insert(6, "Ruby")

 

Lb1.pack()

top.mainloop()