manatlan / guy

Graphics User Ynterface : a simple module for making GUI applications (with html/js) for py3 ... to target windows, linux, mac & android
Apache License 2.0
202 stars 23 forks source link

electron #10

Closed johannes-luebke closed 4 years ago

johannes-luebke commented 4 years ago

Hi, just a question: Do you think it would be possible or even a good idea to make guy work with the electron browser - I mean still have python as the server and backend but use the electron browser to enable us to more easily have control over how the browser window behaves (menubar, shortcuts, frame, ...). Or is that what cef would be for? I have no experience with cef so I'm sorry if that was obvious.

manatlan commented 4 years ago

Hi, Cef is like electron, but on lower level side. I don't think it's a good idea. The twos are based on chromium. The final result is the same, but cef is more flexible.

interesting points: https://www.howtogeek.com/436841/that-native-app-is-probably-just-an-old-web-browser/ https://www.meetup.com/fr-FR/basel-js/events/254592079/

johannes-luebke commented 4 years ago

thank you. that makes sense.

manatlan commented 4 years ago

But understand, that guy doesn't give you the full power to a cefpython/electron. It's not the purpose. There is a layer between the html/js and the python code : all communications is done magically thru websocket (no native call from js to py ..; like cef or electron provides) This layer permits to run your app in a classical installed chrome app, or thru a webserver (like a classic web site) ... or in a cef instance (only, to avoid the need of an installed chrome app) .. or to run on android, in a kivy/webview (chrome) instance ... (without the need to know kivy!)