A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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.Window(gtk.GTK_WINDOW_TOPLEVEL)
|
||||
win.SetTitle("Goodbye, World!")
|
||||
win.SetSizeRequest(300, 200)
|
||||
win.Connect("destroy", gtk.MainQuit)
|
||||
button := gtk.ButtonWithLabel("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