I have created a Checkbutton in tkinter, but when I access the checked value, it returns nothing:

```
self.inttype = IntVar()
self.setrandom = Checkbutton(self.userpanel, text='Random', variable=self.inttype)
self.setrandom.grid(row=5, column=2, sticky=EW)

```

Here I am printing value:

```
print('Value : ', self.inttype.get())

```

The output is:

```
Value:

```

Is there any other method to get the value from the checkbutton?