Ubuntu Forums Archive Viewer

Quickly. Display sqlite3 inside treeview or component like this.

Archived thread 2093980 from Ubuntu Application Development. Markdown source: Ubuntu_Application_Development/thread_2093980_Quickly._Display_sqlite3_inside_treeview_or_compon.md

Original URL About this archive
#1

Sorry for so stupid question, I'm a noob in Ubuntu(and Linux at all, but not Windows) programming. I desided to use Quickly. So, I need to display sqlite3 DB inside treeview or component like this.(To work with choosen element then). I found design to print BD in terminal:

with self.hardbase:
            cur = self.hardbase.cursor()
            cur.execute("SELECT * FROM HardTable") 
            while True:
                row = cur.fetchone()
                if row == None:
                    break
                print row[0], row[1], row[2]
        cur.close()

But, how to display it inside GTK GUI? :-( I need it done in maybe an hour or I'll RIP Thanks a lot for your complete for noobies answers!