Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create MenuBars #81

Open
Moosems opened this issue Jul 1, 2022 · 7 comments
Open

Create MenuBars #81

Moosems opened this issue Jul 1, 2022 · 7 comments
Labels
Area: theming Look and feel related stuff Area: widgets Widget related stuff
Milestone

Comments

@Moosems
Copy link
Collaborator

Moosems commented Jul 1, 2022

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

@rdbende
Copy link
Member

rdbende commented Jul 1, 2022

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.

@Moosems
Copy link
Collaborator Author

Moosems commented Jul 2, 2022

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

@Moosems
Copy link
Collaborator Author

Moosems commented Jul 2, 2022

There's no way for that atm.

Why not?

@rdbende
Copy link
Member

rdbende commented Jul 2, 2022

Why not?

Well, because I haven't implemented it yet 😅

@rdbende
Copy link
Member

rdbende commented Jul 2, 2022

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

@rdbende rdbende changed the title How to create menubars? Create MenuBars Jul 5, 2022
@rdbende rdbende added Area: widgets Widget related stuff Area: theming Look and feel related stuff labels Jul 5, 2022
@rdbende
Copy link
Member

rdbende commented Aug 16, 2022

[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

@rdbende rdbende modified the milestones: 1.0.0, 0.2.0 Nov 2, 2022
@rdbende
Copy link
Member

rdbende commented Mar 31, 2023

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: theming Look and feel related stuff Area: widgets Widget related stuff
Projects
None yet
Development

No branches or pull requests

2 participants