Python- Displaying a message box that can be closed in the code (no user intervention)

后端 未结 2 1412
太阳男子
太阳男子 2021-01-22 07:54

I am creating test scripts using Python. I need to have a message displayed to the user while the script continues to run. This is to have some status update , for eg: \"Saving

2条回答
  •  终归单人心
    2021-01-22 08:17

    If you have started to create a GUI, you should be able to use the textbox() function. A text box could be used as a place for your status messages, rather than making a separate dialog window appear.

    I got the following description of textbox() here:

    textbox(msg='', title=' ', text='', codebox=0)

    Display some text in a proportional font with line wrapping at word breaks. This function is suitable for displaying general written text. The text parameter should be a string, or a list or tuple of lines to be displayed in the textbox.

提交回复
热议问题