Procházet zdrojové kódy

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

wzp před 3 měsíci
rodič
revize
1e7f813f78
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      Front/main.py

+ 2
- 2
Front/main.py Zobrazit soubor

@@ -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…
Zrušit
Uložit