def __init__(self, config): Gtk.Window.__init__(self) Screen.LOGO = Screen.File("/usr/share/backgrounds/xbillboard.svg") Screen.VLC = vlc.Instance("--no-xlib") Screen.VLC_LOCK = Lock() self.filename = config self.sync_services = [] self.sync_delay = [] self.screen_services = [] self.screen_list = [] self.files_list = [] self.opengl_use = False self.opengl_config = None self.screen_delay = None self.screen_ratio = None self.screen_align = None self.configuration = None self.sync_directory = None self.layout_x = None self.layout_y = None self.notebook = None self.__init_config() if self.__check_config(): self.print_config() self.__prepare() self.__build() self.show_all() self.start() else: raise Exception('The configuration file is invalid')