Explorar el Código

动态窗口 TabbedView 模式下加入关闭按钮

mrh hace 2 años
padre
commit
b42d1ae62f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      main_windows.py

+ 1 - 0
main_windows.py

@@ -164,6 +164,7 @@ class MainWindow(Ui_MainWindow, QMainWindow):
     def toggle_tab_bar(self, checked):
         if checked:
             self.mdiArea.setViewMode(QMdiArea.TabbedView)
+            self.mdiArea.setTabsClosable(True)
         else:
             self.mdiArea.setViewMode(QMdiArea.SubWindowView)