반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Python
- Tkinter
- google apps script
- dataframe
- Excel
- list
- math
- Kotlin
- Apache
- GIT
- gas
- 파이썬
- Google Excel
- array
- c#
- Google Spreadsheet
- SQL
- django
- Java
- matplotlib
- string
- Redshift
- numpy
- PANDAS
- PySpark
- Github
- hive
- Mac
- PostgreSQL
Archives
- Today
- Total
목록place_info (1)
달나라 노트
Python tkinter : place_info (객체의 위치 정보, 객체의 position, 객체 위치 좌표)
Label, Button같은 어떤 객체는 Window의 어느 부분에 표시될지에 대한 위치 정보를 가지고 있습니다. place_info method는 이러한 객체들의 현재 위치정보를 담은 dictionary를 return합니다. import tkinter as tk window = tk.Tk() window.geometry('1000x400') label = tk.Label(window, text='Label') label.place(x=10, y=15) dict_info = label.place_info() print(dict_info) print('x =', dict_info['x']) print('y =', dict_info['y']) window.mainloop() 위 코드는 Label의 위치 정보..
Python/Python tkinter
2022. 5. 17. 21:43