rewrite client, implement protocol without lib, replace tabs with spaces

This commit is contained in:
coderkun 2014-12-01 20:55:28 +01:00
parent 2e95986047
commit 965a536779
3 changed files with 2024 additions and 1915 deletions

2449
gui/gtk.py

File diff suppressed because it is too large Load diff

1473
mcg.py

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
"""MPDCoverGrid (GTK version) is a client for the Music Player Daemon, focused on albums instead of single tracks.""" """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 # Set environment
srcdir = os.path.abspath(os.path.join(os.path.dirname(gtk.__file__), '..')) srcdir = os.path.abspath(os.path.join(os.path.dirname(gtk.__file__), '..'))
if not os.environ.get('GSETTINGS_SCHEMA_DIR'): 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__": if __name__ == "__main__":
# Start application # Start application
app = gtk.Application() start()
exit_status = app.run(sys.argv)
sys.exit(exit_status)