Untitled

From lovetox, 2 Years ago, written in Plain Text, viewed 158 times. This paste will hop the perch in 1 Second.
URL https://paste.gajim.org/view/175f87a6 Embed
Download Paste or View Raw
  1. from gi.repository import Gtk
  2.  
  3. xml = '''
  4. <interface>
  5.   <menu id="appmenu">
  6.     <section>
  7.       <item>
  8.         <attribute name="label" translatable="no">Модули</attribute>
  9.       </item>
  10.       <item>
  11.         <attribute name="label" translatable="no">Настройки</attribute>
  12.       </item>
  13.     </section>
  14.   </menu>
  15. </interface>
  16. '''
  17.  
  18. builder = Gtk.Builder()
  19. builder.add_from_string(xml)
  20.  

Reply to "Untitled"

Here you can reply to the paste above