def METHOD_NAME(title, prompt, default="COM", nullable=False):
    """
    Example:
    >>> strinput("RIG CONFIG", "Insert RE com port:", default="COM")
    """
    import tkinter as tk
    from tkinter import simpledialog
    root = tk.Tk()
    root.withdraw()
    ans = simpledialog.askstring(title, prompt, initialvalue=default)
    if (ans is None or ans == "" or ans == default) and not nullable:
        return METHOD_NAME(title, prompt, default=default, nullable=nullable)
    else:
        return ans