title: How do you use a variable as a dot notation address?
body: <p>I have this problem where it needs a dot notation address but I need part of it to be changeable. It does not accept variable content though and it thinks the variable name is part of the address.</p>
  
  <pre><code>for item in sorted(vars(self.buttons)):
          vars(self.rbuttons)[item] = ttk.Button(self.mainframe, text=vars(self.buttons)[item][0], width=15, command=lambda: self.addCost(vars(self.buttons)[item][1])
          vars(self.rbuttons)[item].grid(column=self.colCount,row=self.rowCount,sticky=(W,E))
  </code></pre>
  
  <p>The problem is in <code>self.addCost(vars(self.buttons)[item][1])</code>.
  I need the <code>arg</code> to say: <code>self.buttons.item_value[1]</code></p>
  
  <p>How you do this? Thanks.</p>