# Path: ui/TooltipEntry.py
# class TooltipEntry(Entry):
#     def __init__(self, parent, *args, **kw):
#         Entry.__init__(self, parent, *args, **kw)
# 
#         self.tooltip = Tooltip2(self, waittime=0, text='', bg='white')  #, pad=(0, 0, 0, 0))
# 
#     def showTooltip(self, text=None, pos=None):
#         self.tooltip.show(text, pos)
# 
#     def hideTooltip(self):
#         self.tooltip.hide()
# 
#     def destroy(self):
#         self.tooltip.hide()
#         super().destroy()


from tkinter.constants import *
from tkinter.ttk import Entry
from ui.TooltipEntry import TooltipEntry
    from tkinter import Tk
    from tkinter.ttk import Entry, Style, LabelFrame, Label
    import tkinter.font as tkfont
        if entry.with_placeholder:
            entry.delete(0, "end")
            entry.config(style=normal_style)
            entry.with_placeholder = False

    def on_focusout(event, entry=entry):
        if entry.get() == '':
            entry.insert(0, placeholder_text)
            entry.config(style=placeholder_style)
            entry.with_placeholder = True

    entry.with_placeholder = entry.get() == ''
    if entry.with_placeholder:
        entry.insert(0, placeholder_text)
        entry.config(style=placeholder_style)

    entry.bind('<FocusIn>', on_focusin, add="+")
    entry.bind('<FocusOut>', on_focusout, add="+")

cool_font = None

if __name__ == "__main__":
    root = Tk()
    root.configure(padx=10, pady=10)
    root.columnconfigure(0, weight=1)
    root.rowconfigure(0, weight=1)
    login_frame = LabelFrame(root, text="Login", padding=5)
    login_frame.grid(column=0, sticky='nsew')
    # login_frame.pack(padx=10, pady=10)


# Path: ui/TooltipEntry.py
# class TooltipEntry(Entry):
#     def __init__(self, parent, *args, **kw):
#         Entry.__init__(self, parent, *args, **kw)
# 
#         self.tooltip = Tooltip2(self, waittime=0, text='', bg='white')  #, pad=(0, 0, 0, 0))
# 
#     def showTooltip(self, text=None, pos=None):
#         self.tooltip.show(text, pos)
# 
#     def hideTooltip(self):
#         self.tooltip.hide()
# 
#     def destroy(self):
#         self.tooltip.hide()
#         super().destroy()


# Path: ui/entry_placeholder.py
from tkinter.constants import *
from tkinter.ttk import Entry
from ui.TooltipEntry import TooltipEntry
    from tkinter import Tk
    from tkinter.ttk import Entry, Style, LabelFrame, Label
    import tkinter.font as tkfont

        if entry.with_placeholder:
            entry.delete(0, "end")
            entry.config(style=normal_style)
            entry.with_placeholder = False

    def on_focusout(event, entry=entry):
        if entry.get() == '':
            entry.insert(0, placeholder_text)
            entry.config(style=placeholder_style)
            entry.with_placeholder = True

    entry.with_placeholder = entry.get() == ''
    if entry.with_placeholder:
        entry.insert(0, placeholder_text)
        entry.config(style=placeholder_style)

    entry.bind('<FocusIn>', on_focusin, add="+")
    entry.bind('<FocusOut>', on_focusout, add="+")

cool_font = None

if __name__ == "__main__":
    root = Tk()
    root.configure(padx=10, pady=10)
    root.columnconfigure(0, weight=1)
    root.rowconfigure(0, weight=1)
    login_frame = LabelFrame(root, text="Login", padding=5)
    login_frame.grid(column=0, sticky='nsew')
    # login_frame.pack(padx=10, pady=10)


    label = Label(login_frame, text="User: ")