flexxui / webruntime

Launch HTML5 apps in the browser or a desktop-like runtime.
http://webruntime.readthedocs.io
BSD 2-Clause "Simplified" License
44 stars 10 forks source link

Electron runtime #7

Open Korijn opened 6 years ago

Korijn commented 6 years ago

Would like to have support for file / folder selection dialogs, as Electron offers them, to have access to the filesystem path so it can be communicated to the backend.

I'm not aware of any other runtimes that are currently supported by Flexx that have this functionality, is that correct?

Korijn commented 6 years ago

Actually, perhaps it would be easier to build this into dialite?

almarklein commented 6 years ago

perhaps it would be easier to build this into dialite?

Dialite exposes minimal functionality to interact with the user. It uses a different (native) mechanism on each platform, so we can only use the features that lie on the intersection of all these mechanisms. I don't think a file selection dialog is available on each these mechanisms ...

There's also https://github.com/flexxui/flexx/issues/485; a possible option for having file selection is to implement it in Flexx, with a combination of a PyComponent (to access the FS) and a Widget to have a view on it.

edit: should probably be some sort of dialog