python screen overlay

''':::::::::::::::::::::Overlay:::::::::::::::::::::
A package that creates and manipulates screen overlays based on tkinter.

::: Installation :::
pip install overlay
-----------------------------------------------------
::: Usage :::
A basic overlay is created as such:'''

from overlay import Window

win = Window()
Window.launch()
'''
The constructor of the Window class takes the following (optional) 
parameters:

size: tuple, the dimension (width, height) of the overlay window.
position: tuple, the position of the overlay (on screen).
transparent: bool, whether to set the overlay background transparent.
alpha: float [0, 1], the alpha (transparency) of the overlay.
draggable: bool, whether the window can be dragged
------------------------------------------------------
In order to edit the content of a overlay, one needs to obtain the 
root of the overlay, upon which all else shall be build.'''

import tkinter as tk
from overlay import Window

win = Window()
label = tk.Label(win.root, text="Window_0")
label.pack()
Window.launch()
'''---------------------------------------------------'''

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source