Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Hello-world-Graphical/Go/hello-world-graphical.go
Normal file
16
Task/Hello-world-Graphical/Go/hello-world-graphical.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import "github.com/mattn/go-gtk/gtk"
|
||||
|
||||
func main() {
|
||||
gtk.Init(nil)
|
||||
win := gtk.NewWindow(gtk.WINDOW_TOPLEVEL)
|
||||
win.SetTitle("Goodbye, World!")
|
||||
win.SetSizeRequest(300, 200)
|
||||
win.Connect("destroy", gtk.MainQuit)
|
||||
button := gtk.NewButtonWithLabel("Goodbye, World!")
|
||||
win.Add(button)
|
||||
button.Connect("clicked", gtk.MainQuit)
|
||||
win.ShowAll()
|
||||
gtk.Main()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue