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

from __future__ import unicode_literals


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 % "e")

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