Skip to content
Snippets Groups Projects
Commit f68316c2 authored by Guillaume Ayoub's avatar Guillaume Ayoub
Browse files

Add feed list

parent b53cf966
No related branches found
No related tags found
No related merge requests found
from gi.repository import Gtk
class Window(Gtk.Window):
def __init__(self, application):
super().__init__(application=application)
self.set_title('Starfeed')
hbox = Gtk.HBox()
feed_list = Gtk.StackSidebar()
self.stack = Gtk.Stack()
feed_list.set_stack(self.stack)
hbox.pack_start(feed_list, False, False, 0)
hbox.pack_start(self.stack, True, True, 0)
self.add(hbox)
self.stack.add_titled(
Gtk.Label('LinuxFR'), 'linuxfr', 'LinuxFR')
self.stack.add_titled(
Gtk.Label('CourtBouillon'), 'courtbouillon', 'CourtBouillon')
class Starfeed(Gtk.Application):
def do_activate(self):
self.window = Gtk.Window(application=self)
self.window = Window(self)
self.window.connect('destroy', lambda window: self.quit())
self.window.show_all()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment