Is it better etiquette to create the Buttons and Labels outside of the functions and just grid them inside when needed for Tkinter?

前端 未结 0 1723
小蘑菇
小蘑菇 2021-01-17 02:48

For example, I am trying to create a greetings Label that says "Welcome to ..." so is it better to do:

def main():
    greeting = Label(root, text=&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题