Created
June 26, 2020 15:27
-
-
Save davidbegin/e39a01e5090339317f6a261ec19fe7f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 tkinter import * | |
window = Tk() | |
# window.geometry("400x400") | |
window.title("TEST") | |
# scroll=Scrollbar(window) | |
# scroll.pack(side=RIGHT, fill=Y) | |
# listbox=Listbox(window, yscrollcommand = scroll.set) | |
# for i in range(100): | |
# listbox.insert(END, "Username " + str(i)) | |
# listbox.pack(side = LEFT) | |
# scroll.config(command=listbox.yview) | |
def scan(): | |
name = StringVar() | |
username = Entry(window, textvariable=(name)) | |
".!entry" | |
if username.startswith(".!"): | |
username = username[2:] | |
# Whats wrong with removing | |
username.focus_set() | |
username.pack() | |
print(f'{username}') | |
if __name__ == "__main__": | |
scan = Button(window, text="SCAN", command=scan) | |
scan.pack() | |
window.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment