rewrite client, implement protocol without lib, replace tabs with spaces
This commit is contained in:
parent
2e95986047
commit
965a536779
3 changed files with 2024 additions and 1915 deletions
2443
gui/gtk.py
2443
gui/gtk.py
File diff suppressed because it is too large
Load diff
17
mcgGtk.py
17
mcgGtk.py
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""MPDCoverGrid (GTK version) is a client for the Music Player Daemon, focused on albums instead of single tracks."""
|
||||
|
@ -25,14 +25,17 @@ from gui import gtk
|
|||
# Set environment
|
||||
srcdir = os.path.abspath(os.path.join(os.path.dirname(gtk.__file__), '..'))
|
||||
if not os.environ.get('GSETTINGS_SCHEMA_DIR'):
|
||||
os.environ['GSETTINGS_SCHEMA_DIR'] = os.path.join(srcdir, 'data')
|
||||
os.environ['GSETTINGS_SCHEMA_DIR'] = os.path.join(srcdir, 'data')
|
||||
|
||||
|
||||
|
||||
|
||||
def start():
|
||||
app = gtk.Application()
|
||||
exit_status = app.run(sys.argv)
|
||||
sys.exit(exit_status)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Start application
|
||||
app = gtk.Application()
|
||||
exit_status = app.run(sys.argv)
|
||||
sys.exit(exit_status)
|
||||
|
||||
# Start application
|
||||
start()
|
||||
|
|
Loading…
Reference in a new issue