Une autre question :
quand je définis un Label par exemple, je "l'associe" à un frame :
self.trace_topic_lbl = Label(topic_frame, justify="right", anchor="w", text="Topic : ")
Ici, il topic_frame est un frame du notebook. Et je le place via :
self.trace_topic_lbl.grid(row=0, column=0, sticky='e', pady=5, padx=5, in_=topic_frame)
Maintenant, je souhaite réutiliser ce Label dans un autre frame du Notebook.
Est-ce que je peux faire :
self.trace_topic_lbl = Label(self, justify="right", anchor="w", text="Topic : ")
Ou self est le frame qui parent du Notebook
Et pour le placer dans les différents frames du notebook :
self.trace_topic_lbl.grid(row=0, column=0, sticky='e', pady=5, padx=5, in_=topic_frame)
self.trace_topic_lbl.grid(row=0, column=0, sticky='e', pady=5, padx=5, in_=topic2_frame)
?
Merci d'avance
Partager