I have 2 buttons
<https://postimg.cc/DmSQHkbG>

and i want to place them next to each other

this is the code:

```
myButton = Button(root, text="Bitcoin ", padx=50, pady=50, command=myClick, bg="black", fg="red").pack()
#myButton.grid(row=0, column=0)
myButton2 = Button(root, text="Ethereum", padx=50, pady=50, command=myClick2, bg="gold", fg="green").pack()
#myButton2.grid(row=0, column=1)

```

When i run it like this with grid commented out i have the buttons below each other, when i run it with grid i get this error:

```
  File "button.py", line 30, in <module>
    myButton.grid(row=0, column=0)
AttributeError: 'NoneType' object has no attribute 'grid'

```

How to fix this?