mirror of
https://github.com/naruxde/revpipycontrol.git
synced 2025-11-08 15:43:52 +01:00
Fenster/Button Beschriftung in watch-modus mit Positionsnummer
This commit is contained in:
@@ -210,7 +210,7 @@ class RevPiCheckClient(tkinter.Frame):
|
|||||||
|
|
||||||
for dev in self.lst_devices:
|
for dev in self.lst_devices:
|
||||||
win = tkinter.Toplevel(self)
|
win = tkinter.Toplevel(self)
|
||||||
win.wm_title(self.dict_devices[dev])
|
win.wm_title("{} | {}".format(dev, self.dict_devices[dev]))
|
||||||
win.protocol(
|
win.protocol(
|
||||||
"WM_DELETE_WINDOW",
|
"WM_DELETE_WINDOW",
|
||||||
lambda win=win: self.__hidewin(win)
|
lambda win=win: self.__hidewin(win)
|
||||||
@@ -232,7 +232,7 @@ class RevPiCheckClient(tkinter.Frame):
|
|||||||
# Button erstellen
|
# Button erstellen
|
||||||
btn = tkinter.Button(devgrp)
|
btn = tkinter.Button(devgrp)
|
||||||
btn["command"] = lambda win=win: self.__showwin(win)
|
btn["command"] = lambda win=win: self.__showwin(win)
|
||||||
btn["text"] = self.dict_devices[dev]
|
btn["text"] = "{} | {}".format(dev, self.dict_devices[dev])
|
||||||
btn.pack(**cFxPxy53)
|
btn.pack(**cFxPxy53)
|
||||||
|
|
||||||
# Steuerungsfunktionen
|
# Steuerungsfunktionen
|
||||||
|
|||||||
Reference in New Issue
Block a user