Advertisement

Making GUI (graphical user interface) in Python

Making GUI (graphical user interface) in Python.

If you want to make a GUI (graphical user interface) application using python then you are at the right place. Just follow these step and copy paste all the codes given below (same name and extensions as given): Copy this Python code and save it as "GUI.py" in your device.

Python:

 
  
 
import tkinter as tk

# Function to exit the application
def exit_app():
    root.destroy()

# Create the main window
root = tk.Tk()
root.title("Full Screen GUI Example")

# Maximize the main window
root.attributes('-zoomed', True)

# Remove window decorations
root.overrideredirect(True)

# Create a label widget
label = tk.Label(root, text="Full Screen GUI", font=("Helvetica", 24))
label.pack(pady=50)

# Create an exit button
exit_button = tk.Button(root, text="Exit", command=exit_app)
exit_button.pack()

# Run the main event loop
root.mainloop()

     
 

Video Guide:

Results of the given code is here:

Post a Comment

0 Comments