So, I'm trying to read data from a database and displaying in a GtkTreeview. I used glade to design the GUI
when i click on the button (view movies) the list of movies should display as a list.
def on_btnmovies_clicked(self,widget,data=None): store=self.builder.get_object('listmovies') connect=sqlite.connect('movies.db') db=connect.cursor() db.execute("SELECT * FROM movie") for title in db.fetchall(): store.append[(title)] #Get the movie Titles only and add to GtkListStore store=self.builder.get_object('listmovies')
I've been looking around trying to find how to actullay display the list. I've been using Click Here to read more about GtkTreeviews
In Glade I already set the GtkTree_model for GtKTreeview to GtkListStore, called listmovies, but when I run the application, the list does not show up, not even the GtkTreeview container.
I dont get any errors.
I'm unable to find the reason why the list does not show up, anybody have suggestions?