Created
January 23, 2020 13:48
-
-
Save BMU-Verlag/2caa64f1a5b45a2d2211a97887baf2e0 to your computer and use it in GitHub Desktop.
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 tkinter import messagebox | |
def lock_username(): | |
if name_input.get(): | |
message_input.configure(state=NORMAL) | |
send_button.configure(state=NORMAL) | |
name_input.configure(state=DISABLED) | |
else: | |
messagebox.showinfo('Error', 'Please enter a user name!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment