A simple and efficient random name picking tool suitable for quick random selection in classrooms meetings and other scenarios.
- Random Number Selection:Customize student ID range (e.g. 1-45) click the button to randomly scroll and stop at a number.
- Instant Result:Check the option to directly display the final random number with one click no animation preview needed.
- Window Pinning:Keep the main window on top for easy use in multi-tasking environments.
- Programming Language:Python 3.x
- GUI Framework:Tkinter (built-in library no additional graphical dependencies required)
- Theme Style:Modern interface using the
sv_ttk
library (requires additional installation) - Resource Management:Compatible path handling for development and packaged environments via the
resource_path
function
pip install sv_ttk pillow matplotlib
-
Run Source Code Directly:
- Ensure
main.py
icon.ico
andicon.png
are in the same directory. - Execute
python main.py
.
- Ensure
-
Use Packaged Executable File:
- Pack with PyInstaller (install first):
pyinstaller --onefile --windowed --name "ClassPicker" --icon "icon.ico" --add-data "icon.png;." --add-data "icon.ico;." main.py
- Run
dist/ClassPicker.exe
(Windows system).
- Pack with PyInstaller (install first):
- Main Window:Displays the current random number student ID range input field function buttons and options.
-
Icon Dependency:
- The program requires
icon.ico
(application icon) andicon.png
(about window icon) which must be included via--add-data
when packaging. - The program will still run without icon files but will show warning messages.
- The program requires
-
Compatibility:
- Mainly tested on Windows 10/11 theoretically supports macOS and Linux (requires adjusting packaging parameters).
- Developers:Ivan/龚奕帆(aiwandiannaodelele)
- Email:[email protected]
- Issue Reporting:Submit suggestions or bug reports in GitHub Issues.
This project is licensed under the MIT License. Contributions and suggestions are welcome!
✨ Use ClassPicker to make random selection easier!