Giter VIP home page Giter VIP logo

Comments (7)

rdbende avatar rdbende commented on May 25, 2024 1

How do I create menubars?

There's no way for that atm.

Can we make it possible to create menubars before the application window is created in order to have an instant loading of it?

Actually this idea sounds kool, but on the other hand, it might be a bit unintuitive to create the menubar before the application, and could lead to a boilerplate API implementation.

I don't exactly understand, what do you mean by instant loading tho. Do you mean the menubar should be the first thing that loads or 🤔 Or are you experiencing slow menubar loading with Tkinter? It might just be a bug in Tk when communicating with that fancy global menubar of the Mac.

from tukaan.

rdbende avatar rdbende commented on May 25, 2024 1

Because all windows have a menubar on macOS, it's important to define one, either for each window or a fallback menubar for the root window. Otherwise, you'll end up with the "built-in" menubar, which contains menus that are only intended for typing commands directly into the interpreter.1

Ahh, now I see why it's important to have the menubar widget ASAP.

Footnotes

  1. tkdocs.com

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

So when you make a window or instance of Tk on Mac the menu at automatically loads a boilerplate menu at and it takes a moment to load the desired one giving a really weird and off putting effect/look. The boilerplate menu at seems to be rooted in tk as it shows in Tukaan too. As for the boilerplate stuff I'm not bothered by that too much and if done right can be eliminated

from tukaan.

Moosems avatar Moosems commented on May 25, 2024

There's no way for that atm.

Why not?

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

Why not?

Well, because I haven't implemented it yet 😅

from tukaan.

rdbende avatar rdbende commented on May 25, 2024
[20:33]	Moosems	rdbende Is there any way to create a menubar before the window without causing it to create one on its own?
[20:34]	rdbende	yeah
[20:34]	rdbende	i mean on linux and windoze
[20:34]	rdbende	i don't think it's possible on mac
[20:35]	rdbende	but why do you need that?
[20:35]	Moosems	For mac XD
[20:35]	Moosems	Because of the automatic menubar creation thing with tkinter
[20:36]	Moosems	How is it done on linux?
[20:37]	rdbende	it doesn't have any menubar on linux
[20:37]	rdbende	by default
[20:37]	rdbende	even if i choose to have a global menubar (because the global menubar thingy in Plasma works only with QT i guess)
[20:43]	Moosems	Oh
[22:11]	rdbende	Moosems why do you need it? Do you want an empty menubar at start?
[22:11]	rdbende	just wondering what i could do to make it better in tukaan
[22:14]	Moosems	Kinda, I want to have the menubar come up blank or filled if unspecified but I want to have the menubar not go to the default Tk demo at all if I specify a menubar or create one

from tukaan.

rdbende avatar rdbende commented on May 25, 2024

[20:37] rdbende even if i choose to have a global menubar (because the global menubar thingy in Plasma works only with QT i guess)

Maybe it would be possible with Dbusmenu

from tukaan.

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.