Code Monkey home page Code Monkey logo

Comments (6)

sumeshir26 avatar sumeshir26 commented on May 20, 2024

Thats a tkinter bug, nothing to do with win32mica

from win32mica.

marticliment avatar marticliment commented on May 20, 2024

Thats a tkinter bug, nothing to do with win32mica

Yes, this might be true, since on Qt win32mica behaves as expected

You can try setting a semi-transparent (but not visible) bg color (sth like rgba(255, 255, 255, 1%))

from win32mica.

rdbende avatar rdbende commented on May 20, 2024

Thats a tkinter bug, nothing to do with win32mica

It's not even a bug. It's a feature.

You can try setting a semi-transparent (but not visible) bg color (sth like rgba(255, 255, 255, 1%))

Well, Tkinter doesn't know such thing as "semi-transparent" 😕

from win32mica.

marticliment avatar marticliment commented on May 20, 2024

Thats a tkinter bug, nothing to do with win32mica

It's not even a bug. It's a feature.

You can try setting a semi-transparent (but not visible) bg color (sth like rgba(255, 255, 255, 1%))

Well, Tkinter doesn't know such thing as "semi-transparent" 😕

One thing you could do is creating with photoshop a white image and set it to 1% opacity, and then set it as the background on your tkinter app

from win32mica.

rdbende avatar rdbende commented on May 20, 2024

I believe you can't do that either. In Tkinter every widget has a background box, that can't have any transparency, so even if you have an image with alpha channel, it will blend with the background field.
I remember when making my themes for Tkinter I suffered for a long time before I realized that it's simply not possible.
You can make windows with alpha channel, but then everything, including the window decorations becomes semi-transparent.
Transparency is just an area, where Tcl/Tk simply sucks.

from win32mica.

marticliment avatar marticliment commented on May 20, 2024

Well, then the best thing I can say is to migrate to another UI toolkit.

I can personally recommend you Qt, because it provides lots of flexibility, performance with high quality.
I also reached a point where tkinter wasn't enough, and I decided to fully convert the project I was working on to Qt, and while it was a tedious process, I can guarantee that I have never regretted doing the change.

from win32mica.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.