python tkinter entry height
时间: 2023-09-07 14:12:42 浏览: 161
Python Tkinter Entry和Text的添加与使用详解
在Tkinter中,Entry小部件的高度可以通过配置其height属性来设置。默认情况下,Entry小部件的高度是一个字符的高度。也可以使用像素值来设置高度。例如,如果要将Entry小部件的高度设置为2个字符的高度,可以使用以下代码:entry = Entry(root, height=2)。这将创建一个具有2个字符高度的Entry小部件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Python Tkinter Entry get()](https://blog.csdn.net/weixin_39737636/article/details/111080991)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Python基于Tkinter实现的记事本实例](https://download.csdn.net/download/weixin_38594266/13771702)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文