Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
PytoRuntime documentation
PytoRuntime documentation
  • Swift API
    • Getting Started
    • Interacting with Python Objects
    • Extensions
    • Interpreter
      • defaultVersion
      • current
    • Version
      • init(bundle:mainBundle:string:)
      • find(in:)
      • bundle
      • mainBundle
      • string
      • fullVersionString
      • pythonPath
      • major
      • minor
      • micro
      • alpha
      • beta
      • rc
      • isEndOfLife
      • symbols
      • load(symbol:)
      • throwIfNeeded()
    • Breakpoint
      • init(id:url:lineno:isEnabled:)
      • isEnabled
      • line
      • lineno
      • namespaceID
      • url
      • urlBookmarkData
    • Script
      • code(_:)
      • executable(_:)
      • fileURL(_:runAsMain:package:)
      • repl(scriptURL:runAsMain:package:)
      • shell
    • Exception
      • init(object:traceback:)
      • init(type:args:traceback:)
      • args
      • object
      • traceback
      • type
      • with(traceback:)
      • traceback(from:)
    • Traceback
      • init(exc_type:msg:stack:as_text:name:suggestion:offset:end_offset:)
      • as_text
      • end_offset
      • exc_type
      • msg
      • name
      • offset
      • stack
      • suggestion
      • Frame
        • init(file_path:lineno:line:name:index:globals:locals:)
        • file_path
        • globals
        • index
        • line
        • lineno
        • locals
        • name
    • Object
      • ptr
      • version
      • symbols
      • init(_:)
      • deinit
      • get(_:)
      • set(_:value:)
      • subscript(dynamicMember:)
      • getItem(_:)
      • setItem(_:value:)
      • subscript(_:)
      • callAsFunction(_:kwargs:)
      • callAsFunction(args:)
      • callAsFunction(_:)
      • callAsFunction(args:kwargs:)
      • callAsFunction(_:kwargs:)
      • callAsFunction(args:kwargs:)
      • parse()
      • ==(_:_:)
      • <(_:_:)
      • >(_:_:)
      • <=(_:_:)
      • >=(_:_:)
    • Parsable
    • Method
      • init(name:doc:signature:decorators:body:)
      • body
      • decorators
      • signature
    • MethodBody
    • ArgumentParser
      • args
      • kwargs
      • module
      • arg(_:)
      • parse()
    • Signature
      • components
      • empty
      • keyword(_:annotation:default:)
      • positional(_:annotation:default:)
      • positionalOrKeyword(_:annotation:default:)
      • returns(annotation:)
      • varKeyword(_:annotation:)
      • varPositional(_:annotation:)
      • keyword(_:annotation:default:)
      • positional(_:annotation:default:)
      • positionalOrKeyword(_:annotation:default:)
      • returns(annotation:)
      • varKeyword(_:annotation:)
      • varPositional(_:annotation:)
    • SignatureComponent
      • annotation
      • default
      • hasAnnotation
      • hasDefault
      • isReturn
      • name
      • type
    • Member
    • Module
    • Attribute
      • init(name:doc:annotation:value:)
      • annotation
      • value
    • Class
    • Property
      • init(name:doc:annotation:getter:setter:deleter:)
      • annotation
      • deleter
      • getter
      • setter
    • WASM
      • init(state:)
      • find(pid:)
      • id
      • wasiState
      • deinit
      • librarySearchURLs
      • setup()
      • standardInput
      • standardOutput
      • standardError
      • load(module:)
      • kill(_:workerId:)
      • Instance
        • index
        • wasmId
        • run(with:)
    • WASIState
      • init()
      • deinit
      • activeThreads
      • pendingSignals
      • standardInput
      • standardOutput
      • standardError
      • workingDirectoryPath
      • FileDescriptor
        • fd
        • fdflags
        • flags
        • isDirectory
        • offset
        • path
        • rightsBase
        • rightsInheriting
      • descriptors
      • allRights
      • resolvePath(baseFd:relativePath:)
      • addDescriptor(fd:path:isDirectory:flags:fdflags:rightsBase:rightsInheriting:)
      • getDescriptor(_:)
      • setFdflags(_:fdflags:)
      • setRights(_:base:inheriting:)
      • removeDescriptor(_:)
      • SocketInfo
        • domain
        • fd
        • isListening
        • type
      • sockets
      • addSocket(fd:domain:type:)
      • getSocket(_:)
      • removeSocket(_:)
      • clockOffsetNanoseconds
      • pid
      • parentPid
      • subprocesses
    • PkgInstaller
      • init(package:downloadedCacheURL:)
      • downloadedCacheURL
      • installedVersion
      • package
      • dataURL
      • downloadAndExtract(progressHandler:)
      • install(_:)
      • Error
        • couldNotGenerateChecksum(_:)
        • couldNotReadDirectory(_:)
        • extractionFailed(_:_:)
      • Progress
        • done
        • downloading(_:_:)
        • unarchiving(_:)
      • WriteAction
        • new(_:)
        • overrideLocalChanges(_:)
        • update(_:)
    • PkgUninstaller
      • init(packageName:)
      • packageName
      • uninstall(handler:)
      • Error
        • couldNotGenerateChecksum(_:)
        • notInstalled
      • RemoveAction
        • overrideLocalChanges(_:)
        • unchanged(_:)
    • PkgPackage
      • init(name:version:url:dependencies:)
      • dependencies
      • name
      • url
      • version
    • PkgDependency
      • init(name:version:)
      • name
      • version
  • Python Library
    • pyto_runtime
      • current_interpreter
      • Interpreter
      • Interpreter.version
      • Interpreter.running
      • Interpreter.working_directory
      • Interpreter.virtual_environment_home_path
      • Interpreter.standard_output
      • Interpreter.standard_error
      • Interpreter.standard_input
      • Interpreter.receive_view_controller
      • Interpreter.receive_image_output
      • Interpreter.builtins
      • Interpreter.breakpoints
      • Interpreter.breakpoint_handler
      • Interpreter.display_hook
      • Interpreter.trace
      • Interpreter.evaluate
      • Interpreter.exec
      • Interpreter.import
      • Interpreter.run_path
      • Interpreter.run_repl
      • Interpreter.run_shell
      • Interpreter.run_code
      • Interpreter.kill
      • Interpreter.end_of_file
      • Interpreter.clear_state
      • Interpreter.focus
      • Object
      • InterpreterException
      • InterpreterException.type
      • InterpreterException.args
      • find_versions
      • Version
      • Version.bundle_path
      • Version.main_bundle_path
      • Version.string
      • Version.full_version_string
      • Version.major
      • Version.minor
      • Version.micro
      • Version.alpha
      • Version.beta
      • Version.rc
      • Version.end_of_life
      • Breakpoint
      • Breakpoint.path
      • Breakpoint.lineno
      • Breakpoint.enabled
      • Breakpoint.line
      • Traceback
      • Traceback.exc_type
      • Traceback.msg
      • Traceback.stack
      • Traceback.as_text
      • Traceback.name
      • Traceback.suggestion
      • Traceback.offset
      • Traceback.end_offset
      • Frame
      • Frame.file_path
      • Frame.lineno
      • Frame.line
      • Frame.name
      • Frame.index
      • Frame.globals
      • Frame.locals
      • SwiftError
      • SwiftError.type
      • SwiftError.description
      • SwiftFinder
      • SwiftLoader
    • pyto_ui
      • Classes
        • TogaWidget
        • View
        • NavigationView
        • UIKitView
        • ImageView
        • Label
        • TableViewCell
        • TableView
        • TextView
        • WebView
        • StackView
        • VerticalStackView
        • HorizontalStackView
        • Control
        • SegmentedControl
        • Slider
        • Switch
        • Button
        • TextField
        • Menu
        • MenuElement
        • Color
        • Font
        • GestureRecognizer
        • TableViewSection
        • ButtonItem
        • Alert
        • Rect
        • Point
        • Size
      • Functions
        • font_family_names
        • image_with_system_name
        • show_view
        • show_view_controller
        • read
        • pick_color
        • pick_font
      • Constants
        • AccessoryType
        • Appearance
        • AutoCapitalization
        • AutoResizing
        • ButtonItemStyle
        • ButtonType
        • ContentMode
        • FontSize
        • FontTextStyle
        • GestureState
        • GestureType
        • HorizontalAlignment
        • KeyCode
        • KeyModifier
        • KeyboardAppearance
        • KeyboardType
        • LineBreakMode
        • MenuElementAttributes
        • MenuElementSize
        • MenuElementState
        • MenuOptions
        • PresentationMode
        • ReturnKeyType
        • SystemColors
        • SystemItem
        • TableViewCellStyle
        • TableViewStyle
        • TextAlignment
        • TextFieldBorderStyle
        • TouchType
        • VerticalAlignment
    • widgets
      • Classes
        • Widget
        • WidgetLayout
        • TimelineProvider
        • WidgetComponent
        • Text
        • DynamicDate
        • SystemSymbol
        • Image
        • Spacer
        • Color
        • SystemColors
        • Font
        • Padding
      • Functions
        • schedule_next_reload
        • wait_for_internet_connection
        • delete_in_app_widget
        • reload_widgets
        • show_widget
        • provide_timeline
        • save_widget
        • show_view
        • save_snapshot
    • sound
      • AudioPlayer
      • AudioPlayer.play
      • AudioPlayer.pause
      • AudioPlayer.stop
      • AudioPlayer.playing
      • AudioPlayer.volume
      • AudioPlayer.current_time
      • play_file
      • play_system_sound
      • play_beep
      • AVFoundation
      • AudioToolbox
    • sf_symbols
    • mainthread
      • mainthread
      • run_async
      • run_sync
    • file_system
      • import_file
      • pick_directory
      • open_directory
      • save_as
      • FilePickerCancellation
      • share_text
      • share_files
      • quick_look
      • StoredBookmark
      • StoredBookmark.delete_from_disk
      • StoredBookmark.path
      • FileBookmark
      • FolderBookmark
    • notifications
      • Notification
      • get_pending_notifications
      • cancel_notification
      • remove_delivered_notifications
      • cancel_all
      • schedule_notification
      • send_notification
    • background
      • TaskExit
      • request_background_fetch
      • BackgroundTask
    • music
      • set_queue_with_items
      • set_queue_with_store_ids
      • play
      • stop
      • restart
      • next
      • previous
      • set_shuffle_mode
      • set_repeat_mode
      • playback_state
      • now_playing_item
      • index_of_now_playing_item
      • pick_music
      • MediaItem
      • MediaItem.album_artist
      • MediaItem.album_artist_persistent_id
      • MediaItem.album_persistent_id
      • MediaItem.album_title
      • MediaItem.album_track_count
      • MediaItem.artist
      • MediaItem.artist_persistent_id
      • MediaItem.artwork
      • MediaItem.beats_per_minute
      • MediaItem.bookmark_time
      • MediaItem.is_cloud_item
      • MediaItem.comments
      • MediaItem.is_compilation
      • MediaItem.composer
      • MediaItem.composer_persistent_id
      • MediaItem.date_added
      • MediaItem.disc_count
      • MediaItem.disc_number
      • MediaItem.is_explicit_item
      • MediaItem.genre
      • MediaItem.genre_persistent_id
      • MediaItem.last_played_date
      • MediaItem.lyrics
      • MediaItem.persistent_id
      • MediaItem.play_count
      • MediaItem.playback_duration
      • MediaItem.playback_store_id
      • MediaItem.podcast_persistent_id
      • MediaItem.podcast_title
      • MediaItem.has_protected_asset
      • MediaItem.rating
      • MediaItem.release_date
      • MediaItem.skip_count
      • MediaItem.title
      • MediaItem.user_grouping
      • MediaQuery
      • MediaQuery.items
      • MediaQuery.albums
      • MediaQuery.artists
      • MediaQuery.songs
      • MediaQuery.playlists
      • MediaQuery.podcasts
      • MediaQuery.audiobook
      • MediaQuery.compilations
      • MediaQuery.composers
      • MediaQuery.genres
      • REPEAT_MODE_DEFAULT
      • REPEAT_MODE_NONE
      • REPEAT_MODE_ONE
      • REPEAT_MODE_ALL
      • SHUFFLE_MODE_DEFAULT
      • SHUFFLE_MODE_OFF
      • SHUFFLE_MODE_SONGS
      • SHUFFLE_MODE_ALBUMS
      • PLAYBACK_STATE_STOPPED
      • PLAYBACK_STATE_PLAYING
      • PLAYBACK_STATE_PAUSED
      • PLAYBACK_STATE_INTERRUPTED
      • PLAYBACK_STATE_SEEKING_FORWARD
      • PLAYBACK_STATE_SEEKING_BACKWARD
      • MPMusicPlayerController
      • MPMediaItem
      • MPMediaItemCollection
      • MPMediaQuery
    • photos
      • pick_photo
      • take_photo
      • save_image
    • location
      • Location
      • start_updating
      • stop_updating
      • get_location
      • accuracy
      • LOCATION_ACCURACY_BEST_FOR_NAVIGATION
      • LOCATION_ACCURACY_BEST
      • LOCATION_ACCURACY_NEAREST_TEN_METERS
      • LOCATION_ACCURACY_HUNDRED_METERS
      • LOCATION_ACCURACY_KILOMETER
      • LOCATION_ACCURACY_THREE_KILOMETERS
    • motion
      • start_updating
      • stop_updating
      • get_acceleration
      • get_attitude
      • get_gravity
      • get_magnetic_field
      • get_rotation
      • Acceleration
      • Attitude
      • Gravity
      • MagneticField
      • Rotation
    • multipeer
      • connect
      • disconnect
      • send
      • get_data
      • wait
    • speech
      • is_speaking
      • wait
      • say
      • get_available_languages
    • pasteboard
      • ItemProvider
      • ItemProvider.get_file_path
      • ItemProvider.get_type_identifiers
      • ItemProvider.get_suggested_name
      • ItemProvider.data
      • ItemProvider.open
      • item_provider
      • shortcuts_attachments
      • string
      • strings
      • set_string
      • image
      • images
      • set_image
      • url
      • urls
      • set_url
    • userkeys
      • get
      • delete
      • set
    • xcallback
      • open_url
    • apps
      • Terminology
      • RunJavascript
      • Blackbox
      • Workflow
      • PriceTag
      • DevonthinkToGo
      • Spark
      • Calca
      • Launcher
      • Tally2
      • GoogleMaps
      • Shopi
      • WorkingCopy
      • MultiTimer
      • Todoist
      • Ulysses
      • Airmail
      • Chrome
      • StoryPlanner
      • TwoDo
      • Infuse
      • Instapaper
      • Shortcuts
      • Gladys
      • DictCc
      • Timepage
      • Gmail
      • OmniFocus
      • Byword
      • Outlinely
      • OneWriter
      • Agenda
      • Scriptable
      • Trello
      • Notes
      • Things3
      • Copied
      • Bitly
      • Due
      • Coda
      • Textastic
      • Prizmo
      • IcabMobile
      • Fantastical2
      • Overcast
      • CodeHub
      • Vlc
      • TextkraftPocket
      • Beorg
      • Opener
      • Awair
      • DayOne
      • Drafts5
      • Bear
  • WebAssembly Runtime
  • Shell
  • Runtime Patches
  • Package Manager
  • Embedding
Back to top
View this page

MenuElementSize¶

class pyto_ui.MenuElementSize(*values)¶

The size of the children elements of a menu.

LARGE = 2¶

Large.

MEDIUM = 1¶

Medium.

SMALL = 0¶

Small.

Next
MenuElementState
Previous
MenuElementAttributes
Copyright © 2019-2026, Emma Labbé
Made with Sphinx and @pradyunsg's Furo
On this page
  • MenuElementSize
    • MenuElementSize
      • MenuElementSize.LARGE
      • MenuElementSize.MEDIUM
      • MenuElementSize.SMALL