Comments (7)
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.
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
from tukaan.
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.
There's no way for that atm.
Why not?
from tukaan.
Why not?
Well, because I haven't implemented it yet 😅
from tukaan.
[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.
[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)
- Upload to pypi soon HOT 3
- `ButtonGroup` widget
- `LabeledView` widget
- Add DBus API HOT 1
- There are too many files HOT 1
- `tkinter` widget support HOT 3
- Add a better color module HOT 2
- Docstrings explaining widget HOT 3
- Make Combobox and Spinbox generic HOT 5
- Window not shown HOT 5
- Make `main` branch the main HOT 3
- How can I apply mica effect to the tukaan window? HOT 1
- `.size()` method crashes application HOT 2
- KolorScheme on Mac breaks tooltips HOT 2
- Delay first update until `run()` HOT 1
- Builtin required size getters
- `enabled` property on `Tab` doesn't work
- `TabView` makes some binds that are never saved HOT 1
- `TabView.enable_tab_dragging()` is broken
- Tooltip delay argument HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tukaan.