Monday, 24 January 2022

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

Slip 28 Q 1

CODE :


from tkinter import *

top = Tk()
top.title('Course')
top.geometry("300x250")
Lb1 = Listbox(top,fg='yellow',width=30,bg='gray',bd=1,activestyle='dotbox')
label=Label(top,text='Computer Science Course Listing').pack()
Lb1.insert(1, "Computer Programming")
Lb1.insert(2, "Information Science")
Lb1.insert(3, "Networking")
Lb1.insert(4, "Operating Systems")
Lb1.insert(5, "Artificial Intelligence")
Lb1.insert(6, "Information Technology")
Lb1.insert(7,'Information Security')
Lb1.insert(8, "Cyber Security")

Lb1.pack()
top.mainloop()

OUTPUT:



No comments:

Post a Comment

Write a Java program to display given extension files from a specific directory on server machine.

 DOWNLOAD     SLIP14Q2 /** * STEPS TO RUN CODE * Step 01 compile the code * Step 02 run the code * Step 03 give a file directory locatio...