In this video I’ll show you how to get system information from a computer into your tkinter app.

There’s many reasons you might need to check system info from your tkinter app.

It’s pretty easy, we’ll use the Platform library that comes with Python to do this.

Python Code: sys.py
(Github Code)

from tkinter import *
import platform

root = Tk()
root.title('Codemy.com - System Info!')
root.iconbitmap('c:/gui/codemy.ico')
root.geometry("600x300")

info = f"System: {platform.system()}\n \
User Name: {platform.node()}\n \
Release: {platform.release()}\n \
Version: {platform.version()}\n \
Machine: {platform.machine()}\n \
Processor: {platform.processor()}\n \
Python Version: {platform.python_version()}\n \
"

my_label = Label(root, text=info, font=("Helvetica", 14))
my_label.pack(pady=20)


root.mainloop()

John Elder

John is the CEO of Codemy.com where he teaches over 100,000 students how to code! He founded one of the Internet's earliest advertising networks and sold it to a publicly company at the height of the first dot com boom. After that he developed the award-winning Submission-Spider search engine submission software that's been used by over 3 million individuals, businesses, and governments in over 42 countries. He's written several Amazon #1 best selling books on coding, and runs a popular Youtube coding channel.

View all posts

1 comment

Your email address will not be published. Required fields are marked *

  • Is there a way to call GPU\RAM\Network type from this system info? Going beyond that, can you create a button to export from a tkinter menu?

John Elder

John is the CEO of Codemy.com where he teaches over 100,000 students how to code! He founded one of the Internet's earliest advertising networks and sold it to a publicly company at the height of...