%PDF- %PDF-
Direktori : /lib/python3/dist-packages/xdg/__pycache__/ |
Current File : //lib/python3/dist-packages/xdg/__pycache__/MenuEditor.cpython-312.pyc |
� �u�c�I � � � d Z ddlZ ddlmc mZ ddlm Z m Z mZmZm Z ddlmZmZ ddlmZ ddlmZ G d� de� Zy# e$ r ddlmc mZ Y �>w xY w) z CLass to edit XDG Menus � N)�Menu� MenuEntry�Layout� Separator�XMLMenuBuilder)�xdg_config_dirs� xdg_data_dirs)�ParsingError)�setRootModec � � e Zd Zd(d�Zd(d�Zd� Zd)d�Zd*d�Zd+d�Zd+d�Z d+d �Z d+d �Zd+d�Zd,d�Z d-d �Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Zd� Zd� Zd� Zd.d�Zd� Zd� Zd/d�Zd� Z d � Z!d!� Z"d+d"�Z#d+d#�Z$d$� Z%d%� Z&d&� Z'd'� Z(y)0� MenuEditorNc � � d | _ d | _ d | _ t � | _ | j |||� g | _ y �N)�menu�filename�treer �parser�parse� filenames��selfr r �roots �0/usr/lib/python3/dist-packages/xdg/MenuEditor.py�__init__zMenuEditor.__init__ s: � ��� ��� ��� �$�&���� � �4��4�(� ��� c �J � |rt d� t |t � r|| _ nB|r!| j j |� | _ n| j j � | _ |r| j j | _ nk|r|| _ nat j j t d dt j j | j j � d � | _ t j | j � | _ | j'