diff --git a/customtkinter/windows/ctk_toplevel.py b/customtkinter/windows/ctk_toplevel.py index 3a351dc..a24ae57 100644 --- a/customtkinter/windows/ctk_toplevel.py +++ b/customtkinter/windows/ctk_toplevel.py @@ -38,14 +38,6 @@ class CTkToplevel(tkinter.Toplevel, CTkAppearanceModeBaseClass, CTkScalingBaseCl CTkScalingBaseClass.__init__(self, scaling_type="window") check_kwargs_empty(kwargs, raise_error=True) - try: - # Set Windows titlebar icon - if sys.platform.startswith("win"): - customtkinter_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - self.after(200, lambda: self.iconbitmap(os.path.join(customtkinter_directory, "assets", "icons", "CustomTkinter_icon_Windows.ico"))) - except Exception: - pass - self._current_width = 200 # initial window size, always without scaling self._current_height = 200 self._min_width: int = 0 diff --git a/customtkinter/windows/widgets/ctk_entry.py b/customtkinter/windows/widgets/ctk_entry.py index db54386..543ef87 100644 --- a/customtkinter/windows/widgets/ctk_entry.py +++ b/customtkinter/windows/widgets/ctk_entry.py @@ -39,10 +39,12 @@ class CTkEntry(CTkBaseClass): placeholder_text: Union[str, None] = None, font: Optional[Union[tuple, CTkFont]] = None, state: str = tkinter.NORMAL, + + name: Optional[str] = None, **kwargs): # transfer basic functionality (bg_color, size, appearance_mode, scaling) to CTkBaseClass - super().__init__(master=master, bg_color=bg_color, width=width, height=height) + super().__init__(master=master, bg_color=bg_color, width=width, height=height, name=name) # configure grid system (1x1) self.grid_rowconfigure(0, weight=1)