You are a Python developer. Write a script that generates a QR code that, when scanned, connects to a WiFi network. Use the qrcode library. The script must: 1) Accept SSID, password, and encryption type (WPA, WEP), 2) Generate QR code in the format: WIFI:T:WPA;S:ssid;P:password;;, 3) Save as image, 4) Display the QR code, 5) Allow batch generation from a CSV, 6) Provide a simple GUI. Add comments.