clean ups

This commit is contained in:
Andreas Preikschat 2012-04-12 16:16:12 +02:00
parent 6b4fc124c7
commit 620d858d68
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
"""
"""
Constrctor
"""
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__))