111 lines
6.2 KiB
Python
111 lines
6.2 KiB
Python
"""
|
|
Register KivyMD widgets to use without import.
|
|
"""
|
|
|
|
from kivy.factory import Factory
|
|
|
|
register = Factory.register
|
|
register("MDSegmentedControl", module="kivymd.uix.segmentedcontrol")
|
|
register("MDSegmentedControlItem", module="kivymd.uix.segmentedcontrol")
|
|
register("MDSliverAppbar", module="kivymd.uix.sliverappbar")
|
|
register("MDSliverAppbarContent", module="kivymd.uix.sliverappbar")
|
|
register("MDSliverAppbarHeader", module="kivymd.uix.sliverappbar")
|
|
register("MDNavigationRail", module="kivymd.uix.navigationrail")
|
|
register("MDNavigationRailFabButton", module="kivymd.uix.navigationrail")
|
|
register("MDNavigationRailMenuButton", module="kivymd.uix.navigationrail")
|
|
register("MDSwiper", module="kivymd.uix.swiper")
|
|
register("MDCarousel", module="kivymd.uix.carousel")
|
|
register("MDWidget", module="kivymd.uix.widget")
|
|
register("MDFloatLayout", module="kivymd.uix.floatlayout")
|
|
register("MDAnchorLayout", module="kivymd.uix.anchorlayout")
|
|
register("MDScreen", module="kivymd.uix.screen")
|
|
register("MDScreenManager", module="kivymd.uix.screenmanager")
|
|
register("MDRecycleGridLayout", module="kivymd.uix.recyclegridlayout")
|
|
register("MDBoxLayout", module="kivymd.uix.boxlayout")
|
|
register("MDRelativeLayout", module="kivymd.uix.relativelayout")
|
|
register("MDGridLayout", module="kivymd.uix.gridlayout")
|
|
register("MDStackLayout", module="kivymd.uix.stacklayout")
|
|
register("MDExpansionPanel", module="kivymd.uix.expansionpanel")
|
|
register("MDExpansionPanelOneLine", module="kivymd.uix.expansionpanel")
|
|
register("MDExpansionPanelTwoLine", module="kivymd.uix.expansionpanel")
|
|
register("MDExpansionPanelThreeLine", module="kivymd.uix.expansionpanel")
|
|
register("FitImage", module="kivymd.utils.fitimage")
|
|
register("MDBackdrop", module="kivymd.uix.backdrop")
|
|
register("MDBanner", module="kivymd.uix.banner")
|
|
register("MDTooltip", module="kivymd.uix.tooltip")
|
|
register("MDBottomNavigation", module="kivymd.uix.bottomnavigation")
|
|
register("MDBottomNavigationItem", module="kivymd.uix.bottomnavigation")
|
|
register("MDToggleButton", module="kivymd.uix.behaviors.toggle_behavior")
|
|
register("MDFloatingActionButtonSpeedDial", module="kivymd.uix.button")
|
|
register("MDIconButton", module="kivymd.uix.button")
|
|
register("MDRoundImageButton", module="kivymd.uix.button")
|
|
register("MDFlatButton", module="kivymd.uix.button")
|
|
register("MDRaisedButton", module="kivymd.uix.button")
|
|
register("MDFloatingActionButton", module="kivymd.uix.button")
|
|
register("MDRectangleFlatButton", module="kivymd.uix.button")
|
|
register("MDTextButton", module="kivymd.uix.button")
|
|
register("MDCustomRoundIconButton", module="kivymd.uix.button")
|
|
register("MDRoundFlatButton", module="kivymd.uix.button")
|
|
register("MDFillRoundFlatButton", module="kivymd.uix.button")
|
|
register("MDRectangleFlatIconButton", module="kivymd.uix.button")
|
|
register("MDRoundFlatIconButton", module="kivymd.uix.button")
|
|
register("MDFillRoundFlatIconButton", module="kivymd.uix.button")
|
|
register("MDCard", module="kivymd.uix.card")
|
|
register("MDSeparator", module="kivymd.uix.card")
|
|
register("MDSelectionList", module="kivymd.uix.selection")
|
|
register("MDChip", module="kivymd.uix.chip")
|
|
register("MDChooseChip", module="kivymd.uix.chip")
|
|
register("MDSmartTile", module="kivymd.uix.imagelist")
|
|
register("SmartTileWithLabel", module="kivymd.uix.imagelist")
|
|
register("SmartTileWithStar", module="kivymd.uix.imagelist")
|
|
register("MDLabel", module="kivymd.uix.label")
|
|
register("MDIcon", module="kivymd.uix.label")
|
|
register("MDList", module="kivymd.uix.list")
|
|
register("ILeftBody", module="kivymd.uix.list")
|
|
register("ILeftBodyTouch", module="kivymd.uix.list")
|
|
register("IRightBody", module="kivymd.uix.list")
|
|
register("IRightBodyTouch", module="kivymd.uix.list")
|
|
register("ContainerSupport", module="kivymd.uix.list")
|
|
register("OneLineListItem", module="kivymd.uix.list")
|
|
register("TwoLineListItem", module="kivymd.uix.list")
|
|
register("ThreeLineListItem", module="kivymd.uix.list")
|
|
register("OneLineAvatarListItem", module="kivymd.uix.list")
|
|
register("TwoLineAvatarListItem", module="kivymd.uix.list")
|
|
register("ThreeLineAvatarListItem", module="kivymd.uix.list")
|
|
register("OneLineIconListItem", module="kivymd.uix.list")
|
|
register("TwoLineIconListItem", module="kivymd.uix.list")
|
|
register("ThreeLineIconListItem", module="kivymd.uix.list")
|
|
register("OneLineRightIconListItem", module="kivymd.uix.list")
|
|
register("TwoLineRightIconListItem", module="kivymd.uix.list")
|
|
register("ThreeLineRightIconListItem", module="kivymd.uix.list")
|
|
register("OneLineAvatarIconListItem", module="kivymd.uix.list")
|
|
register("TwoLineAvatarIconListItem", module="kivymd.uix.list")
|
|
register("ThreeLineAvatarIconListItem", module="kivymd.uix.list")
|
|
register("HoverBehavior", module="kivymd.uix.behaviors.hover_behavior")
|
|
register("FocusBehavior", module="kivymd.uix.behaviors.focus_behavior")
|
|
register("MagicBehavior", module="kivymd.uix.behaviors.magic_behavior")
|
|
register("MDNavigationDrawer", module="kivymd.uix.navigationdrawer")
|
|
register("MDNavigationLayout", module="kivymd.uix.navigationdrawer")
|
|
register("MDNavigationDrawerMenu", module="kivymd.uix.navigationdrawer")
|
|
register("MDNavigationDrawerHeader", module="kivymd.uix.navigationdrawer")
|
|
register("MDNavigationDrawerItem", module="kivymd.uix.navigationdrawer")
|
|
register("MDNavigationDrawerLabel", module="kivymd.uix.navigationdrawer")
|
|
register("MDNavigationDrawerDivider", module="kivymd.uix.navigationdrawer")
|
|
register("MDProgressBar", module="kivymd.uix.progressbar")
|
|
register("MDScrollViewRefreshLayout", module="kivymd.uix.refreshlayout")
|
|
register("MDCheckbox", module="kivymd.uix.selectioncontrol")
|
|
register("MDSwitch", module="kivymd.uix.selectioncontrol")
|
|
register("MDSlider", module="kivymd.uix.slider")
|
|
register("MDSpinner", module="kivymd.uix.spinner")
|
|
register("MDTabs", module="kivymd.uix.tab")
|
|
register("MDTextField", module="kivymd.uix.textfield")
|
|
register("MDTextFieldRound", module="kivymd.uix.textfield")
|
|
register("MDTextFieldRect", module="kivymd.uix.textfield")
|
|
register("MDToolbar", module="kivymd.uix.toolbar")
|
|
register("MDTopAppBar", module="kivymd.uix.toolbar")
|
|
register("MDBottomAppBar", module="kivymd.uix.toolbar")
|
|
register("MDDropDownItem", module="kivymd.uix.dropdownitem")
|
|
register("MDCircularLayout", module="kivymd.uix.circularlayout")
|
|
register("MDHeroFrom", module="kivymd.uix.hero")
|
|
register("MDHeroTo", module="kivymd.uix.hero")
|