Alex Sidorov 1 rok temu
rodzic
commit
2edb43cc1c
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      PropuskWidgets/PLineEdit.py

+ 3 - 2
PropuskWidgets/PLineEdit.py

@@ -19,9 +19,10 @@ class PLineEdit(QLineEdit):
 
     def __create_id(self) -> None:
         self.setText(datetime.now().strftime("%Y%m%d%H%M%S"))
+    
         
-    def mousePressEvent(self) -> None:
+    def mousePressEvent(self, action) -> None:
         self.__create_id()
-    
+        
     def get_value(self) -> None:
         return int(self.text())