mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-12-25 23:36:30 +00:00
can't get these buttons to display
This commit is contained in:
parent
cdd487f86a
commit
68622c5144
1 changed files with 6 additions and 3 deletions
|
@ -25,18 +25,21 @@ func main() {
|
||||||
w.SetBorderWidth(10)
|
w.SetBorderWidth(10)
|
||||||
w.Show()
|
w.Show()
|
||||||
|
|
||||||
|
vb := gtk.NewVBox(false, 0)
|
||||||
|
|
||||||
f := gtk.NewFileChooserButton("Select File", gtk.FILE_CHOOSER_ACTION_OPEN)
|
f := gtk.NewFileChooserButton("Select File", gtk.FILE_CHOOSER_ACTION_OPEN)
|
||||||
w.Add(f.AsWidget())
|
vb.PackEnd(f.AsWidget(), false, false, 0)
|
||||||
f.Show()
|
f.Show()
|
||||||
|
|
||||||
a := Action{"Hello World!\n"}
|
a := Action{"Hello World!\n"}
|
||||||
|
|
||||||
b := gtk.NewButtonWithLabel("Quit")
|
b := gtk.NewButtonWithLabel("Quit")
|
||||||
b.Connect("clicked", (*Action).Quit, &a)
|
b.Connect("clicked", (*Action).Quit, &a)
|
||||||
b.ConnectNoi("clicked", (*gtk.Widget).Destroy, w.AsWidget())
|
b.ConnectNoi("clicked", (*gtk.Widget).Destroy, w.AsWidget())
|
||||||
w.Add(b.AsWidget())
|
vb.PackEnd(b.AsWidget(), false, false, 0)
|
||||||
b.Show()
|
b.Show()
|
||||||
|
|
||||||
|
w.Add(vb.AsWidget())
|
||||||
|
|
||||||
gtk.Main()
|
gtk.Main()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue