From 4bc79b45723b7f372aed797ac12f8f9f9142f2ad Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Thu, 16 Jun 2011 19:12:03 +0200 Subject: [PATCH] remove some unnecessary imports --- sloth/core/labeltool.py | 2 -- sloth/gui/labeltool.py | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sloth/core/labeltool.py b/sloth/core/labeltool.py index 6338bcf..07dca03 100755 --- a/sloth/core/labeltool.py +++ b/sloth/core/labeltool.py @@ -6,8 +6,6 @@ This is the core labeltool module. """ import sys, os -import fnmatch -from optparse import OptionParser from PyQt4.QtGui import * from PyQt4.QtCore import * from sloth.annotations.model import * diff --git a/sloth/gui/labeltool.py b/sloth/gui/labeltool.py index c576059..ce4aa40 100755 --- a/sloth/gui/labeltool.py +++ b/sloth/gui/labeltool.py @@ -1,6 +1,6 @@ #!/usr/bin/python import os -import functools, importlib +import functools import fnmatch from PyQt4.QtGui import * from PyQt4.QtCore import * @@ -14,7 +14,6 @@ from sloth.conf import config from sloth.core.utils import import_callable from sloth.annotations.model import * from sloth import APP_NAME, ORGANIZATION_DOMAIN, VERSION -import okapy.videoio as okv GUIDIR=os.path.join(os.path.dirname(__file__)) @@ -122,6 +121,9 @@ class MainWindow(QMainWindow): self.treeview.setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Preferred) self.ui.dockInformation.setWidget(self.treeview) + # Show the UI. It is important that this comes *after* the above + # adding of custom widgets, especially the central widget. Otherwise the + # dock widgets would be far to large. self.ui.show() ## connect action signals