Closed salmoni closed 6 years ago
Replace the f.myhtml.Create()
with f.myhtml = wx.WebViewNew(f, wx.ID_ANY)
Functions cannot be called before the object has been initialized
Excellent, thank you! That works a treat.
I was thrown out by the WebViewNew – I tried using NewWebView which failed.
Thanks again.
I've written a small program to check out the working of the WebView but have failed to get it going after trying a fair few options. Here is some basic code (cribbed from dapeton). I'm learning Go so am probably missing something basic.
This builds but running the executable produces:
I've tried using f.myhtml = NewWebView() but that's not building. What am I missing here?
Platform: OSX 10.12.6 Go: 1.9.2 wxGo: Downloaded over the weekend.