mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fix combobox #800
This commit is contained in:
parent
77595da9f2
commit
f11d727879
@ -110,10 +110,11 @@ class CTkComboBox(CTkBaseClass):
|
|||||||
self._entry.configure(textvariable=self._variable)
|
self._entry.configure(textvariable=self._variable)
|
||||||
|
|
||||||
# insert default value
|
# insert default value
|
||||||
if len(self._values) > 0:
|
if self._variable is None:
|
||||||
self._entry.insert(0, self._values[0])
|
if len(self._values) > 0:
|
||||||
else:
|
self._entry.insert(0, self._values[0])
|
||||||
self._entry.insert(0, "CTkComboBox")
|
else:
|
||||||
|
self._entry.insert(0, "CTkComboBox")
|
||||||
|
|
||||||
def _create_bindings(self, sequence: Optional[str] = None):
|
def _create_bindings(self, sequence: Optional[str] = None):
|
||||||
""" set necessary bindings for functionality of widget, will overwrite other bindings """
|
""" set necessary bindings for functionality of widget, will overwrite other bindings """
|
||||||
|
Loading…
Reference in New Issue
Block a user