tkinter python entry height

前端 未结 7 1402
青春惊慌失措
青春惊慌失措 2020-12-06 06:21

I\'m making a simple app just to practice python in which I want to write text as if it were Notepad. However, I can\'t make my entry bigger. I\'m using tkinter for this. Do

7条回答
  •  有刺的猬
    2020-12-06 06:57

    Another way would be to increase the internal padding by adding this in the pack method:

    ...
    e = Entry(f,textvariable=1,height=20)
    e.pack(ipady=3)
    ...
    

    for instance. This worked for me for an 'Entry' and it also works with .grid()

提交回复
热议问题