Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
93cf7c30
Commit
93cf7c30
authored
10 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fixing wot refresh
parent
96c5614c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cutecoin/gui/currency_tab.py
+3
-0
3 additions, 0 deletions
src/cutecoin/gui/currency_tab.py
src/cutecoin/gui/wot_tab.py
+9
-2
9 additions, 2 deletions
src/cutecoin/gui/wot_tab.py
with
12 additions
and
2 deletions
src/cutecoin/gui/currency_tab.py
+
3
−
0
View file @
93cf7c30
...
@@ -140,6 +140,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
...
@@ -140,6 +140,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
if
self
.
tab_wallets
:
if
self
.
tab_wallets
:
self
.
tab_wallets
.
refresh
()
self
.
tab_wallets
.
refresh
()
if
self
.
tab_community
:
self
.
tab_community
.
wot_tab
.
refresh
()
if
self
.
tab_history
.
table_history
.
model
():
if
self
.
tab_history
.
table_history
.
model
():
self
.
tab_history
.
table_history
.
model
().
dataChanged
.
emit
(
self
.
tab_history
.
table_history
.
model
().
dataChanged
.
emit
(
QModelIndex
(),
QModelIndex
(),
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/gui/wot_tab.py
+
9
−
2
View file @
93cf7c30
...
@@ -45,8 +45,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -45,8 +45,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
self
.
nodes
=
list
()
self
.
nodes
=
list
()
# create node metadata from account
# create node metadata from account
metadata
=
{
'
text
'
:
self
.
account
.
name
,
'
id
'
:
self
.
account
.
pubkey
}
self
.
_current_
metadata
=
{
'
text
'
:
self
.
account
.
name
,
'
id
'
:
self
.
account
.
pubkey
}
self
.
draw_graph
(
metadata
)
self
.
refresh
(
)
def
draw_graph
(
self
,
metadata
):
def
draw_graph
(
self
,
metadata
):
"""
"""
...
@@ -55,6 +55,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -55,6 +55,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
:param dict metadata: Graph node metadata of the identity
:param dict metadata: Graph node metadata of the identity
"""
"""
logging
.
debug
(
"
Draw graph -
"
+
metadata
[
'
text
'
])
logging
.
debug
(
"
Draw graph -
"
+
metadata
[
'
text
'
])
self
.
_current_metadata
=
metadata
# create Person from node metadata
# create Person from node metadata
person
=
Person
.
from_metadata
(
metadata
)
person
=
Person
.
from_metadata
(
metadata
)
...
@@ -99,6 +100,12 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
...
@@ -99,6 +100,12 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
metadata
metadata
)
)
def
refresh
(
self
):
"""
Refresh graph scene to current metadata
"""
self
.
draw_graph
(
self
.
_current_metadata
)
def
search
(
self
):
def
search
(
self
):
"""
"""
Search nodes when return is pressed in combobox lineEdit
Search nodes when return is pressed in combobox lineEdit
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment