first working version
This commit is contained in:
parent
b20ea9f3ec
commit
38e35c4371
15
src/gtk_mediathek_player/main.py
Normal file
15
src/gtk_mediathek_player/main.py
Normal 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()
|
@ -14,6 +14,10 @@ class MainApp(Gtk.Window):
|
||||
def __init__(self):
|
||||
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._main_container = Gtk.Overlay()
|
||||
@ -98,7 +102,7 @@ class MainApp(Gtk.Window):
|
||||
headerbar.pack_start(self._search_radio)
|
||||
|
||||
headerbar.set_show_close_button(True)
|
||||
headerbar.props.title = "Main Window"
|
||||
headerbar.props.title = "Gtk Mediathek Player"
|
||||
self.set_titlebar(headerbar)
|
||||
|
||||
return headerbar
|
||||
|
Loading…
Reference in New Issue
Block a user