I am trying to figure out how to pass an instance of a button into it's own command. Essentially what I am trying to do is if the events of the command being called are successful, I want to then disable the button.

Here is my button code which calls a function called 'runcommand':

```
btn_id = Button(tab_id, text=label, anchor=W)
btn_id.configure(command=lambda command=command, logtext=logtext, btn_id=btn_id: runcommand(command, logtext, btn_id))

```

Once called, if conditions are met, I am trying to disable it in the 'runcommand' function:

```
btn_id.configure(state=DISABLED)

```

I'm not sure if this is possible or if I'm just going about it the wrong way.