Tuesday, 25 January 2022

A) Write a Python GUI program to create a label and change the label font style (font name, bold, size) using tkinter module.

 SLIP 12 Q 1

CODE:



from tkinter import Label, Tk
top=Tk()
top.title="font style"
label=Label(top,text="this is text with style",font=("Helvetica",25))
label.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...