This is a simple QR code generator made using Python and Tkinter. It allows you to generate QR codes for URL that you input, and save them as image files.
Check out our project blog post for more information on the development process and our thoughts on the QR Code Generator project:
- Python 3.x
- Tkinter library (which is usually included with Python)
- Clone this repository to your local machine.
- Open a terminal window and navigate to the cloned repository.
- Run the following command to start the game: python3 qr.py
- Enter the text or URL that you want to generate a QR code for and click the "Generate QR Code" button.
- Your QR code will be displayed on the screen. Click the "Save QR Code" button to save the QR code image as a PNG file.
- Choose a location to save the QR code image by using the file dialog box that appears. Enter a file name and click the "Save" button.
- creating the user interface and handling user input.
- The init method initializes the user interface by creating and configuring the label, entry, and button widgets.
- The
generate_qr_code
method generates a QR code based on the user input, and thesave_qr_code
method saves the QR code as a PNG image file. - Finally, the root variable creates the main window and runs the QRCodeGenerator class.