# -*- coding: utf-8 -*-

import sys
from gi.repository import Gtk

ui = """
<ui>
    <popup name="mainmenu">
        <menu action="plmenu">
            <menuitem action="%s"/>
        </menu>
    </popup>
</ui>
"""

print(1)
u = Gtk.UIManager()
u.add_ui_from_string(ui % "é")

print(2)
u = Gtk.UIManager()
u.add_ui_from_string(ui % "éé")
