diff --git a/scripts/constants.py b/scripts/constants.py deleted file mode 100644 index 76ee8d8..0000000 --- a/scripts/constants.py +++ /dev/null @@ -1,198 +0,0 @@ -countries = [ - "Afghanistan", - "Albania", - "Algeria", - "Andorra", - "Angola", - "Antigua and Barbuda", - "Argentina", - "Armenia", - "Australia", - "Austria", - "Azerbaijan", - "The Bahamas", - "Bahrain", - "Bangladesh", - "Barbados", - "Belarus", - "Belgium", - "Belize", - "Benin", - "Bhutan", - "Bolivia", - "Bosnia and Herzegovina", - "Botswana", - "Brazil", - "Brunei", - "Bulgaria", - "Burkina Faso", - "Burundi", - "Cambodia", - "Cameroon", - "Canada", - "Cape Verde", - "Central African Republic", - "Chad", - "Chile", - "China", - "Colombia", - "Comoros", - "Congo, Republic of the", - "Congo, Democratic Republic of the", - "Costa Rica", - "Cote d'Ivoire", - "Croatia", - "Cuba", - "Cyprus", - "Czech Republic", - "Denmark", - "Djibouti", - "Dominica", - "Dominican Republic", - "East Timor (Timor-Leste)", - "Ecuador", - "Egypt", - "El Salvador", - "Equatorial Guinea", - "Eritrea", - "Estonia", - "Ethiopia", - "Fiji", - "Finland", - "France", - "Gabon", - "The Gambia", - "Georgia", - "Germany", - "Ghana", - "Greece", - "Grenada", - "Guatemala", - "Guinea", - "Guinea-Bissau", - "Guyana", - "Haiti", - "Honduras", - "Hungary", - "Iceland", - "India", - "Indonesia", - "Iran", - "Iraq", - "Ireland", - "Israel", - "Italy", - "Jamaica", - "Japan", - "Jordan", - "Kazakhstan", - "Kenya", - "Kiribati", - "Korea, North", - "Korea, South", - "Kosovo", - "Kuwait", - "Kyrgyzstan", - "Laos", - "Latvia", - "Lebanon", - "Lesotho", - "Liberia", - "Libya", - "Liechtenstein", - "Lithuania", - "Luxembourg", - "Macedonia", - "Madagascar", - "Malawi", - "Malaysia", - "Maldives", - "Mali", - "Malta", - "Marshall Islands", - "Mauritania", - "Mauritius", - "Mexico", - "Micronesia, Federated States of", - "Moldova", - "Monaco", - "Mongolia", - "Montenegro", - "Morocco", - "Mozambique", - "Myanmar (Burma)", - "Namibia", - "Nauru", - "Nepal", - "Netherlands", - "New Zealand", - "Nicaragua", - "Niger", - "Nigeria", - "Norway", - "Oman", - "Pakistan", - "Palau", - "Panama", - "Papua New Guinea", - "Paraguay", - "Peru", - "Philippines", - "Poland", - "Portugal", - "Qatar", - "Romania", - "Russia", - "Rwanda", - "Saint Kitts and Nevis", - "Saint Lucia", - "Saint Vincent and the Grenadines", - "Samoa", - "San Marino", - "Sao Tome and Principe", - "Saudi Arabia", - "Senegal", - "Serbia", - "Seychelles", - "Sierra Leone", - "Singapore", - "Slovakia", - "Slovenia", - "Solomon Islands", - "Somalia", - "South Africa", - "South Sudan", - "Spain", - "Sri Lanka", - "Sudan", - "Suriname", - "Swaziland", - "Sweden", - "Switzerland", - "Syria", - "Taiwan", - "Tajikistan", - "Tanzania", - "Thailand", - "Togo", - "Tonga", - "Trinidad and Tobago", - "Tunisia", - "Turkey", - "Turkmenistan", - "Tuvalu", - "Uganda", - "Ukraine", - "United Arab Emirates", - "United Kingdom", - "United States of America", - "Uruguay", - "Uzbekistan", - "Vanuatu", - "Vatican City (Holy See)", - "Venezuela", - "Vietnam", - "Yemen", - "Zambia", - "Zimbabwe", -] \ No newline at end of file diff --git a/scripts/qrcode.py b/scripts/qrcode.py index f7a2164..f9d2886 100644 --- a/scripts/qrcode.py +++ b/scripts/qrcode.py @@ -5,7 +5,6 @@ import os from modules import script_callbacks, generation_parameters_copypaste, extensions from modules.shared import opts -from scripts import constants from PIL import Image import segno from segno import helpers @@ -72,7 +71,7 @@ def on_ui_tabs(): inputs["vcard_state"] = gr.Text(label="State") with gr.Row(): inputs["vcard_zipcode"] = gr.Text(label="ZIP Code") - inputs["vcard_country"] = gr.Dropdown(label="Country", allow_custom_value=True, choices=constants.countries) + inputs["vcard_country"] = gr.Text(label="Country") inputs["vcard_birthday"] = gr.Text(label="Birthday") inputs["vcard_fax"] = gr.Text(label="Fax") inputs["vcard_memo"] = gr.Text(label="Memo") @@ -89,7 +88,7 @@ def on_ui_tabs(): inputs["mecard_state"] = gr.Text(label="State") with gr.Row(): inputs["mecard_zipcode"] = gr.Text(label="ZIP Code") - inputs["mecard_country"] = gr.Dropdown(label="Country", allow_custom_value=True, choices=constants.countries) + inputs["mecard_country"] = gr.Text(label="Country") inputs["mecard_birthday"] = gr.Text(label="Birthday") inputs["mecard_memo"] = gr.Text(label="Memo")