make it pip installable
This commit is contained in:
parent
38e35c4371
commit
5c1047346e
BIN
data/gtkmediathekviewer.png
Normal file
BIN
data/gtkmediathekviewer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
132
data/gtkmediathekviewer.svg
Normal file
132
data/gtkmediathekviewer.svg
Normal file
@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="128px"
|
||||
height="128px"
|
||||
viewBox="0 0 128 128"
|
||||
version="1.1"
|
||||
id="SVGRoot"
|
||||
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
|
||||
sodipodi:docname="icon.svg"
|
||||
inkscape:export-filename="/home/jonas/Dokumente/gitRepos/mediathek-viewer/data/icon.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96">
|
||||
<defs
|
||||
id="defs18">
|
||||
<linearGradient
|
||||
id="linearGradient5999"
|
||||
osb:paint="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop5997" />
|
||||
</linearGradient>
|
||||
<filter
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
inkscape:label="Drop Shadow"
|
||||
id="filter6775">
|
||||
<feFlood
|
||||
flood-opacity="0.498039"
|
||||
flood-color="rgb(0,0,0)"
|
||||
result="flood"
|
||||
id="feFlood6765" />
|
||||
<feComposite
|
||||
in="flood"
|
||||
in2="SourceGraphic"
|
||||
operator="in"
|
||||
result="composite1"
|
||||
id="feComposite6767" />
|
||||
<feGaussianBlur
|
||||
in="composite1"
|
||||
stdDeviation="1"
|
||||
result="blur"
|
||||
id="feGaussianBlur6769" />
|
||||
<feOffset
|
||||
dx="3"
|
||||
dy="3"
|
||||
result="offset"
|
||||
id="feOffset6771" />
|
||||
<feComposite
|
||||
in="SourceGraphic"
|
||||
in2="offset"
|
||||
operator="over"
|
||||
result="composite2"
|
||||
id="feComposite6773" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="4"
|
||||
inkscape:cx="6.2129682"
|
||||
inkscape:cy="64.411498"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="949"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:grid-bbox="true"
|
||||
showguides="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid6040" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata21">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<g
|
||||
id="g6559"
|
||||
style="filter:url(#filter6775)">
|
||||
<rect
|
||||
y="18"
|
||||
x="10"
|
||||
height="60"
|
||||
width="105"
|
||||
id="rect6036"
|
||||
style="fill:#4c54a5;fill-opacity:1;fill-rule:nonzero;stroke:#1d1b39;stroke-width:11.19764137;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" />
|
||||
<rect
|
||||
y="83"
|
||||
x="55"
|
||||
height="20"
|
||||
width="15"
|
||||
id="rect6038"
|
||||
style="fill:#1d1b39;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:11.66423702;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" />
|
||||
<rect
|
||||
y="103"
|
||||
x="20"
|
||||
height="10"
|
||||
width="85"
|
||||
id="rect6042"
|
||||
style="fill:#1d1b39;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.9 KiB |
28
setup.py
Normal file
28
setup.py
Normal file
@ -0,0 +1,28 @@
|
||||
import setuptools
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
name="gtk_mediathek_player",
|
||||
version="0.0.1",
|
||||
author="Jonas Weinz",
|
||||
author_email="jo.we93@gmx.de",
|
||||
description="A simple viewer for german public broadcasts using MediathekWeb",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
#url="https://github.com/pypa/sampleproject",
|
||||
packages=['gtk_mediathek_player'],
|
||||
package_dir = {'gtk_mediathek_player': 'src/gtk_mediathek_player'},
|
||||
data_files = [
|
||||
('share/applications', ['data/org.gtk_mediathek_player.desktop']),
|
||||
('share/icons/hicolor/128x128/apps', ['data/gtkmediathekviewer.png']),
|
||||
('share/icons/hicolor/scalable/apps', ['data/gtkmediathekviewer.svg']),
|
||||
],
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
python_requires='>=3.6',
|
||||
)
|
@ -1,7 +1,5 @@
|
||||
import gi
|
||||
|
||||
from gtk_mediathek_player.tools import new_button_with_icon, new_radio_button_with_icon
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib
|
||||
|
||||
@ -14,9 +12,10 @@ class MainApp(Gtk.Window):
|
||||
def __init__(self):
|
||||
Gtk.Window.__init__(self, title="Gtk Mediathek Player")
|
||||
|
||||
self.set_default_icon_name("totem")
|
||||
self.set_default_icon_name("gtkmediathekplayer")
|
||||
|
||||
self.set_wmclass("app-name", "Gtk Mediathek Player");
|
||||
self.set_role("GtkMediathekPlayer")
|
||||
self.set_wmclass("GtkMediathekPlayer", "GtkMediathekPlayer")
|
||||
|
||||
self.set_default_size(800, 600)
|
||||
|
||||
@ -76,7 +75,7 @@ class MainApp(Gtk.Window):
|
||||
|
||||
def _create_context_switch(self):
|
||||
|
||||
self._search_radio = new_button_with_icon("edit-find")
|
||||
self._search_radio = tools.new_button_with_icon("edit-find")
|
||||
|
||||
self._search_radio.connect("clicked", self.on_search)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user