Browse Source

Put toolBar top by default

Kentaro Wada 2 năm trước cách đây
mục cha
commit
60ad92d6da
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      labelme/app.py

+ 1 - 2
labelme/app.py

@@ -742,7 +742,6 @@ class MainWindow(QtWidgets.QMainWindow):
         )
 
         self.tools = self.toolbar("Tools")
-        # Menu buttons on Left
         self.actions.tool = (
             open_,
             opendir,
@@ -842,7 +841,7 @@ class MainWindow(QtWidgets.QMainWindow):
         toolbar.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)
         if actions:
             utils.addActions(toolbar, actions)
-        self.addToolBar(Qt.LeftToolBarArea, toolbar)
+        self.addToolBar(Qt.TopToolBarArea, toolbar)
         return toolbar
 
     # Support Functions