Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

give utton a number python

def create_buttons(self):
    for x in range(10):
        button = ttk.Button(self, text=x, command=lambda number=x: self.callback(number))
        button.grid()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #give #utton #number #python
ADD COMMENT
Topic
Name
9+7 =