<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from gi.repository import Gio

# Create a new menu item with a label
menu_item = Gio.MenuItem.new("Click me", "app.do_something")

# Set an action and target for the menu item
# menu_item.set_action_and_target("app.do_something", None)

# Set an icon for the menu item
# menu_item.set_icon("icon-name")

# Get the label of the menu item
label = menu_item.get_label()
print(f"Menu item label: {label}")

# Get the action name of the menu item
action_name = menu_item.get_action()
print(f"Menu item action name: {action_name}")
</pre></body></html>