Keeping the terminal in focus

后端 未结 4 1906
忘掉有多难
忘掉有多难 2020-12-31 12:43

I have a python script which uses selenium to automate web page, drawing focus away from the terminal where user input is required.

Is there anyway in python

4条回答
  •  没有蜡笔的小新
    2020-12-31 13:03

    If you don't care about clearing any figure displayed in the matplotlib frame -- which I believe is normally the case when one wants to get the focus back on the console for user input -- use simply this:

    plt.close("all")
    

提交回复
热议问题