Adjust blank lines to match Code Style Guide (see #103)
This commit is contained in:
parent
75b99e5820
commit
d2e1f6f5d8
14 changed files with 14 additions and 413 deletions
|
|
@ -1,15 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
import gi
|
||||
|
||||
gi.require_version('Gtk', '4.0')
|
||||
gi.require_version('Adw', '1')
|
||||
|
||||
from gi.repository import Gtk, Adw, GObject
|
||||
|
||||
|
||||
|
||||
|
||||
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/server-panel.ui')
|
||||
class ServerPanel(Adw.Bin):
|
||||
__gtype_name__ = 'McgServerPanel'
|
||||
|
|
@ -34,7 +32,6 @@ class ServerPanel(Adw.Bin):
|
|||
# Audio ouptut devices widgets
|
||||
output_devices = Gtk.Template.Child()
|
||||
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self._none_label = ""
|
||||
|
|
@ -44,19 +41,15 @@ class ServerPanel(Adw.Bin):
|
|||
# Widgets
|
||||
self._none_label = self.status_file.get_label()
|
||||
|
||||
|
||||
def set_selected(self, selected):
|
||||
self._is_selected = selected
|
||||
|
||||
|
||||
def get_toolbar(self):
|
||||
return self.toolbar
|
||||
|
||||
|
||||
def on_output_device_toggled(self, widget, device):
|
||||
self.emit('change-output-device', device, widget.get_active())
|
||||
|
||||
|
||||
def set_status(self, file, audio, bitrate, error):
|
||||
if file:
|
||||
file = GObject.markup_escape_text(file)
|
||||
|
|
@ -84,7 +77,6 @@ class ServerPanel(Adw.Bin):
|
|||
error = self._none_label
|
||||
self.status_error.set_markup(error)
|
||||
|
||||
|
||||
def set_stats(self, artists, albums, songs, dbplaytime, playtime, uptime):
|
||||
self.stats_artists.set_text(str(artists))
|
||||
self.stats_albums.set_text(str(albums))
|
||||
|
|
@ -93,7 +85,6 @@ class ServerPanel(Adw.Bin):
|
|||
self.stats_playtime.set_text(str(playtime))
|
||||
self.stats_uptime.set_text(str(uptime))
|
||||
|
||||
|
||||
def set_output_devices(self, devices):
|
||||
device_ids = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue