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
ac0d899a
Commit
ac0d899a
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Added waiting cursor to operations
#94
parent
efa6f3b7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cutecoin/gui/certification.py
+5
-1
5 additions, 1 deletion
src/cutecoin/gui/certification.py
src/cutecoin/gui/mainwindow.py
+4
-2
4 additions, 2 deletions
src/cutecoin/gui/mainwindow.py
src/cutecoin/gui/transfer.py
+7
-3
7 additions, 3 deletions
src/cutecoin/gui/transfer.py
with
16 additions
and
6 deletions
src/cutecoin/gui/certification.py
+
5
−
1
View file @
ac0d899a
...
...
@@ -3,7 +3,8 @@ Created on 24 dec. 2014
@author: inso
'''
from
PyQt5.QtWidgets
import
QDialog
,
QMessageBox
,
QDialogButtonBox
from
PyQt5.QtWidgets
import
QDialog
,
QMessageBox
,
QDialogButtonBox
,
QApplication
from
PyQt5.QtCore
import
Qt
from
..tools.exceptions
import
NoPeerAvailable
from
..gen_resources.certification_uic
import
Ui_CertificationDialog
...
...
@@ -42,6 +43,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
return
try
:
QApplication
.
setOverrideCursor
(
Qt
.
WaitCursor
)
self
.
account
.
certify
(
password
,
self
.
community
,
pubkey
)
QMessageBox
.
information
(
self
,
"
Certification
"
,
"
Success certifying {0} from {1}
"
.
format
(
pubkey
,
...
...
@@ -61,6 +63,8 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
"
{0}
"
.
format
(
e
),
QMessageBox
.
Ok
)
return
finally
:
QApplication
.
restoreOverrideCursor
()
super
().
accept
()
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/gui/mainwindow.py
+
4
−
2
View file @
ac0d899a
...
...
@@ -8,9 +8,9 @@ from ..gen_resources.about_uic import Ui_AboutPopup
from
..gen_resources.homescreen_uic
import
Ui_HomeScreenWidget
from
PyQt5.QtWidgets
import
QMainWindow
,
QAction
,
QFileDialog
,
QProgressBar
,
\
QMessageBox
,
QLabel
,
QComboBox
,
QDialog
QMessageBox
,
QLabel
,
QComboBox
,
QDialog
,
QApplication
from
PyQt5.QtCore
import
QSignalMapper
,
QObject
,
QThread
,
\
pyqtSlot
,
pyqtSignal
,
QDate
,
QDateTime
,
QTimer
,
QUrl
pyqtSlot
,
pyqtSignal
,
QDate
,
QDateTime
,
QTimer
,
QUrl
,
Qt
from
PyQt5.QtGui
import
QIcon
,
QDesktopServices
from
.process_cfg_account
import
ProcessConfigureAccount
...
...
@@ -122,6 +122,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
def
loader_finished
(
self
):
self
.
refresh
()
self
.
busybar
.
hide
()
QApplication
.
restoreOverrideCursor
()
self
.
app
.
disconnect
()
self
.
app
.
monitor
.
start_watching
()
...
...
@@ -170,6 +171,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self
.
busybar
.
setMaximum
(
maximum
)
self
.
app
.
current_account
=
None
self
.
refresh
()
QApplication
.
setOverrideCursor
(
Qt
.
BusyCursor
)
self
.
app
.
loading_progressed
.
connect
(
loading_progressed
)
self
.
busybar
.
setMinimum
(
0
)
self
.
busybar
.
setMaximum
(
0
)
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/gui/transfer.py
+
7
−
3
View file @
ac0d899a
...
...
@@ -3,9 +3,9 @@ Created on 2 févr. 2014
@author: inso
'''
from
PyQt5.QtWidgets
import
QDialog
,
QMessageBox
from
PyQt5.QtCore
import
QRegExp
from
PyQt5.QtGui
import
QRegExpValidator
,
QValidator
from
PyQt5.QtWidgets
import
QDialog
,
QMessageBox
,
QApplication
from
PyQt5.QtCore
import
QRegExp
,
Qt
from
PyQt5.QtGui
import
QRegExpValidator
from
..tools.exceptions
import
NotEnoughMoneyError
,
NoPeerAvailable
from
..gen_resources.transfer_uic
import
Ui_TransferMoneyDialog
...
...
@@ -72,6 +72,7 @@ class TransferMoneyDialog(QDialog, Ui_TransferMoneyDialog):
return
try
:
QApplication
.
setOverrideCursor
(
Qt
.
WaitCursor
)
self
.
wallet
.
send_money
(
self
.
account
.
salt
,
password
,
self
.
community
,
recipient
,
amount
,
comment
)
QMessageBox
.
information
(
self
,
"
Money transfer
"
,
...
...
@@ -97,6 +98,9 @@ Please try again later""")
"
{0}
"
.
format
(
str
(
e
)),
QMessageBox
.
Ok
)
return
finally
:
QApplication
.
restoreOverrideCursor
()
super
().
accept
()
def
amount_changed
(
self
):
...
...
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