title: get value of selected checkbox in kivy
body: <h1>test.py</h1>
  
  <pre><code>import sqlite3 as lite
  
  from kivy.uix.screenmanager import Screen
  from kivy.app import App
  from kivy.lang import Builder
  from kivy.core.window import Window
  
  Window.size = (600, 325)
  
  class UserGroup(Screen):
  
      def insert_data(self, arg1,arg2):
          print(arg1)
          print(arg2)
  
  
  class FactUserGroup(App):
  
      def build(self):
          self.root = Builder.load_file('test.kv')
          return self.root
  
  
  if __name__ == '__main__':
      FactUserGroup().run()
  </code></pre>
  
  <h1>test.kv</h1>
  
  <pre><code>&lt;CustomLabel@Label&gt;:
      text_size: self.size
      valign: "middle"
      padding_x: 5
  
  &lt;SingleLineTextInput@TextInput&gt;:
      multiline: False
  
  &lt;GreenButton@Button&gt;:
      background_color: 1, 1, 1, 1
      size_hint_y: None
      height: self.parent.height * 0.120
  
  UserGroup
  
      GridLayout:
          cols: 2
          padding : 30,30
          spacing: 20, 20
          row_default_height: '30dp'
  
          Label:
              text: 'Male'
              text_size: self.size
              valign: 'middle'
  
          CheckBox:
              group: 'check'
              id : chk
  
  
          Label:
              text: 'Female'
              text_size: self.size
              valign: 'middle'
  
          CheckBox:
              group: 'check'
  
          CustomLabel:
              text: 'age'
              text_size: self.size
              valign: 'middle'
  
          SingleLineTextInput:
              id: age
  
  
          GreenButton:
              text: 'Ok'
              on_press: root.insert_data(chk.text,age.text)
  
  
          GreenButton:
              text: 'Cancel'
              on_press: app.stop()
  </code></pre>
  
  <p>How to get value of checkbox?I am getting value of age textbox using age.text but checkbox value i don't know? <br/>
  When click on 'Ok' then How to get selected checkbox value and pass in root.insert_data.<br/></p>