def __init__(self):
Gtk.Window.__init__(self, title="BTC Widget")
self._ticker_labels = {}
self._tickers_vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self._create_ticker_labels()
self._graph = btcwidget.graph.Graph(config['dark_theme'])
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
vbox.pack_start(self._tickers_vbox, False, False, 5)
vbox.pack_start(self._graph, True, True, 0)
self.set_icon_from_file(self._ICON_PATH)
self.connect('delete-event', Gtk.main_quit)
self.add(vbox)
self.show_all()
self._indicator = Indicator(self)
# self.open_options()
评论列表
文章目录