Created
December 27, 2011 12:24
-
-
Save yoavram/1523471 to your computer and use it in GitHub Desktop.
An example of Swampi text widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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