浏览代码

Update TODO and minor changes

Michael Pitidis 13 年之前
父节点
当前提交
4e01351f28
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 2 3
      canvas.py
  2. 0 1
      labelme.py

+ 2 - 3
canvas.py

@@ -11,7 +11,7 @@ from shape import Shape
 # - [maybe] Find optimal epsilon value.
 
 CURSOR_DEFAULT = Qt.ArrowCursor
-CURSOR_POINT    = Qt.PointingHandCursor
+CURSOR_POINT   = Qt.PointingHandCursor
 CURSOR_DRAW    = Qt.CrossCursor
 CURSOR_MOVE    = Qt.ClosedHandCursor
 CURSOR_GRAB    = Qt.OpenHandCursor
@@ -412,11 +412,10 @@ class Canvas(QWidget):
     def keyPressEvent(self, ev):
         if ev.key() == Qt.Key_Escape and self.current:
             self.current = None
-            self.repaint()
+            self.update()
 
     def setLastLabel(self, text):
         assert text
-        print "shape <- '%s'" % text
         self.shapes[-1].label = text
         return self.shapes[-1]
 

+ 0 - 1
labelme.py

@@ -36,7 +36,6 @@ __appname__ = 'labelme'
 # - [high] More sensible shortcuts (e.g. Ctrl+C to copy).
 # - [high] Figure out WhatsThis for help.
 # - [medium] Zoom should keep the image centered.
-# - [high] Add recently opened files list in File menu.
 # - [high] Escape should cancel editing mode if no point in canvas.
 # - [medium] Add undo button for vertex addition.
 # - [medium,maybe] Support vertex moving.