Sciter : GUI Application with Golang using HTML/CSS

gui library for golang sciter
gui library for golang sciter


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 app was of size 150mb. Which is 15mb of go and other was 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 paragrapshs in gray 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 sharig the source code of golang and html file. [ which has to be in same folder ]



Golang File
html file

Actully One thing that I found problematic is that [atleast] I have to refresh html element binding to get latest value from html.
Might be I am doing it wrong way or may have another but I dont' have idea about it. 

But conclusion is that sciter is most promissing gui libray to create gui app with golang.

Hope find it useful!

Comments

  1. Very nice article on HTML information
    Thanks for sharing with us, keep posting.
    for more information visit: https://bit.ly/2t6Vrcv

    ReplyDelete

Post a Comment