-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtesting.py
28 lines (23 loc) · 883 Bytes
/
testing.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# values = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']
# positions = [(val, i, j) for i in range(4)
# for j in range(3) for val in values if i % 2 == 0]
# print(positions)
# monedas = [x for x in monedas if x != 3.14]
# mi_dict = {clave: valor for clave, valor in mi_dict.items() if valor != 3.14}
# To track the mouse position and clicks
# self.setMouseTracking(True)
# def mouseMoveEvent(self, event):
# x = event.pos().x()
# y = event.pos().y()
# print(x, y)
# def mousePressEvent(self, event):
# x = event.position().x()
# y = event.position().y()
# print(f"Clicked at {x},{y}")
# def mouseReleaseEvent(self, event):
# x = event.position().x()
# y = event.position().y()
# print(f"Click released at {x},{y}")
# Keyboard:
# def keyPressEvent(self, event):
# print((f'Key: {event.text()} Code: {event.key()}'))