nwui:用于 Go 的 node-webkit UI

时间:2021-06-25 12:04:12
【文件属性】:
文件名称:nwui:用于 Go 的 node-webkit UI
文件大小:31KB
文件格式:ZIP
更新时间:2021-06-25 12:04:12
Go nwui node-webkit UI for Go Screenshot Example 创建一个包含按钮的窗口: &Window{ Title: "window", Width: 800, Height: 600, OnExit: func() { fmt.Println("exit") }, Controls: []interface{}{ &Button{ ID: "btn0", Text: "button", OnClick: func() { text := GetConByID("btn0").(*Button).Text fmt.Println(text, "clicked!") }, }, }, } 使用可以参见test文件 自带控件列表 普通的窗口控件 普通的按钮控件 还没移植完成的自定义窗口控件
【文件预览】:
nwui-master
----.gitignore(270B)
----LICENSE(11KB)
----README.md(5KB)
----screenshot.png(19KB)
----nwui_test.go(545B)
----nwui.go(10KB)

网友评论