trivial clean ups

bzr-revno: 1942
This commit is contained in:
Andreas Preikschat 2012-04-19 08:41:57 +02:00 committed by Raoul Snyman
commit 6f3b0f337a
6 changed files with 9 additions and 12 deletions

View File

@ -29,8 +29,7 @@ The :mod:`lib` module contains most of the components and libraries that make
OpenLP work.
"""
import logging
import os.path
import types
import os
from PyQt4 import QtCore, QtGui, Qt

View File

@ -27,7 +27,7 @@
"""
Extend QListWidget to handle drag and drop functionality
"""
import os.path
import os
from PyQt4 import QtCore, QtGui

View File

@ -29,7 +29,6 @@ The bible import functions for OpenLP
"""
import logging
import os
import os.path
import locale
from PyQt4 import QtCore, QtGui

View File

@ -26,7 +26,6 @@
###############################################################################
import os
import os.path
import logging
import chardet
import codecs

View File

@ -376,17 +376,17 @@ class SingleColumnTableWidget(QtGui.QTableWidget):
Class to for a single column table widget to use for the verse table widget.
"""
def __init__(self, parent):
"""
Constrctor
"""
"""
Constructor
"""
QtGui.QTableWidget.__init__(self, parent)
self.horizontalHeader().setVisible(False)
self.setColumnCount(1)
def resizeEvent(self, event):
"""
Resize the first column together with the widget.
"""
"""
Resize the first column together with the widget.
"""
QtGui.QTableWidget.resizeEvent(self, event)
if self.columnCount():
self.setColumnWidth(0, event.size().width())

View File

@ -34,7 +34,7 @@ simply run this script::
"""
import os.path
import os
import sys
TESTS_PATH = os.path.dirname(os.path.abspath(__file__))