Tweaks and fixes + added webview debugger

* Require better icons .. someone? :-)
This commit is contained in:
obscuren
2014-08-14 00:18:37 +02:00
parent d518423b9c
commit 95ba340d07
14 changed files with 271 additions and 260 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"path"
"github.com/ethereum/eth-go"
@ -42,6 +43,15 @@ func (self *UiLib) EvalJavascriptFile(path string) {
self.jsEngine.LoadExtFile(path[7:])
}
func (self *UiLib) EvalJavascriptString(str string) string {
value, err := self.jsEngine.Run(str)
if err != nil {
return err.Error()
}
return fmt.Sprintf("%v", value)
}
func (ui *UiLib) OpenQml(path string) {
container := NewQmlApplication(path[7:], ui)
app := NewExtApplication(container, ui)