bonjour à toutes et à tous,
donne l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package main import ( "github.com/mattn/go-webkit/webkit" "github.com/conformal/gotk3/gtk" ) func main() { gtk.Init(nil) win,_:=gtk.WindowNew(gtk.WINDOW_TOPLEVEL) win.Connect("destroy",func(){gtk.MainQuit()}) nbt,_:=gtk.NotebookNew() wv:=webkit.NewWebView() wv.LoadUri("http://www.google.fr") lab,_:=gtk.LabelNew("google") nbt.AppendPage(wv,lab) win.Add(nbt) win.ShowAll() gtk.Main() }
comment faire ?./test.go:14: cannot use wv (type *webkit.WebView)
as type "github.com/conformal/gotk3/gtk".IWidget in argument
to nbt.AppendPage: *webkit.WebView does not implement
"github.com/conformal/gotk3/gtk".IWidget
(missing "github.com/conformal/gotk3/gtk".toWidget method)
j'ai tenté avec plusieurs package webkit et gtk
merci d'avance
Partager