Beispiel #1
0
    def _update(self):
        """Update the contents of the BooklistView."""
        ListView._update(self)

        for (i, l) in itertools.izip_longest(self._items, self._labels):
            if(l is None):
                break

            if(i is None):
                l.grid_remove()
            else:
                if(i.image is None):
                    l.grid_remove()
                else:
                    l.config(image = i.image)
                    l.grid()
Beispiel #2
0
    def _update(self):
        """Update the contents of the BooklistView."""
        ListView._update(self)

        for (i, l) in itertools.izip_longest(self._items, self._labels):
            if (l is None):
                break

            if (i is None):
                l.grid_remove()
            else:
                if (i.image is None):
                    l.grid_remove()
                else:
                    l.config(image=i.image)
                    l.grid()
Beispiel #3
0
    def _update(self):
        """Update the contents of the PanelListView."""
        ListView._update(self)

        for (item, (magazine, blog, blogexists, lblImage), uid) in itertools.izip_longest(self._items, self._itemdatatuples, self._uids):
            if(lblImage is None):
                break
            
            if(item is None):
                self._canvas.itemconfig(uid, state = tki.HIDDEN)
            else:
                self._canvas.itemconfig(uid, state = tki.NORMAL)
                magazine.set(item.name + ' ' + item.issue)
                #blog.set(lang[lng.txtBlogpost] + ': ' + item.title)
                blog.set(item.title)
                blogexists.set(lang[lng.txtShowBlogpost])

                if(item.smallimage is not None):
                    lblImage.config(image = item.smallimage)
                    lblImage.grid()
                else:
                    lblImage.grid_remove()
Beispiel #4
0
    def _update(self):
        """Update the contents of the PanelListView."""
        ListView._update(self)

        for (item, (magazine, blog, blogexists, lblImage),
             uid) in itertools.izip_longest(self._items, self._itemdatatuples,
                                            self._uids):
            if (lblImage is None):
                break

            if (item is None):
                self._canvas.itemconfig(uid, state=tki.HIDDEN)
            else:
                self._canvas.itemconfig(uid, state=tki.NORMAL)
                magazine.set(item.name + ' ' + item.issue)
                #blog.set(lang[lng.txtBlogpost] + ': ' + item.title)
                blog.set(item.title)
                blogexists.set(lang[lng.txtShowBlogpost])

                if (item.smallimage is not None):
                    lblImage.config(image=item.smallimage)
                    lblImage.grid()
                else:
                    lblImage.grid_remove()