changed constructor

This commit is contained in:
Andreas Preikschat 2013-07-18 21:04:38 +02:00
parent 8dd57bcc9d
commit 25e7df079b
5 changed files with 7 additions and 7 deletions

View File

@ -177,7 +177,7 @@ class Highlighter(QtGui.QSyntaxHighlighter):
""" """
Constructor Constructor
""" """
QtGui.QSyntaxHighlighter.__init__(self, *args) super(Highlighter, self).__init__(*args)
self.spelling_dictionary = None self.spelling_dictionary = None
def highlightBlock(self, text): def highlightBlock(self, text):
@ -205,5 +205,5 @@ class SpellAction(QtGui.QAction):
""" """
Constructor Constructor
""" """
QtGui.QAction.__init__(self, *args) super(SpellAction, self).__init__(*args)
self.triggered.connect(lambda x: self.correct.emit(self.text())) self.triggered.connect(lambda x: self.correct.emit(self.text()))

View File

@ -41,7 +41,7 @@ class CustomTab(SettingsTab):
CustomTab is the Custom settings tab in the settings dialog. CustomTab is the Custom settings tab in the settings dialog.
""" """
def __init__(self, parent, title, visible_title, icon_path): def __init__(self, parent, title, visible_title, icon_path):
SettingsTab.__init__(self, parent, title, visible_title, icon_path) super(CustomTab, self).__init__(parent, title, visible_title, icon_path)
def setupUi(self): def setupUi(self):
self.setObjectName(u'CustomTab') self.setObjectName(u'CustomTab')
@ -97,4 +97,4 @@ class CustomTab(SettingsTab):
settings.endGroup() settings.endGroup()
if self.tab_visited: if self.tab_visited:
self.settings_form.register_post_process(u'custom_config_updated') self.settings_form.register_post_process(u'custom_config_updated')
self.tab_visited = False self.tab_visited = False

View File

@ -45,7 +45,7 @@ mentioned above, like so::
class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog): class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
def __init__(self, parent=None): def __init__(self, parent=None):
QtGui.QDialog.__init__(self, parent) super(AuthorsForm, self).__init__(parent)
self.setupUi(self) self.setupUi(self)
This allows OpenLP to use ``self.object`` for all the GUI elements while keeping This allows OpenLP to use ``self.object`` for all the GUI elements while keeping

View File

@ -42,7 +42,7 @@ class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
""" """
Set up the screen and common data Set up the screen and common data
""" """
QtGui.QDialog.__init__(self, parent) super(AuthorsForm, self).__init__(parent)
self.setupUi(self) self.setupUi(self)
self.auto_display_name = False self.auto_display_name = False
self.first_name_edit.textEdited.connect(self.on_first_name_edited) self.first_name_edit.textEdited.connect(self.on_first_name_edited)

View File

@ -355,7 +355,7 @@ class SingleColumnTableWidget(QtGui.QTableWidget):
""" """
Constructor Constructor
""" """
QtGui.QTableWidget.__init__(self, parent) super(SingleColumnTableWidget, self).__init__(parent)
self.horizontalHeader().setVisible(False) self.horizontalHeader().setVisible(False)
self.setColumnCount(1) self.setColumnCount(1)