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
  • MenuAttributeIter

MenuAttributeIter#

Added in version 2.32.

class MenuAttributeIter(**properties: Any)#

Superclasses: Object

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

Methods#

class MenuAttributeIter
do_get_next(self) → Tuple[bool, str, Variant]#
get_name() → str#

Gets the name of the attribute at the current iterator position, as a string.

The iterator is not advanced.

Added in version 2.32.

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

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

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

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

The value returned in name 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() → Variant#

Gets the value of the attribute 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) attribute.

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

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

Added in version 2.32.

Virtual Methods#

class MenuAttributeIter
do_get_next() → Tuple[bool, str, Variant]#

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

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

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

The value returned in name 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 MenuAttributeIter
parent_instance#
priv#
On this page
  • Methods
    • MenuAttributeIter.do_get_next()
    • MenuAttributeIter.get_name()
    • MenuAttributeIter.get_next()
    • MenuAttributeIter.get_value()
    • MenuAttributeIter.next()
  • Virtual Methods
    • MenuAttributeIter.do_get_next()
  • Fields
    • MenuAttributeIter.parent_instance
    • MenuAttributeIter.priv

This Page

  • Show Source

Created using Sphinx 8.2.3.

General Index

Built with the PyData Sphinx Theme 0.16.1.