일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 |
- PANDAS
- SQL
- dataframe
- string
- Redshift
- Github
- Python
- PySpark
- Google Excel
- gas
- GIT
- Excel
- 파이썬
- django
- math
- google apps script
- Java
- Kotlin
- Mac
- Tkinter
- list
- hive
- matplotlib
- PostgreSQL
- c#
- Google Spreadsheet
- Apache
- numpy
- array
- Today
- Total
목록Mouse (2)
달나라 노트
pynput library로 mouse를 컨트롤 하는 방법을 알아봅시다.(mac환경에서 진행됩니다.) from pynput.mouse import Button, Controllermouse = Controller()print('The current pointer position is {0}'.format(mouse.position)) 위처럼 mouse 객체를 만들면 position attribute는 마우스의 위치를 담고 있습니다. 화면의 왼쪽 가장 위가 (0, 0)이며오른쪽으로 갈수록 x좌표가 양수로 증가하고아래쪽으로 갈수록 y좌표가 양수로 증가합니다. from pynput.mouse import Button, Controllermouse = Controller()# move pointer to ..

MouseMove Event는 마우스가 움직일 때 발생하는 Event입니다. 보통 이런 Event는 실시간으로 마우스의 위치를 파악해야할 때 유용합니다. 아래 코드를 봅시다. using System; using System.Windows.Forms; using System.Drawing; class Sample2 { public static void Main() { Form fm = new Form(); fm.ClientSize = new Size(300, 250); Label lbl = new Label(); lbl.Parent = fm; lbl.Width = 200; lbl.Height = 30; void mouse_realtime_location(object sender, MouseEventArgs..