title: how to display data from database in table view in python
body: <p>I am new to python and been stuck with an issue, any one please help me to solve this issue. Requirement is I have created a sqlite database and created a table and also inserted values to it but the problem is I am not getting how to display that data from database in table view in python so please help me out from this.....advance thanks.. </p>
  
  <pre><code>db_con = sqlite3.Connection
  db_name = "./patientData.db"
  createDb = sqlite3.connect(db_name)
  queryCurs = createDb.cursor()
  queryCurs.execute('''CREATE TABLE IF NOT EXISTS PATIENT
      (NAME TEXT NOT NULL, ID INTEGER PRIMARY KEY, AGE INTEGER NOT NULL, GENDER TEXT NOT NULL , EYE_TYPE TEXT NOT NULL)''')
  
  pName = self.patientEdit.text()
  pId =self.patientidEdit.text()
  #pId1 = int(pId)
  pAge = self.ageEdit.text()
  #pAge1 = int(pAge)
  pGender = self.patientgend.text()
  pEye_type = self.eyeTypeEdit.text()
  queryCurs.execute('''INSERT INTO PATIENT(NAME,ID,AGE, GENDER,EYE_TYPE) VALUES(?, ?, ?, ?, ?)''',(pName, pId, pAge, pGender, pEye_type))
  print ('Inserted row')
  createDb.commit()
  </code></pre>
  
  <p>now how can I dispaly data in a tableview /listview any example code is also helpful</p>