Skip to content

Instantly share code, notes, and snippets.

View snachman's full-sized avatar

snachman

  • North of Baltimore, MD
View GitHub Profile
@martinohanlon
martinohanlon / char_count.py
Created June 13, 2018 15:36
guizero character counting example
from guizero import App, TextBox, Text
def count():
result.value = len(text_to_count.value) - 1
app = App(title="character count")
instruction = Text(app, text="Put your text here")
text_to_count = TextBox(app, multiline = True, width=60, height=25, command=count)
text_to_count.when_key_released = count
result = Text(app, text="0")