Ejemplo: superposición de pantalla de Python
''':::::::::::::::::::::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()
'''---------------------------------------------------'''
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)