Skip to content

Instantly share code, notes, and snippets.

@yoavram
Created December 27, 2011 12:24
Show Gist options
  • Save yoavram/1523471 to your computer and use it in GitHub Desktop.
Save yoavram/1523471 to your computer and use it in GitHub Desktop.
An example of Swampi text widget
from swampy.Gui import *
def go():
g.la(text=text.get(0.0,END))
text.delete(0.0,END)
g=Gui()
g.title('My GUI')
text = g.te(width=50, height=5)
text.insert(0.0, "Hello")
button = g.bu(text="Go", command=go)
label = g.la()
g.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment