瀏覽代碼

修改了右键菜单不在指定界面弹出的bug

wzp 3 月之前
父節點
當前提交
1e7f813f78
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Front/main.py

+ 2
- 2
Front/main.py 查看文件

@@ -801,8 +801,8 @@ class MainWindow(QMainWindow):
801 801
         if event.buttons() == Qt.RightButton:
802 802
             print('Mouse click: RIGHT CLICK')
803 803
             # 修改 show_custom_context_menu 调用
804
-        if event.button() == Qt.RightButton:
805
-            self.show_custom_context_menu(event.position().toPoint())
804
+        # if event.button() == Qt.RightButton:
805
+        #     self.show_custom_context_menu(event.position().toPoint())
806 806
 
807 807
     # 设一个全局变量,存数据库中所有的包含内容(数据库-三种方法-表)
808 808
     dblist = []

Loading…
取消
儲存