fixed CQ for bitmessageqt.migrationwizard module
This commit is contained in:
parent
b750b02963
commit
e3372c6179
|
@ -1,13 +1,22 @@
|
||||||
#!/usr/bin/env python2.7
|
#!/usr/bin/env python2.7
|
||||||
from PyQt4 import QtCore, QtGui
|
"""
|
||||||
|
src/bitmessageqt/migrationwizard.py
|
||||||
|
===============================
|
||||||
|
|
||||||
|
"""
|
||||||
|
# pylint: disable=too-few-public-methods,no-self-use,unused-argument
|
||||||
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
|
|
||||||
class MigrationWizardIntroPage(QtGui.QWizardPage):
|
class MigrationWizardIntroPage(QtGui.QWizardPage):
|
||||||
|
"""MigrationWizardIntroPage class for Qt UI"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(QtGui.QWizardPage, self).__init__()
|
super(QtGui.QWizardPage, self).__init__()
|
||||||
self.setTitle("Migrating configuration")
|
self.setTitle("Migrating configuration")
|
||||||
|
|
||||||
label = QtGui.QLabel("This wizard will help you to migrate your configuration. "
|
label = QtGui.QLabel("This wizard will help you to migrate your configuration. "
|
||||||
"You can still keep using PyBitMessage once you migrate, the changes are backwards compatible.")
|
"You can still keep using PyBitMessage once you migrate, "
|
||||||
|
"the changes are backwards compatible.")
|
||||||
label.setWordWrap(True)
|
label.setWordWrap(True)
|
||||||
|
|
||||||
layout = QtGui.QVBoxLayout()
|
layout = QtGui.QVBoxLayout()
|
||||||
|
@ -15,10 +24,12 @@ class MigrationWizardIntroPage(QtGui.QWizardPage):
|
||||||
self.setLayout(layout)
|
self.setLayout(layout)
|
||||||
|
|
||||||
def nextId(self):
|
def nextId(self):
|
||||||
|
"""It returns next id"""
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
class MigrationWizardAddressesPage(QtGui.QWizardPage):
|
class MigrationWizardAddressesPage(QtGui.QWizardPage):
|
||||||
|
"""MigrationWizardAddressesPage class for Qt Ui"""
|
||||||
def __init__(self, addresses):
|
def __init__(self, addresses):
|
||||||
super(QtGui.QWizardPage, self).__init__()
|
super(QtGui.QWizardPage, self).__init__()
|
||||||
self.setTitle("Addresses")
|
self.setTitle("Addresses")
|
||||||
|
@ -31,10 +42,12 @@ class MigrationWizardAddressesPage(QtGui.QWizardPage):
|
||||||
self.setLayout(layout)
|
self.setLayout(layout)
|
||||||
|
|
||||||
def nextId(self):
|
def nextId(self):
|
||||||
|
"""It returns next id"""
|
||||||
return 10
|
return 10
|
||||||
|
|
||||||
|
|
||||||
class MigrationWizardGPUPage(QtGui.QWizardPage):
|
class MigrationWizardGPUPage(QtGui.QWizardPage):
|
||||||
|
"""MigrationWizardGPUPage class for Qt Ui"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(QtGui.QWizardPage, self).__init__()
|
super(QtGui.QWizardPage, self).__init__()
|
||||||
self.setTitle("GPU")
|
self.setTitle("GPU")
|
||||||
|
@ -47,10 +60,12 @@ class MigrationWizardGPUPage(QtGui.QWizardPage):
|
||||||
self.setLayout(layout)
|
self.setLayout(layout)
|
||||||
|
|
||||||
def nextId(self):
|
def nextId(self):
|
||||||
|
"""It returns next id"""
|
||||||
return 10
|
return 10
|
||||||
|
|
||||||
|
|
||||||
class MigrationWizardConclusionPage(QtGui.QWizardPage):
|
class MigrationWizardConclusionPage(QtGui.QWizardPage):
|
||||||
|
"""MigrationWizardConclusionPage class for Qt Ui"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(QtGui.QWizardPage, self).__init__()
|
super(QtGui.QWizardPage, self).__init__()
|
||||||
self.setTitle("All done!")
|
self.setTitle("All done!")
|
||||||
|
@ -64,6 +79,7 @@ class MigrationWizardConclusionPage(QtGui.QWizardPage):
|
||||||
|
|
||||||
|
|
||||||
class Ui_MigrationWizard(QtGui.QWizard):
|
class Ui_MigrationWizard(QtGui.QWizard):
|
||||||
|
"""Ui_MigrationWizard class for Qt Ui"""
|
||||||
def __init__(self, addresses):
|
def __init__(self, addresses):
|
||||||
super(QtGui.QWizard, self).__init__()
|
super(QtGui.QWizard, self).__init__()
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user