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

AppKit backend (through PyObjC) for Enaml #538

Open
acaland opened this issue Dec 8, 2023 · 2 comments
Open

AppKit backend (through PyObjC) for Enaml #538

acaland opened this issue Dec 8, 2023 · 2 comments

Comments

@acaland
Copy link

acaland commented Dec 8, 2023

Hello,

I am wondering if it would be possibile to use Enaml directly against AppKit (macOS only)
I cannot find any documentation on how to integrate (or create) a new backend.

It seems that enaml-native use UIKit backend for iOS, but it uses a RPC-like bridge. Would it be better to use PyObjC for desktop apps?

@MatthieuDartiailh
Copy link
Member

@frmdstryr would know more about the cost of the RPC-like bridge.

I do not have the bandwidth to develop a new backend and it would be quite complicated too since I do not own a mac. As for the alternative backend developed by @frmdstryr this endeavor can be undertaken outside of enaml.

@frmdstryr
Copy link
Contributor

I don't see why it wouldn't work, Enaml can be used for any tree-like structure.

From a very high level to make a custom backend you need to create an Application subclass and change the resolver so it finds your custom widgets.

I made a simple gtk backend that hopefully is simple enough to show what is needed.
enaml-gtk.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants