Files
sublime-music/libremsonic/__main__.py
Sumner Evans 0177b3ade2 Added todo
2019-06-04 18:45:13 -06:00

25 lines
526 B
Python

#! /usr/bin/env python3
import asyncio
import threading
import argparse
import sys
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import GLib, Gio, Gtk
from .ui import MainWindow
from .server import Server
def main():
server = Server(name='ohea',
hostname='https://airsonic.the-evans.family',
username=sys.argv[1],
password=sys.argv[2])
win = MainWindow(server)
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()