app-model
app-model copied to clipboard
Generic application schema implemented in python.
same as https://github.com/pyapp-kit/app-model/pull/198 (creating a new PR from a different branch cause i accidentally had that one on my main) This implements the idea I was mentioning in [#196 ](https://github.com/pyapp-kit/app-model/issues/196#issuecomment-2114978480),...
Should we add the ability store args/kwargs (like a partial) in an Action? ```python action1 = Action(id="cmd_id", title="title1", callback=cb) action2 = Action(id="cmd_id2", title="title2", callback=cb, kwargs={"a": 1}) ``` or should the...
Currently, Action is frozen and does not allow editing keybinding. So either, next to default keybinding there should be an option to provide overwrite of keybinding, or builders (like `QModelMenu`)...
some more details ... ultimately, I think this bug is due to a failure in the disconnection strategy i mentioned above in https://github.com/pyapp-kit/app-model/issues/147#issuecomment-1801076340. If you add `self.sample_menu.destroyed.connect(lambda: print("DESTROY"))` somewhere, you'll...
Add example of using `ContextNamespace`, `ContextKey` and `create_context` to create a class of related context keys.
This makes it possible to run `setModelMenuBar(app.menus)` to quick generate a menu bar with all menus in an application
might be nice to add a example about `QModelMenu` ? _Originally posted by @lucyleeow in https://github.com/pyapp-kit/app-model/pull/142#discussion_r1381440366_
Might feel redundant but a processor example below could be nice. _Originally posted by @lucyleeow in https://github.com/pyapp-kit/app-model/pull/142#discussion_r1381434991_
pulling the color-specific stuff off of https://github.com/pyapp-kit/app-model/pull/130 - does a better job of autodetecting the current theme mode in the qt backend (i.e. whether the current theme is "dark" or...