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
c1d5f420
Commit
c1d5f420
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Loading tiles
parent
a81a05bd
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/community_tile.py
+10
-1
10 additions, 1 deletion
src/cutecoin/gui/community_tile.py
src/cutecoin/gui/community_view.py
+0
-1
0 additions, 1 deletion
src/cutecoin/gui/community_view.py
with
10 additions
and
2 deletions
src/cutecoin/gui/community_tile.py
+
10
−
1
View file @
c1d5f420
...
@@ -7,7 +7,7 @@ from PyQt5.QtGui import QPalette
...
@@ -7,7 +7,7 @@ from PyQt5.QtGui import QPalette
from
PyQt5.QtCore
import
QEvent
,
QSize
,
pyqtSignal
from
PyQt5.QtCore
import
QEvent
,
QSize
,
pyqtSignal
from
..tools.decorators
import
asyncify
from
..tools.decorators
import
asyncify
import
asyncio
import
asyncio
from
.busy
import
Busy
class
CommunityTile
(
QFrame
):
class
CommunityTile
(
QFrame
):
clicked
=
pyqtSignal
()
clicked
=
pyqtSignal
()
...
@@ -22,6 +22,8 @@ class CommunityTile(QFrame):
...
@@ -22,6 +22,8 @@ class CommunityTile(QFrame):
self
.
layout
().
addWidget
(
self
.
text_label
)
self
.
layout
().
addWidget
(
self
.
text_label
)
self
.
setFrameShape
(
QFrame
.
StyledPanel
)
self
.
setFrameShape
(
QFrame
.
StyledPanel
)
self
.
setFrameShadow
(
QFrame
.
Raised
)
self
.
setFrameShadow
(
QFrame
.
Raised
)
self
.
busy
=
Busy
(
self
)
self
.
busy
.
hide
()
self
.
refresh
()
self
.
refresh
()
def
sizeHint
(
self
):
def
sizeHint
(
self
):
...
@@ -30,6 +32,8 @@ class CommunityTile(QFrame):
...
@@ -30,6 +32,8 @@ class CommunityTile(QFrame):
@asyncify
@asyncify
@asyncio.coroutine
@asyncio.coroutine
def
refresh
(
self
):
def
refresh
(
self
):
self
.
busy
.
show
()
self
.
setFixedSize
(
QSize
(
150
,
150
))
current_block
=
yield
from
self
.
community
.
get_block
(
self
.
community
.
network
.
latest_block_number
)
current_block
=
yield
from
self
.
community
.
get_block
(
self
.
community
.
network
.
latest_block_number
)
members_pubkeys
=
yield
from
self
.
community
.
members_pubkeys
()
members_pubkeys
=
yield
from
self
.
community
.
members_pubkeys
()
amount
=
yield
from
self
.
app
.
current_account
.
amount
(
self
.
community
)
amount
=
yield
from
self
.
app
.
current_account
.
amount
(
self
.
community
)
...
@@ -64,11 +68,16 @@ class CommunityTile(QFrame):
...
@@ -64,11 +68,16 @@ class CommunityTile(QFrame):
balance_label
=
self
.
tr
(
"
Balance
"
),
balance_label
=
self
.
tr
(
"
Balance
"
),
balance
=
localized_amount
)
balance
=
localized_amount
)
self
.
text_label
.
setText
(
description
)
self
.
text_label
.
setText
(
description
)
self
.
busy
.
hide
()
def
mousePressEvent
(
self
,
event
):
def
mousePressEvent
(
self
,
event
):
self
.
clicked
.
emit
()
self
.
clicked
.
emit
()
return
super
().
mousePressEvent
(
event
)
return
super
().
mousePressEvent
(
event
)
def
resizeEvent
(
self
,
event
):
self
.
busy
.
resize
(
event
.
size
())
super
().
resizeEvent
(
event
)
def
enterEvent
(
self
,
event
):
def
enterEvent
(
self
,
event
):
self
.
setStyleSheet
(
"
color: rgb(0, 115, 173);
"
)
self
.
setStyleSheet
(
"
color: rgb(0, 115, 173);
"
)
return
super
().
enterEvent
(
event
)
return
super
().
enterEvent
(
event
)
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/gui/community_view.py
+
0
−
1
View file @
c1d5f420
...
@@ -63,7 +63,6 @@ class CommunityWidget(QWidget, Ui_CommunityWidget):
...
@@ -63,7 +63,6 @@ class CommunityWidget(QWidget, Ui_CommunityWidget):
self
.
tab_identities
.
money_sent
.
connect
(
lambda
:
self
.
tab_history
.
table_history
.
model
().
sourceModel
().
refresh_transfers
())
self
.
tab_identities
.
money_sent
.
connect
(
lambda
:
self
.
tab_history
.
table_history
.
model
().
sourceModel
().
refresh_transfers
())
self
.
tab_wot
.
money_sent
.
connect
(
lambda
:
self
.
tab_history
.
table_history
.
model
().
sourceModel
().
refresh_transfers
())
self
.
tab_wot
.
money_sent
.
connect
(
lambda
:
self
.
tab_history
.
table_history
.
model
().
sourceModel
().
refresh_transfers
())
self
.
tabs
.
addTab
(
self
.
tab_history
,
self
.
tabs
.
addTab
(
self
.
tab_history
,
QIcon
(
'
:/icons/tx_icon
'
),
QIcon
(
'
:/icons/tx_icon
'
),
self
.
tr
(
"
Transactions
"
))
self
.
tr
(
"
Transactions
"
))
...
...
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