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. OpenLP work.
""" """
import logging import logging
import os.path import os
import types
from PyQt4 import QtCore, QtGui, Qt from PyQt4 import QtCore, QtGui, Qt

View File

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

View File

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

View File

@ -26,7 +26,6 @@
############################################################################### ###############################################################################
import os import os
import os.path
import logging import logging
import chardet import chardet
import codecs 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. Class to for a single column table widget to use for the verse table widget.
""" """
def __init__(self, parent): def __init__(self, parent):
""" """
Constrctor Constructor
""" """
QtGui.QTableWidget.__init__(self, parent) QtGui.QTableWidget.__init__(self, parent)
self.horizontalHeader().setVisible(False) self.horizontalHeader().setVisible(False)
self.setColumnCount(1) self.setColumnCount(1)
def resizeEvent(self, event): 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) QtGui.QTableWidget.resizeEvent(self, event)
if self.columnCount(): if self.columnCount():
self.setColumnWidth(0, event.size().width()) self.setColumnWidth(0, event.size().width())

View File

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