Start Page Redesign

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Start Page Redesign

Postby Kunda1 » Sun Sep 13, 2020 1:19 pm

openfablab wrote:
Tue Sep 08, 2020 7:34 pm
I made some successful experimenting with FreeCADGui.webView.webPage.browser.setHtml and now want to try javascript approach. But how can I correctly call python functions from javascript and get response?
Maybe @vanuan can help with this?
vanuan wrote: pinged by pinger macro

bitacovir wrote:
Sun Sep 13, 2020 1:13 pm
I forgot I had this mock-up of a Start Page. Maybe it gives some additional inspiration...
This is pretty great!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
pablogil
Posts: 845
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Start Page Redesign

Postby pablogil » Sun Sep 13, 2020 1:25 pm

Would it be possible to add a filter to the Recent files in order to hide some kind of file types?
I would like to just have FC files

Thanks
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
chrisb
Posts: 29035
Joined: Tue Mar 17, 2015 9:14 am

Re: Start Page Redesign

Postby chrisb » Sun Sep 13, 2020 10:20 pm

pablogil wrote:
Sun Sep 13, 2020 1:25 pm
I would like to just have FC files
+1
A Sketcher Lecture with in-depth information is available in English, auf deutsch, en français, en español.
User avatar
vanuan
Posts: 465
Joined: Wed Oct 24, 2018 9:49 pm

Re: Start Page Redesign

Postby vanuan » Mon Sep 14, 2020 8:00 am

openfablab wrote:
Tue Sep 08, 2020 7:34 pm
I made some successful experimenting with FreeCADGui.webView.webPage.browser.setHtml and now want to try javascript approach. But how can I correctly call python functions from javascript and get response?
You can't. One thing that could work is starting up an http or grpc server. But you would still need to write javascript-http-python bindings.

See my POC: https://forum.freecadweb.org/viewtopic.php?f=34&t=48611