mirror of
https://github.com/wassname/sloth.git
synced 2026-07-10 22:00:35 +08:00
remove some unnecessary imports
This commit is contained in:
@@ -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 *
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user