[Python small project Tkinter application] Random roll call/lottery tool optimization: Add a new view history window! Voice broadcast function! Fix bugs in previous versions such as the preview file button!


Preface

As a cliché, look at the effect first: (Subscribe to the column to get the complete code)

Please add image description
In the initial state, we add pop-up windows for buttons other than [Settings] to prompt users to [Settings] before using the tool. In the settings interface, we have mainly modified the [Preview File] button, from previewing only the first 5 items to previewing the entire content of the file, but the content is read-only. At the same time, a pop-up window is added to inform the user of the total number of people in the file. In addition, we also fixed the [Preview file] bug. In the previous version, our [Preview File] can be previewed as long as the file has been read, and repeated previews are prohibited. However, the user may have mistakenly selected another file with the correct format. In this case, the user will click the [Select File] button again in the settings interface. In previous versions, the [Preview File] button would not update as files were newly selected. We have fixed this bug in the current version.

After completing the settings and after a round of selection, the current version adds two main functions:

  • Voice broadcast of the selected number of people: machine voice reading of the results
  • View history: The selected person will be displayed in a list box

Guess you like

Origin blog.csdn.net/qq_36584673/article/details/132851084