Make enable_gui a staticmethod again