guys, im after a piece of code that when embedded into a button, clears the text entry boxes of the GUI so new information may be added. Like adding a new customer after you press save.
At the moment you press save but the information stays there

cheers.

Maybe you are looking for this ...

def del_text():
    """
    delete text in enter1 from index first to index last
    if index last is omitted delete just one character at index first
    entry1.delete(first, last=None)
    """
    enter1.delete(0, END)  # del all text
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.