Change the focus from one Text widget to another

后端 未结 3 1847
粉色の甜心
粉色の甜心 2020-12-05 11:04

I\'m new to Python and I\'m trying to create a simple GUI using Tkinter.

So often in many user interfaces, hitting the tab button will change the focus from one Tex

3条回答
  •  鱼传尺愫
    2020-12-05 12:00

    It is really simple in PyQt4 simply use this one single line below and you will be able to change focus by pressing tab button:

    self.textEdit.setTabChangesFocus(True)

提交回复
热议问题