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. 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 Constrctor
""" """
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__))