Instantly Check Your PC Specs with This Simple App (Python GUI Project)

 Demo :


Click Video πŸ‘‡πŸ‘‡πŸ‘‡















Code :


import tkinter as tk

from tkinter import ttk

import platform

import psutil

import shutil


def get_specs():

    os_label.config(text=platform.system() + " " + platform.release())

    cpu_label.config(text=platform.processor())

    ram_label.config(text=f"{round(psutil.virtual_memory().total / (1024 ** 3), 2)} GB")

    disk = shutil.disk_usage("/")

    disk_label.config(text=f"{round(disk.total / (1024 ** 3), 2)} GB")


root = tk.Tk()

root.title("System Info Viewer")

root.geometry("400x300")

root.config(bg="#1e1e1e")


style = ttk.Style()

style.configure("TLabel", background="#1e1e1e", foreground="white", font=("Segoe UI", 12))


ttk.Label(root, text="πŸ–₯ System Info Viewer", font=("Segoe UI", 16, "bold")).pack(pady=10)


ttk.Label(root, text="Operating System:").pack()

os_label = ttk.Label(root, text="")

os_label.pack()


ttk.Label(root, text="Processor:").pack()

cpu_label = ttk.Label(root, text="")

cpu_label.pack()


ttk.Label(root, text="RAM:").pack()

ram_label = ttk.Label(root, text="")

ram_label.pack()


ttk.Label(root, text="Disk Space:").pack()

disk_label = ttk.Label(root, text="")

disk_label.pack()


ttk.Button(root, text="Get System Info", command=get_specs).pack(pady=10)


root.mainloop()

Comments

Popular posts from this blog

πŸš€ Simple Login & Registration System in Python Tkinter πŸ“±

πŸš€ Create a Python Screen Recorder with Audio (Complete Code)

πŸ“‘ Fuzzu Packet Sniffer – Python GUI for Real-Time IP Monitoring | Tkinter + Scapy