|
@@ -25,12 +25,19 @@ from toolBar import ToolBar
|
|
|
__appname__ = 'labelme'
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -183,7 +190,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
|
|
self.zoom_level = 100
|
|
|
self.fit_window = False
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
types = {
|
|
|
'filename': QString,
|
|
@@ -334,7 +341,6 @@ class MainWindow(QMainWindow, WindowMixin):
|
|
|
filename = unicode(filename)
|
|
|
if QFile.exists(filename):
|
|
|
if LabelFile.isLabelFile(filename):
|
|
|
-
|
|
|
lf = LabelFile()
|
|
|
lf.load(filename)
|
|
|
self.labelFile = lf
|
|
@@ -391,7 +397,6 @@ class MainWindow(QMainWindow, WindowMixin):
|
|
|
return w / self.canvas.pixmap.width()
|
|
|
|
|
|
def closeEvent(self, event):
|
|
|
-
|
|
|
s = self.settings
|
|
|
s['filename'] = self.filename if self.filename else QString()
|
|
|
s['window/size'] = self.size()
|
|
@@ -432,7 +437,6 @@ class MainWindow(QMainWindow, WindowMixin):
|
|
|
self.saveLabels(filename)
|
|
|
|
|
|
def check(self):
|
|
|
-
|
|
|
return True
|
|
|
|
|
|
def chooseColor(self):
|