Skip to main content

#AcrylicTK

This package will add acrylic/transparency support to tkinter.

##How to use

###Installing First thing, you have to install it! use this command to install

pip install acrylictk

###Making the window Making a window is almost the same as tkinter. But to use widgets or tkinter methods you will need access it by using the atk variable. here is how to make a new window

from AcrylicTK import *

win = ATK()

win.atk.mainloop()

You need to refrence the window like this ###Adding widgets Adding widgets is pretty easy. We will add a simple label that says hello

from AcrylicTK import *


win = ATK()

lbl = Label(win.atk, text="Hello", font="arial 10")
lbl.place(x=0, y=0)

win.atk.mainloop()

#Making a transparent spot Now for the whole point of the libary. To make a transparent spot use the widget that AcrylicTK adds called transparency. Here is how you use it.

from AcrylicTK import *


win = ATK()

tsp = transparency(win.atk, 10000, hieght=100)
tsp.place(x=0, y=0)
lbl = Label(win.atk, text="Hello", font="arial 10")
lbl.place(x=0, y=0)

win.atk.mainloop()

There, now we have a transparent spot The effects will only work on an ATK window To make the background of the text transparent I added a variable called acrylic use it in the bg argument of the label like this.

from AcrylicTK import *


win = ATK()

tsp = transparency(win.atk, 10000, hieght=100)
tsp.place(x=0, y=0)
lbl = Label(win.atk, text="Hello", font="arial 10", bg=acrylic)
lbl.place(x=0, y=0)

win.atk.mainloop()

#ATK Methods Here are all the useful methods that acrylicTK adds ##ATK() ATK is the class that makes the window Arguments: darkMode - enables dark title bar ##ATK.config() Change settings for the window

from AcrylicTK import *


win = ATK()

win.config(windowPosX=100, windowPosY=100, windowWidth=500, windowHieght=400, acrylic=False)

tsp = transparency(win.atk, 10000, hieght=100)
tsp.place(x=0, y=0)
lbl = Label(win.atk, text="Hello", font="arial 10", bg=acrylic)
lbl.place(x=0, y=0)

win.atk.mainloop()

You can guess what the first four aguments are but the last argument if True will enable the acrylic effect like seen in the windows 10 start menu if False, It will just be a simple blur

##ATK.update() This updates the window. use this NOT ATK.atk.update()

Metadata

Release files for AcrylicTK 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AcrylicTK 0.0.3
File Size Uploaded Provenance Actions
AcrylicTK-0.0.3.tar.gz 7.4 kB Without provenance Details for AcrylicTK-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for AcrylicTK 0.0.3
File Interpreter ABI Platform Actions
AcrylicTK-0.0.3-py3-none-any.whl Python 3 none any Details for AcrylicTK-0.0.3-py3-none-any.whl

Total release size: 17.8 kB

Release files / AcrylicTK-0.0.3.tar.gz

Download URL AcrylicTK-0.0.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff28179d6c74d68ba25b726671face60c9db423207d1d466f79c2e83c933aba7
BLAKE2b-256 checksum
How to use checksums
e6763a75ea35a5f129d490ce6b47e22cbd7476821179b617f17d5e164b9d6b83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / AcrylicTK-0.0.3-py3-none-any.whl

Download URL AcrylicTK-0.0.3-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2d8435aa59984f2109cd90ffdfce93287365909f14f3140f72bc8a1cc2fb5a7
BLAKE2b-256 checksum
How to use checksums
d94d235f8b299c61953003e0dc9945d9316ca032a169937c45a5b7b0168e1763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for AcrylicTK 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page