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")
- print("Info")
- else:
- usr = app.getEntry("Username")
- pwd = app.getEntry("Password")
- print("User:", usr, "Pass:", pwd)
- app = gui("Login Window", "1000x500")
- 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"], "row=2\ncolumn=0", press)
- app.addButtons(["Info"], "row=2\ncolumn=1", press)
- app.addButtons(["Cancel"], "row=2\ncolumn=2", press)
- app.setFocus("Username")
- app.go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement