Skip to main content
Ctrl+K

Ignis

  • User guide
  • API reference
  • Developer Guide
  • Examples
  • GitHub
  • User guide
  • API reference
  • Developer Guide
  • Examples
  • GitHub

Section Navigation

  • Toplevel package
  • Application
  • WindowManager
  • Singleton
  • GObject
  • Variable
  • Client
  • Options
  • Options Manager
  • Exceptions
  • D-Bus
  • D-Bus menu
  • BaseWidget
  • BaseService
  • Connection Manager
  • Menu Model
  • Widgets
    • Arrow
    • ArrowButton
    • Box
    • Button
    • Calendar
    • CenterBox
    • CheckButton
    • DropDown
    • Entry
    • EventBox
    • FileChooserButton
    • FileDialog
    • FileFilter
    • Grid
    • HeaderBar
    • Icon
    • Label
    • ListBox
    • ListBoxRow
    • Overlay
    • Picture
    • PopoverMenu
    • RegularWindow
    • Revealer
    • RevealerWindow
    • Scale
    • Scroll
    • Separator
    • SpinButton
    • Stack
    • Switch
    • ToggleButton
    • Window
  • Services
    • Applications
    • Audio
    • Backlight
    • Bluetooth
    • Fetch
    • Hyprland
    • MPRIS (media)
    • Network
    • Niri
    • Notifications
    • Recorder
    • System Tray
    • Systemd
    • UPower
    • Wallpaper
  • Utils
    • FileMonitor
    • Poll
    • Timeout
    • Debounce
    • File
    • Icon
    • Misc
    • Monitor
    • Pixbuf
    • Sass
    • Shell Commands
    • Socket
    • String Cases
    • Thread
    • Version
  • API reference
  • Widgets
  • DropDown

DropDown#

class ignis.widgets.DropDown(*args: Any, **kwargs: Any)#

Bases: Gtk.DropDown

A widget that allows the user to choose an item from a list of options.

Parameters:

**kwargs -- Properties to set.

widgets.DropDown(
    items=["option 1", "option 2", "option 3"],
    on_selected=lambda x, selected: print(selected)
)
gproperty items: list[str]#
  • read-write

A list of strings that can be selected in the popover.

gproperty on_selected: Callable | None#
  • read-write

The function to call when the user selects an item from the list.

gproperty selected: str#
  • read-only

The selected string. It is a shortcut for self.selected_item.props.string.

previous

CheckButton

next

Entry

On this page
  • DropDown
    • DropDown.items
    • DropDown.on_selected
    • DropDown.selected
Edit on GitHub

This Page

  • Show Source

© Copyright 2024, linkfrg.

Created using Sphinx 8.1.0.

Built with the PyData Sphinx Theme 0.16.1.