fix combobox #800

This commit is contained in:
Tom Schimansky 2022-12-07 22:10:35 +01:00
parent 77595da9f2
commit f11d727879

View File

@ -110,6 +110,7 @@ class CTkComboBox(CTkBaseClass):
self._entry.configure(textvariable=self._variable) self._entry.configure(textvariable=self._variable)
# insert default value # insert default value
if self._variable is None:
if len(self._values) > 0: if len(self._values) > 0:
self._entry.insert(0, self._values[0]) self._entry.insert(0, self._values[0])
else: else: