Re: Windows-Taste abfragen
Verfasst: Mittwoch 23. Oktober 2019, 16:41
Klappt auch nicht so wie es soll 
Hier mal alles:
ich weiß .place() ist nicht so schön aber es ist nur für einen PC...

Hier mal alles:
Code: Alles auswählen
from Tkinter import *
class Fenster:
def keep_flat():
if event.widget is test3:
event.widget.config(relief=FLAT)
def __init__(self):
window = Tk()
window.title("")
window.state('zoomed')
window.wm_overrideredirect(True)
test = Entry(window, width=36, relief=FLAT)
test.insert(END, "Benutzername")
test.place(x=539.5, y=547.5)
test2 = Entry(window, width=36, show="•", relief=FLAT)
test2.place(x=539, y=583)
test3 = Button(window, text="weiter", relief=FLAT, bd="0", bg="#174F50", fg="#174F50", command=keep_event)
test3.config(relief=FLAT)
test3.place(x=765, y=580)
test.bind("<FocusIn>", self.update())
window.mainloop()
def update(self):
print("focus")
f = Fenster()