// Setup the TextView, put it in a ScrolledWindow, and add both to box. func setupTextView(box *gtk.Box) *gtk.TextView { sw, _ := gtk.ScrolledWindowNew(nil, nil) tv, _ := gtk.TextViewNew() sw.Add(tv) box.PackStart(sw, true, true, 0) return tv }
func setup_tview() *gtk.TextView { tv, err := gtk.TextViewNew() if err != nil { log.Fatal("Unable to create TextView:", err) } return tv }