fixed CQ for bitmessageqt.migrationwizard module
This commit is contained in:
parent
b750b02963
commit
e3372c6179
|
@ -1,13 +1,22 @@
|
|||
#!/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):
|
||||
"""MigrationWizardIntroPage class for Qt UI"""
|
||||
def __init__(self):
|
||||
super(QtGui.QWizardPage, self).__init__()
|
||||
self.setTitle("Migrating 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)
|
||||
|
||||
layout = QtGui.QVBoxLayout()
|
||||
|
@ -15,10 +24,12 @@ class MigrationWizardIntroPage(QtGui.QWizardPage):
|
|||
self.setLayout(layout)
|
||||
|
||||
def nextId(self):
|
||||
"""It returns next id"""
|
||||
return 1
|
||||
|
||||
|
||||
class MigrationWizardAddressesPage(QtGui.QWizardPage):
|
||||
"""MigrationWizardAddressesPage class for Qt Ui"""
|
||||
def __init__(self, addresses):
|
||||
super(QtGui.QWizardPage, self).__init__()
|
||||
self.setTitle("Addresses")
|
||||
|
@ -31,10 +42,12 @@ class MigrationWizardAddressesPage(QtGui.QWizardPage):
|
|||
self.setLayout(layout)
|
||||
|
||||
def nextId(self):
|
||||
"""It returns next id"""
|
||||
return 10
|
||||
|
||||
|
||||
class MigrationWizardGPUPage(QtGui.QWizardPage):
|
||||
"""MigrationWizardGPUPage class for Qt Ui"""
|
||||
def __init__(self):
|
||||
super(QtGui.QWizardPage, self).__init__()
|
||||
self.setTitle("GPU")
|
||||
|
@ -47,10 +60,12 @@ class MigrationWizardGPUPage(QtGui.QWizardPage):
|
|||
self.setLayout(layout)
|
||||
|
||||
def nextId(self):
|
||||
"""It returns next id"""
|
||||
return 10
|
||||
|
||||
|
||||
class MigrationWizardConclusionPage(QtGui.QWizardPage):
|
||||
"""MigrationWizardConclusionPage class for Qt Ui"""
|
||||
def __init__(self):
|
||||
super(QtGui.QWizardPage, self).__init__()
|
||||
self.setTitle("All done!")
|
||||
|
@ -64,6 +79,7 @@ class MigrationWizardConclusionPage(QtGui.QWizardPage):
|
|||
|
||||
|
||||
class Ui_MigrationWizard(QtGui.QWizard):
|
||||
"""Ui_MigrationWizard class for Qt Ui"""
|
||||
def __init__(self, addresses):
|
||||
super(QtGui.QWizard, self).__init__()
|
||||
|
||||
|
|
Reference in New Issue
Block a user