python screen overlay

Solutions on MaxInterview for python screen overlay by the best coders in the world

showing results for - "python screen overlay"
Melina
03 May 2018
1''':::::::::::::::::::::Overlay:::::::::::::::::::::
2A package that creates and manipulates screen overlays based on tkinter.
3
4::: Installation :::
5pip install overlay
6-----------------------------------------------------
7::: Usage :::
8A basic overlay is created as such:'''
9
10from overlay import Window
11
12win = Window()
13Window.launch()
14'''
15The constructor of the Window class takes the following (optional) 
16parameters:
17
18size: tuple, the dimension (width, height) of the overlay window.
19position: tuple, the position of the overlay (on screen).
20transparent: bool, whether to set the overlay background transparent.
21alpha: float [0, 1], the alpha (transparency) of the overlay.
22draggable: bool, whether the window can be dragged
23------------------------------------------------------
24In order to edit the content of a overlay, one needs to obtain the 
25root of the overlay, upon which all else shall be build.'''
26
27import tkinter as tk
28from overlay import Window
29
30win = Window()
31label = tk.Label(win.root, text="Window_0")
32label.pack()
33Window.launch()
34'''---------------------------------------------------'''