View Single Post
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#41
Uppercase first letters at firts word, and after . ! ?

I've changed this function:

Code:
def input(feed):
    text = update_text(0)

    if text == "":
        buffer.set_text(text + feed.swapcase())
    elif text[-2:] == ". ":
        buffer.set_text(text + feed.swapcase())
    elif text[-2:] == "? ":
        buffer.set_text(text + feed.swapcase())
    elif text[-2:] == "! ":
        buffer.set_text(text + feed.swapcase())
    else:
        buffer.set_text(text + feed)
 

The Following 4 Users Say Thank You to CepiPerez For This Useful Post: