jarvisteach / appJar

Simple Tkinter GUIs in Python

Home Page:http://appJar.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transparent Backgrounds

kristof2020FaE opened this issue · comments

Bug Report


Hey, not really a bug but is there a way to make label backgrounds transparent?

Context


Im trying to make an app with a .png background and the text labels were a bit annoying

Expected Behaviour


Text which has no background, only pure text, like this sentence

Actual Behaviour


the text not matching with the background

Any error messages produced by appJar


no error messages, it just doesnt look good

Sample code, demonstrating the issue


from appJar import gui
app = gui("login", "100x100")
app.addLabel("asd")
app.setBgImage("xy.png")
app.go()

What steps are needed to reproduce the bug


code above

Version Information


asd

python:3.8
appJar: 94.0

Hi @kristof2020FaE, it's not possible for Labels to be 'transparent' in tkinter/appJar.

However, you could tell the labels not to 'stick; to the sides of the GUI, so you don't get that whole grey bar. Have a read of this: http://appjar.info/pythonWidgetLayout/#setting-stretchiness