반응형
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 |
Tags
- GIT
- hive
- SQL
- 파이썬
- PostgreSQL
- c#
- string
- dataframe
- Java
- PySpark
- Tkinter
- matplotlib
- numpy
- gas
- Kotlin
- Github
- Python
- django
- Excel
- google apps script
- Google Excel
- array
- Redshift
- list
- Google Spreadsheet
- math
- Presto
- PANDAS
- Apache
Archives
- Today
- Total
목록Geometry (1)
달나라 노트
tkinter의 geometry method를 이용하면 Window의 크기를 지정할 수 있습니다. import tkinter as tk window = tk.Tk() window.geometry('500x400') window.mainloop() - window.geometry('500x400') 사용법은 위처럼 geometry method의 인자로서 위같이 '가로길이x세로길이'의 형태의 인자를 전달하면 됩니다. 위 예시에서는 가로길이 = 500, 세로길이 = 400으로 지정되었습니다. 여기서 각 길이의 단위는 픽셀입니다. 즉, 가로길이 = 500픽셀, 세로길이 400픽셀 인 것입니다. 그 결과는 위와 같습니다. 기본 tkinter window의 크기보다 더 커진 것을 알 수 있습니다.
Python/Python tkinter
2022. 5. 17. 19:05