Sciter : GUI Application with Golang using HTML/CSS

gui library for golang sciter
GUI library for golang sciter


Last Update: 03-07-2018


This is the words from Sciter's Web site,



Sciter brings a stack of web technologies to desktop UI development. Web designers and developers can reuse their experience and expertise in creating modern looking desktop applications.
Various GUI frameworks offer different UI declaration and styling languages, such as QML and XAML (Microsoft WPF). On the contrary, Sciter allows using time proven, robust, and flexible HTML and CSS for GUI definition and GPU accelerated rendering. 

Before using sciter I already tried other alternatives but none of them was satisfactory as an example first i tried andlabs/ui library  i already have written a post on it. You can read it on post gui programming with golang.  But this library is still under construction and has no support for production apps.

Secondly, I go for electron but the problem was my simple calc like the app was of size 150mb. Which is 15mb of go and other was the electron. 

Before some time I found another alternative, sciter , which is now also free to use for even commercially ( which was not before some time ).

I suppose you have read upper two paragraphs in grey text. If you want to know more about sciter you can visit its site which is  https://sciter.com/

Here is a simple example of sciter application


Simple GUI App with Scitter & Golang
Simple GUI App with Scitter & Golang


Here I am sharing the source code of golang and HTML file. [ which has to be in the same folder ]




Golang File
HTML file

Actually, One thing that I found problematic is that [atleast] I have to refresh HTML element binding to get the latest value from HTML.
Might be I am doing it the wrong way or may have another but I don't' have the idea about it. 







But the conclusion is that sciter is most promising GUI library to create GUI app with golang.

Update : 26-06-2018

GoLang-Sciter Learn by example [ link to my GitHub repo ]
Examples [ chapters ] in increasing order of complexity. I will update it continuously unless I feel it's complete. So stay tuned and watch

Update : 03-07-2018

I am writing a blog just about golang & sciter [ exclusively golang and sciter. nothing else. ] Itsgo-sciter.mchampaneri.in

Hope find it useful!

Comments

Popular Posts