How to get the screen size in Tkinter?
import tkinter as tk
root = tk.Tk()
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
A possible solution
import os
os.system("xrandr | grep \* | cut -d' ' -f4")
My output:
1440x900
0