title: Function issue in adding a text from check box in inventory system
body: <p>Basically, I watched and tried using this function</p>
  <pre><code>   #variable
   var1 = IntVar()
  
       def checkCredit(self):
          if (var1.get == 1):
              self.txtInfo.insert(END, &quot;\tCheck Credit Approved\n&quot;)
          elif (var1.get == 0):
              self.txtInfo.delete(&quot;1.0&quot;, END)
  </code></pre>
  <p>to see if i could insert a text in my textbox after clicking on the check box I created here</p>
  <pre><code>        self.chkCheckCredit = Checkbutton(LeftFrame2LL,text =&quot;Check Credit&quot;,variable =var1, onvalue =1,offvalue =0,
                                            font =('arial',16,'bold'),bg ='light green',pady=17,command = checkCredit(self)).grid(row =0, sticky = W)
  #Textbox
  self.txtInfo = Text(LeftFrame2LR,height=18,width = 52,font=('arial', 9, 'bold'))
          self.txtInfo.grid(row=0,column=0,sticky=W)
  </code></pre>
  <p>The function doesn't execute as the texts are not displayed after the checkbox is clicked
  This is my first python project so help will be greatly appreciated.</p>