I want to add a color dot indicator that shows a green dot on-screen when VPN connected and red when disconnected. I want to display only the dot on the screen, not the whole window containing a red dot inside it. I have tried using pygame, but it shows the whole window with a red dot inside it. Please help me to resolve this issue.
import pygame
import time
WHITE = (255, 255, 255)
RED = (255, 0, 0)
(width, height) = (40, 40)
background_color = WHITE
pygame.init()
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("VPN-Status")
screen.fill(background_color)
pygame.display.update()
while True:
pygame.draw.circle(screen, RED, (20, 20), 20)
pygame.display.update()
time.sleep(0.25)
pygame.draw.circle(screen, WHITE, (20, 20), 20)
pygame.display.update()
time.sleep(0.25)