Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sciter-sdk/go-sciter-example
Sciter examples for golang in increasing complexity order. Aim is to provide good learning resource by examples.
https://github.com/sciter-sdk/go-sciter-example
example-codes golang sciter-sdk
Last synced: 1 day ago
JSON representation
Sciter examples for golang in increasing complexity order. Aim is to provide good learning resource by examples.
- Host: GitHub
- URL: https://github.com/sciter-sdk/go-sciter-example
- Owner: sciter-sdk
- Created: 2018-06-27T13:29:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T15:10:28.000Z (over 4 years ago)
- Last Synced: 2024-06-19T15:12:52.569Z (5 months ago)
- Topics: example-codes, golang, sciter-sdk
- Language: Go
- Size: 22.6 MB
- Stars: 65
- Watchers: 5
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# About Repository
Creating gui application with golang something nightmare before sometime[ until i found sciter sdk wrapper for Golang] for me. There is very less amount of resource available for go-sciter. So I am sharing this examples to give some contribution to create resource.
## About Programs
No one is perfect in this world, so how one can create perfect things. Program written by me may be written in some another[ far better ] way. If you found something like that please make a pull request. I will be happy to review and merge it.
I have explained almost all program listed below on my blog [ link to my blog ](https://www.mchampaneri.in)## List of programs
#### [01- HelloSciter](https://www.mchampaneri.in/2018/07/hello-sciter-program.html)
Hello world equivilate program for sciter. Just to get you excited by showing window on screen.#### 02-HelloTIScript
TIScript is extended version of JavaScript. This program contains small portion of TIScript to introduce TIScript.#### [03-TIScriptInput]((https://www.mchampaneri.in/2018/07/first-program-with-tiscript-and-sciter.html))
Moving one step forward in TIScript. This program shows how to access data from html inputs using TIScript.#### [04-CallGoFunctionFromTIscript](https://www.mchampaneri.in/2018/07/process-input-grabed-from-tiscript-in.html)
Once you get input from HTML elements you may need to call a goLang function and process input. This program is simplest example of taking input from html via TIScript passing that data to goLang function and updating output on HTML element.#### [05-Calc[EndOfPart1]](https://www.mchampaneri.in/2018/07/simple-calc-using-golang-and-sciter-sdk.html)
Summation of the journey until. It's a very simple calc which uses every thing we learn in earlier examples.#### [06-BuiltinHTML](https://www.mchampaneri.in/2018/07/embed-gui-inside-your-go-code.html)
It's not good if you have to load external html file. As you have to care about location of html file. But instead what if html is inside your gocode? . It's cool right!. This is examples is about how to embedded html in your go code.#### [07-notepadScratch](https://www.mchampaneri.in/2018/07/simple-documnet-based-appliaction-with.html)
Time to explore something new. This example contains code for extremely simple notepad. It just allows you to open file, write a new file , save it and exit the appliaction. But, Its a good example for those who want to make an application has to work with documents, right! of course.#### [08-packfolderIntro](https://www.mchampaneri.in/2018/08/use-packfolder-to-archive-your-resource.html)
If you have gone through 06, it actully puts html/css code in go file. Which looks weird. Sciter-sdk comes with one utility called packfolder which can generate single archive for your resource folder in one of the supported output format. So, now there is no need to write your gui inside go code. You can use packfolder to use that code.If you are confused what i am talking about, please see the code, it might make you more clear.
#### 09-image-viewer
Image-viewer support png/jpg file to view. It autoloads every jpg/png file behind the scene and displays on screen existing in the same folder as executable.Its image loading logic is written in golang while front-end is sciter. UI may be create even better, but as this is just for example.
![Image of Image-Viewer](https://github.com/mchampaneri/go-sciter-example/blob/master/09%20image-viewer/image-viewer.png)
#### 10-screen-sefli
Screen-sefli takes snapshot of screen according to provided cordinates.
![Image of Screen-selfi](https://github.com/mchampaneri/go-sciter-example/blob/master/10%20screen-selfi/58c39b14-8eb5-457f-8bc5-504cb35bb3bb.png)#### 11-custome-layout
#### 12-Sciter-glassy-background
Sciter now supports glassy backgroun as well. You can give a modern glassy UI look to your appliaction.#### 13-Sciter-window-frame-extended
You can customize titlebar. window-frame='exteded' removes title bar and puts windows controls in appliction body.
![Image](https://github.com/mchampaneri/go-sciter-example/blob/master/13%20sciter%20window-frame-extend/cover-Pic.png)#### 14-Add-button-with-onclick-event-binding-from-golang
You can add any element with your desired attirubtes and event handing from golang side. How!, see this example.#### 15-Create-new-window-on-button-click
It may happened that your application need multiple window to carry out certain task, for example to take profile pic you need a separate window with access to webcam that can take pic and the pass data to main window are application itself.
Here is simple example of how you can create/open new window with button click#### 16-Add-menu-in-menubar-mac-os-x
You can add menu in menubar of mac-os-x. Not using sciter or golang{direclty}. But Cgo comes at rescaue here. You can add menu using objective-c code using Cocoa framework at cgo.-----
## Youtube playlists
#### [Create GUI application in go using sciter-sdk](https://www.youtube.com/playlist?list=PLub5C2vM5SjKvkbFfposhyg1V2gpXnviM)
Video tutorials on go-sciter for beginners