반응형
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 |
Tags
- dataframe
- array
- Apache
- string
- Google Excel
- gas
- Tkinter
- GIT
- Github
- Kotlin
- Java
- Redshift
- PostgreSQL
- math
- Mac
- django
- PANDAS
- hive
- SQL
- 파이썬
- list
- Excel
- Python
- c#
- numpy
- Google Spreadsheet
- PySpark
- matplotlib
- google apps script
Archives
- Today
- Total
목록winfo_width (1)
달나라 노트

tkinter에서 Window 객체를 생성할 때 이 객체에는 여러 정보가 담깁니다. 이 정보에는 Window의 크기나 사용자가 사용하는 화면의 해상도 정보도 있습니다. 이러한 정보를 어떻게 얻을 수 있는지 알아봅시다. 1. winfo_width, winfo_height winfo_width = Window의 현재 가로 길이를 의미합니다. winfo_height = Window의 현재 세로 길이를 의미합니다. import tkinter as tk window = tk.Tk() window.geometry('500x400') label = tk.Label(window, text='Label') label.place(x=0, y=0) def show_screen_size(): width = window.win..
Python/Python tkinter
2022. 5. 17. 21:31