433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448 | 433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451 |
-
+
+
+
+
-
+
| return b
# Attach textual menu entry and callback
@staticmethod
def add_menu(menuwidget, label, action):
def add_menu(menuwidget, label, action, insert=None):
for where in list(menuwidget):
m = gtk.MenuItem(label)
m.connect("activate", action)
m.show()
if insert:
where.insert(m, insert)
else:
where.add(m)
where.add(m)
# gtk.messagebox
@staticmethod
def msg(text, style=gtk.MESSAGE_INFO, buttons=gtk.BUTTONS_CLOSE): |