Git Product home page Git Product logo

Comments (6)

Akascape avatar Akascape commented on June 5, 2024

@Sayad-Uddin-Tahsin
Use this:
root.attributes("-topmost", True)

from customtkinter.

Sayad-Uddin-Tahsin avatar Sayad-Uddin-Tahsin commented on June 5, 2024

@Sayad-Uddin-Tahsin Use this: root.attributes("-topmost", True)

but it makes my window to overlap other windows! I don’t want so, but I want it to not disappeare once desktop button is clicked! It will always there in the Desktop ( All minimized). I hope you understood

from customtkinter.

Akascape avatar Akascape commented on June 5, 2024

@Sayad-Uddin-Tahsin Then simply use the overrideredirect method

root.overrideredirect()

from customtkinter.

Sayad-Uddin-Tahsin avatar Sayad-Uddin-Tahsin commented on June 5, 2024

@Sayad-Uddin-Tahsin Then simply use the overrideredirect method

root.overrideredirect()

Using root.overrideredirect() also seems hides the windows on Desktop Button Press! Doesn’t it hide the top control bars? I am using it currently...

from customtkinter.

Sayad-Uddin-Tahsin avatar Sayad-Uddin-Tahsin commented on June 5, 2024

@Akascape Do you know any way to just detect the Desktop Button Click? so that I can force_focus that on that event which will achieve the effect I'm looking for?

from customtkinter.

Sayad-Uddin-Tahsin avatar Sayad-Uddin-Tahsin commented on June 5, 2024

@Akascape Seems using this method:

def unminimize(window: ctk.CTk):
    if not window.winfo_ismapped():
        window.state('withdrawn')
        window.state('normal')
        window.attributes("-topmost", True)
        window.attributes("-topmost", False)

root.bind("<Unmap>", lambda e: root.after(500, lambda: unminimize(root)))

does what I'm looking for but when using overrideredirect(True) doesn't work! Is there any way you know to bypass the issue or any way and achieve what I wanted?

from customtkinter.

Related Issues (20)

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.