kvex.widgets.dropdown
Home of XDropDown
.
1"""Home of `XDropDown`.""" 2 3from .. import kivy as kv 4from ..behaviors import XThemed 5from .widget import XWidget 6 7 8class XDropDown(XThemed, XWidget, kv.DropDown): 9 """DropDown.""" 10 11 def __init__(self, *args, **kwargs): 12 """Initialize the class.""" 13 kwargs = dict(subtheme_name="secondary") | kwargs 14 super().__init__(*args, **kwargs) 15 16 def on_subtheme(self, subtheme): 17 """Apply background.""" 18 self.make_bg(subtheme.bg.modified_alpha(0.75)) 19 20 21__all__ = ( 22 "XDropDown", 23)
9class XDropDown(XThemed, XWidget, kv.DropDown): 10 """DropDown.""" 11 12 def __init__(self, *args, **kwargs): 13 """Initialize the class.""" 14 kwargs = dict(subtheme_name="secondary") | kwargs 15 super().__init__(*args, **kwargs) 16 17 def on_subtheme(self, subtheme): 18 """Apply background.""" 19 self.make_bg(subtheme.bg.modified_alpha(0.75))
DropDown.
XDropDown(*args, **kwargs)
12 def __init__(self, *args, **kwargs): 13 """Initialize the class.""" 14 kwargs = dict(subtheme_name="secondary") | kwargs 15 super().__init__(*args, **kwargs)
Initialize the class.
def
on_subtheme(self, subtheme):
17 def on_subtheme(self, subtheme): 18 """Apply background.""" 19 self.make_bg(subtheme.bg.modified_alpha(0.75))
Apply background.
Inherited Members
- kivy.uix.dropdown.DropDown
- auto_width
- max_height
- dismiss_on_select
- auto_dismiss
- min_state_time
- attach_to
- container
- on_key_down
- on_container
- open
- dismiss
- on_dismiss
- select
- on_select
- add_widget
- remove_widget
- clear_widgets
- on_motion
- on_touch_down
- on_touch_move
- on_touch_up
- kivy.uix.scrollview.ScrollView
- scroll_distance
- scroll_wheel_distance
- scroll_timeout
- scroll_x
- scroll_y
- do_scroll_x
- do_scroll_y
- do_scroll
- always_overscroll
- vbar
- hbar
- bar_color
- bar_inactive_color
- bar_width
- bar_pos_x
- bar_pos_y
- bar_pos
- bar_margin
- effect_cls
- effect_x
- effect_y
- viewport_size
- scroll_type
- smooth_scroll_end
- on__viewport
- canvas
- on_effect_x
- on_effect_y
- on_effect_cls
- to_local
- to_parent
- simulate_touch_down
- on_scroll_start
- on_scroll_move
- on_scroll_stop
- scroll_to
- convert_distance_to_scroll
- update_from_scroll
- kivy.uix.widget.Widget
- proxy_ref
- apply_class_lang_rules
- collide_point
- collide_widget
- on_kv_post
- register_for_motion_event
- unregister_for_motion_event
- export_to_png
- export_as_image
- get_root_window
- get_parent_window
- walk
- walk_reverse
- to_widget
- to_window
- get_window_matrix
- x
- y
- width
- height
- pos
- size
- get_right
- set_right
- right
- get_top
- set_top
- top
- get_center_x
- set_center_x
- center_x
- get_center_y
- set_center_y
- center_y
- center
- cls
- children
- parent
- size_hint_x
- size_hint_y
- size_hint
- pos_hint
- size_hint_min_x
- size_hint_min_y
- size_hint_min
- size_hint_max_x
- size_hint_max_y
- size_hint_max
- ids
- opacity
- on_opacity
- get_disabled
- set_disabled
- inc_disabled
- dec_disabled
- disabled
- motion_filter
- kivy._event.EventDispatcher
- register_event_type
- unregister_event_types
- unregister_event_type
- is_event_type
- bind
- unbind
- fbind
- funbind
- unbind_uid
- get_property_observers
- events
- dispatch
- dispatch_generic
- dispatch_children
- setter
- getter
- property
- properties
- create_property
- apply_property