Skip to main content
Ctrl+K

GNOME Python API

  • GLib
  • Gio
  • GObject
  • Gtk
  • Gdk
  • Adw
    • DBus
    • DBusGLib
    • Flatpak
    • GModule
    • Gcr
    • GdkPixbuf
    • GdkPixdata
    • GdkWayland
    • GdkX11
    • Graphene
    • Gsk
    • Gst
    • GstBase
    • GstCheck
    • GstController
    • GstNet
    • GtkSource
    • HarfBuzz
    • ICal
    • JavaScriptCore
    • Pango
    • PangoCairo
    • PangoFT2
    • PangoFc
    • PangoOT
    • PangoXft
    • Shumate
    • Soup
    • Vte
    • WebKit
    • WebKitWebProcessExtension
    • Xdp
    • XdpGtk4
    • pycairo
  • GLib
  • Gio
  • GObject
  • Gtk
  • Gdk
  • Adw
  • DBus
  • DBusGLib
  • Flatpak
  • GModule
  • Gcr
  • GdkPixbuf
  • GdkPixdata
  • GdkWayland
  • GdkX11
  • Graphene
  • Gsk
  • Gst
  • GstBase
  • GstCheck
  • GstController
  • GstNet
  • GtkSource
  • HarfBuzz
  • ICal
  • JavaScriptCore
  • Pango
  • PangoCairo
  • PangoFT2
  • PangoFc
  • PangoOT
  • PangoXft
  • Shumate
  • Soup
  • Vte
  • WebKit
  • WebKitWebProcessExtension
  • Xdp
  • XdpGtk4
  • pycairo

Section Navigation

API

  • Classes
    • AppInfoMonitor
    • AppLaunchContext
    • Application
    • ApplicationCommandLine
    • BufferedInputStream
    • BufferedOutputStream
    • BytesIcon
    • Cancellable
    • CharsetConverter
    • ConverterInputStream
    • ConverterOutputStream
    • Credentials
    • DBusActionGroup
    • DBusAuthObserver
    • DBusConnection
    • DBusInterfaceSkeleton
    • DBusMenuModel
    • DBusMessage
    • DBusMethodInvocation
    • DBusObjectManagerClient
    • DBusObjectManagerServer
    • DBusObjectProxy
    • DBusObjectSkeleton
    • DBusProxy
    • DBusServer
    • DataInputStream
    • DataOutputStream
    • DebugControllerDBus
    • DesktopAppInfo
    • Emblem
    • EmblemedIcon
    • FileEnumerator
    • FileIOStream
    • FileIcon
    • FileInfo
    • FileInputStream
    • FileMonitor
    • FileOutputStream
    • FilenameCompleter
    • FilterInputStream
    • FilterOutputStream
    • IOModule
    • IOStream
    • InetAddress
    • InetAddressMask
    • InetSocketAddress
    • InputStream
    • ListStore
    • MemoryInputStream
    • MemoryOutputStream
    • Menu
    • MenuAttributeIter
    • MenuItem
    • MenuLinkIter
    • MenuModel
    • MountOperation
    • NativeSocketAddress
    • NativeVolumeMonitor
    • NetworkAddress
    • NetworkService
    • Notification
    • OutputStream
    • Permission
    • PropertyAction
    • ProxyAddress
    • ProxyAddressEnumerator
    • Resolver
    • Settings
    • SettingsBackend
    • SimpleAction
    • SimpleActionGroup
    • SimpleAsyncResult
    • SimpleIOStream
    • SimplePermission
    • SimpleProxyResolver
    • Socket
    • SocketAddress
    • SocketAddressEnumerator
    • SocketClient
    • SocketConnection
    • SocketControlMessage
    • SocketListener
    • SocketService
    • Subprocess
    • SubprocessLauncher
    • Task
    • TcpConnection
    • TcpWrapperConnection
    • TestDBus
    • ThemedIcon
    • ThreadedResolver
    • ThreadedSocketService
    • TlsCertificate
    • TlsConnection
    • TlsDatabase
    • TlsInteraction
    • TlsPassword
    • UnixConnection
    • UnixCredentialsMessage
    • UnixFDList
    • UnixFDMessage
    • UnixInputStream
    • UnixMountMonitor
    • UnixOutputStream
    • UnixSocketAddress
    • Vfs
    • VolumeMonitor
    • ZlibCompressor
    • ZlibDecompressor
  • Interfaces
    • Action
    • ActionGroup
    • ActionMap
    • AppInfo
    • AsyncInitable
    • AsyncResult
    • Converter
    • DBusInterface
    • DBusObject
    • DBusObjectManager
    • DatagramBased
    • DebugController
    • DesktopAppInfoLookup
    • Drive
    • DtlsClientConnection
    • DtlsConnection
    • DtlsServerConnection
    • File
    • FileDescriptorBased
    • Icon
    • Initable
    • ListModel
    • LoadableIcon
    • MemoryMonitor
    • Mount
    • NetworkMonitor
    • PollableInputStream
    • PollableOutputStream
    • PowerProfileMonitor
    • Proxy
    • ProxyResolver
    • RemoteActionGroup
    • Seekable
    • SocketConnectable
    • TlsBackend
    • TlsClientConnection
    • TlsFileDatabase
    • TlsServerConnection
    • Volume
  • Structures
    • ActionEntry
    • DBusAnnotationInfo
    • DBusArgInfo
    • DBusErrorEntry
    • DBusInterfaceInfo
    • DBusInterfaceVTable
    • DBusMethodInfo
    • DBusNodeInfo
    • DBusPropertyInfo
    • DBusSignalInfo
    • DBusSubtreeVTable
    • FileAttributeInfo
    • FileAttributeInfoList
    • FileAttributeMatcher
    • IOExtension
    • IOExtensionPoint
    • IOModuleScope
    • IOSchedulerJob
    • IOStreamAdapter
    • InputMessage
    • InputVector
    • OutputMessage
    • OutputVector
    • Resource
    • SettingsSchema
    • SettingsSchemaKey
    • SettingsSchemaSource
    • SrvTarget
    • StaticResource
    • UnixMountEntry
    • UnixMountPoint
  • Enums
    • AppInfoCreateFlags
    • ApplicationFlags
    • AskPasswordFlags
    • BusNameOwnerFlags
    • BusNameWatcherFlags
    • BusType
    • ConverterFlags
    • ConverterResult
    • CredentialsType
    • DBusCallFlags
    • DBusCapabilityFlags
    • DBusConnectionFlags
    • DBusError
    • DBusInterfaceSkeletonFlags
    • DBusMessageByteOrder
    • DBusMessageFlags
    • DBusMessageHeaderField
    • DBusMessageType
    • DBusObjectManagerClientFlags
    • DBusPropertyInfoFlags
    • DBusProxyFlags
    • DBusSendMessageFlags
    • DBusServerFlags
    • DBusSignalFlags
    • DBusSubtreeFlags
    • DataStreamByteOrder
    • DataStreamNewlineType
    • DriveStartFlags
    • DriveStartStopType
    • EmblemOrigin
    • FileAttributeInfoFlags
    • FileAttributeStatus
    • FileAttributeType
    • FileCopyFlags
    • FileCreateFlags
    • FileMeasureFlags
    • FileMonitorEvent
    • FileMonitorFlags
    • FileQueryInfoFlags
    • FileType
    • FilesystemPreviewType
    • IOErrorEnum
    • IOModuleScopeFlags
    • IOStreamSpliceFlags
    • MemoryMonitorWarningLevel
    • MountMountFlags
    • MountOperationResult
    • MountUnmountFlags
    • NetworkConnectivity
    • NotificationPriority
    • OutputStreamSpliceFlags
    • PasswordSave
    • PollableReturn
    • ResolverError
    • ResolverNameLookupFlags
    • ResolverRecordType
    • ResourceError
    • ResourceFlags
    • ResourceLookupFlags
    • SettingsBindFlags
    • SocketClientEvent
    • SocketFamily
    • SocketListenerEvent
    • SocketMsgFlags
    • SocketProtocol
    • SocketType
    • SubprocessFlags
    • TestDBusFlags
    • TlsAuthenticationMode
    • TlsCertificateFlags
    • TlsCertificateRequestFlags
    • TlsChannelBindingError
    • TlsChannelBindingType
    • TlsDatabaseLookupFlags
    • TlsDatabaseVerifyFlags
    • TlsError
    • TlsInteractionResult
    • TlsPasswordFlags
    • TlsProtocolVersion
    • TlsRehandshakeMode
    • UnixSocketAddressType
    • ZlibCompressorFormat
  • Functions
  • Constants
  • Gio
  • Classes
  • MenuLinkIter

MenuLinkIter#

Added in version 2.32.

class MenuLinkIter(**properties: Any)#

Superclasses: Object

MenuLinkIter is an opaque structure type. You must access it using the functions below.

Methods#

class MenuLinkIter
do_get_next(self) → Tuple[bool, str, MenuModel]#
get_name() → str#

Gets the name of the link at the current iterator position.

The iterator is not advanced.

Added in version 2.32.

get_next() → Tuple[bool, str, MenuModel]#

This function combines next() with get_name() and get_value().

First the iterator is advanced to the next (possibly first) link. If that fails, then False is returned and there are no other effects.

If successful, out_link and value are set to the name and MenuModel of the link that has just been advanced to. At this point, get_name() and get_value() will return the same values again.

The value returned in out_link remains valid for as long as the iterator remains at the current position. The value returned in value must be unreffed using unref() when it is no longer in use.

Added in version 2.32.

get_value() → MenuModel#

Gets the linked MenuModel at the current iterator position.

The iterator is not advanced.

Added in version 2.32.

next() → bool#

Attempts to advance the iterator to the next (possibly first) link.

True is returned on success, or False if there are no more links.

You must call this function when you first acquire the iterator to advance it to the first link (and determine if the first link exists at all).

Added in version 2.32.

Virtual Methods#

class MenuLinkIter
do_get_next() → Tuple[bool, str, MenuModel]#

This function combines next() with get_name() and get_value().

First the iterator is advanced to the next (possibly first) link. If that fails, then False is returned and there are no other effects.

If successful, out_link and value are set to the name and MenuModel of the link that has just been advanced to. At this point, get_name() and get_value() will return the same values again.

The value returned in out_link remains valid for as long as the iterator remains at the current position. The value returned in value must be unreffed using unref() when it is no longer in use.

Added in version 2.32.

Fields#

class MenuLinkIter
parent_instance#
priv#
On this page
  • Methods
    • MenuLinkIter.do_get_next()
    • MenuLinkIter.get_name()
    • MenuLinkIter.get_next()
    • MenuLinkIter.get_value()
    • MenuLinkIter.next()
  • Virtual Methods
    • MenuLinkIter.do_get_next()
  • Fields
    • MenuLinkIter.parent_instance
    • MenuLinkIter.priv

This Page

  • Show Source

Created using Sphinx 8.2.3.

General Index

Built with the PyData Sphinx Theme 0.16.1.