Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from appJar import gui
- def press(button):
- if button == "Cancel":
- app.stop()
- elif button == "Info":
- app.infoBox(Info, Blablabla)
- else:
- usr = app.getEntry("Username")
- pwd = app.getEntry("Password")
- print("User:", usr, "Pass:", pwd)
- app = gui("Login Window", "400x200")
- app.setBg("orange")
- app.setFont(18)
- app.addLabel("title", "Welcome to appJar")
- app.setLabelBg("title", "blue")
- app.setLabelFg("title", "orange")
- app.addLabelEntry("Username")
- app.addLabelSecretEntry("Password")
- app.addButtons(["Submit", "Info", "Cancel"], press)
- app.setFocus("Username")
- app.go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement