first working version

This commit is contained in:
Jonas Weinz 2020-10-23 20:57:43 +02:00
parent b20ea9f3ec
commit 38e35c4371
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,15 @@
import gi
from . import main_window
from gi.repository import Gtk, Gio, Gst, Gdk
gi.require_version('Gtk', '3.0')
gi.require_version('Gst', '1.0')
Gst.init(None)
Gst.init_check(None)
win = main_window.MainApp()
win.run()

View File

@ -14,6 +14,10 @@ class MainApp(Gtk.Window):
def __init__(self): def __init__(self):
Gtk.Window.__init__(self, title="Gtk Mediathek Player") Gtk.Window.__init__(self, title="Gtk Mediathek Player")
self.set_default_icon_name("totem")
self.set_wmclass("app-name", "Gtk Mediathek Player");
self.set_default_size(800, 600) self.set_default_size(800, 600)
self._main_container = Gtk.Overlay() self._main_container = Gtk.Overlay()
@ -98,7 +102,7 @@ class MainApp(Gtk.Window):
headerbar.pack_start(self._search_radio) headerbar.pack_start(self._search_radio)
headerbar.set_show_close_button(True) headerbar.set_show_close_button(True)
headerbar.props.title = "Main Window" headerbar.props.title = "Gtk Mediathek Player"
self.set_titlebar(headerbar) self.set_titlebar(headerbar)
return headerbar return headerbar