title: Activate multiple buttons when pressing one
body: <p>I'm doing my first GUI on Tkinter and I'm having some issues getting more than one button to activate after clicking one.</p>
  <p>I have the button <code>Main</code> that's always active by default, and once it's pressed it should activate <code>Button1, Button2, Button3, Button5 and Button6</code> that are disabled by default. This is my code at the moment.</p>
  <p>Function that activates the buttons:</p>
  <pre><code>def activateButtons():
      for i in (Button1, Button2, Button3, Button5, Button6):
          i.config(state=ENABLED)
  </code></pre>
  <p>Button that calls the function:</p>
  <pre><code>loadDB= tk.Button(
    root,
    width=10,
    text = &quot;Load DB.&quot;,
    bg = &quot;black&quot;,
    fg = &quot;blue&quot;,
    command=lambda:[loadDBF(),activateButtons()]).pack(expand = True)
  </code></pre>
  <p>and the buttons:</p>
  <pre><code>Button1 = tk.Button(
    root,
    width= 15,
    text= &quot;Button 1&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  
  Button2 = tk.Button(
    root,
    width= 15,
    text= &quot;Button 2&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  
  Button3 = tk.Button(
    root,
    width= 15,
    text= &quot;Button3&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  
  Button4 = tk.Button(
    root,
    width= 15,
    text= &quot;Button 4&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  
  Button4 = tk.Button(
    root,
    width= 15,
    text= &quot;Button 1&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  
  Button5 = tk.Button(
    root,
    width= 15,
    text= &quot;Button 1&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  
  Button6 = tk.Button(
    root,
    width= 15,
    text= &quot;Button 1&quot;,
    bg=&quot;black&quot;,
    fg=&quot;blue&quot;,
    state=DISABLED).pack(expand = True)
  </code></pre>
  <p>Any idea on how to get them to activate once I press <code>loadDB</code>?</p>