The variable teks and kunci cant get the value of entry1 and entry2. Here\'s the code:
def colenk(): teks = StringVar(entry1).get() kunci = StringVar(entry2).