Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
aa7c53b7
Commit
aa7c53b7
authored
Feb 28, 2014
by
Jarrad Hope
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search bin directory for qml
parent
a9d89d1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gui.go
ui/gui.go
+8
-2
No files found.
ui/gui.go
View file @
aa7c53b7
...
...
@@ -9,6 +9,8 @@ import (
"github.com/ethereum/eth-go/ethdb"
"github.com/ethereum/eth-go/ethutil"
"github.com/niemeyer/qml"
"bitbucket.org/kardianos/osext"
"path/filepath"
"math/big"
"strings"
)
...
...
@@ -84,12 +86,16 @@ func (ui *Gui) Start() {
ethutil
.
Config
.
Log
.
Infoln
(
"[GUI] Starting GUI"
)
// Create a new QML engine
ui
.
engine
=
qml
.
NewEngine
()
// Get Binary Directory
exedir
,
_
:=
osext
.
ExecutableFolder
()
// Load the main QML interface
component
,
err
:=
ui
.
engine
.
LoadFile
(
"wallet.qml"
)
component
,
err
:=
ui
.
engine
.
LoadFile
(
filepath
.
Join
(
exedir
,
"wallet.qml"
)
)
if
err
!=
nil
{
panic
(
err
)
}
ui
.
engine
.
LoadFile
(
"transactions.qml"
)
ui
.
engine
.
LoadFile
(
filepath
.
Join
(
exedir
,
"transactions.qml"
)
)
ui
.
win
=
component
.
CreateWindow
(
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment