20 lines
539 B
Python
20 lines
539 B
Python
# Copyright 2021 (c) Anna Schumaker.
|
|
from . import icons
|
|
from . import window
|
|
from gi.repository import Gtk
|
|
import audio
|
|
|
|
class EmmentalApplication(Gtk.Application):
|
|
def __init__(self, *args, **kwargs):
|
|
Gtk.Application.__init__(self, *args, application_id="org.gtk.emmental", **kwargs)
|
|
|
|
def do_activate(self):
|
|
window.Window.present()
|
|
|
|
def do_startup(self):
|
|
Gtk.Application.do_startup(self)
|
|
self.add_window(window.Window)
|
|
audio.Player.Artwork.reset()
|
|
|
|
Application = EmmentalApplication()
|