spin_box#

Module Contents#

SpinIcon

微调框图标

SpinButton

CompactSpinButton

Compact spin button

SpinFlyoutView

Spin flyout view

SpinBoxBase

微调框 Ui

InlineSpinBoxBase

Inline spin box base

CompactSpinBoxBase

Compact spin box base

SpinBox

微调框

CompactSpinBox

Compact spin box

DoubleSpinBox

浮点数微调框

CompactDoubleSpinBox

Compact double spin box

TimeEdit

时间编辑框

CompactTimeEdit

Compact time edit

DateTimeEdit

日期时间编辑框

CompactDateTimeEdit

Compact date time edit

DateEdit

日期编辑框

CompactDateEdit

Compact date edit

class SpinIcon#

Bases: qfluentwidgets.common.icon.FluentIconBase, enum.Enum

微调框图标

UP = 'Up'#
DOWN = 'Down'#
path(theme=Theme.AUTO)#

返回图标路径

参数#

theme: Theme

the theme of icon * Theme.Light: black icon * Theme.DARK: white icon * Theme.AUTO: icon color depends on config.theme

class SpinButton(icon: SpinIcon, parent=None)#

Bases: PyQt5.QtWidgets.QToolButton

mousePressEvent(e)#
mouseReleaseEvent(e)#
paintEvent(e)#
class CompactSpinButton(parent=None)#

Bases: PyQt5.QtWidgets.QToolButton

Compact spin button

paintEvent(e)#
class SpinFlyoutView(parent=None)#

Bases: qfluentwidgets.components.widgets.flyout.FlyoutViewBase

Spin flyout view

paintEvent(e)#
class SpinBoxBase(parent=None)#

微调框 Ui

setReadOnly(isReadOnly: bool)#
setSymbolVisible(isVisible: bool)#

set whether the spin symbol is visible

paintEvent(e)#
class InlineSpinBoxBase(parent=None)#

Bases: SpinBoxBase

Inline spin box base

setSymbolVisible(isVisible: bool)#

set whether the spin symbol is visible

setAccelerated(on: bool)#
class CompactSpinBoxBase(parent=None)#

Bases: SpinBoxBase

Compact spin box base

focusInEvent(e)#
setAccelerated(on: bool)#
setSymbolVisible(isVisible: bool)#

set whether the spin symbol is visible

class SpinBox(parent=None)#

Bases: InlineSpinBoxBase, PyQt5.QtWidgets.QSpinBox

微调框

class CompactSpinBox(parent=None)#

Bases: CompactSpinBoxBase, PyQt5.QtWidgets.QSpinBox

Compact spin box

class DoubleSpinBox(parent=None)#

Bases: InlineSpinBoxBase, PyQt5.QtWidgets.QDoubleSpinBox

浮点数微调框

class CompactDoubleSpinBox(parent=None)#

Bases: CompactSpinBoxBase, PyQt5.QtWidgets.QDoubleSpinBox

Compact double spin box

class TimeEdit(parent=None)#

Bases: InlineSpinBoxBase, PyQt5.QtWidgets.QTimeEdit

时间编辑框

class CompactTimeEdit(parent=None)#

Bases: CompactSpinBoxBase, PyQt5.QtWidgets.QTimeEdit

Compact time edit

class DateTimeEdit(parent=None)#

Bases: InlineSpinBoxBase, PyQt5.QtWidgets.QDateTimeEdit

日期时间编辑框

class CompactDateTimeEdit(parent=None)#

Bases: CompactSpinBoxBase, PyQt5.QtWidgets.QDateTimeEdit

Compact date time edit

class DateEdit(parent=None)#

Bases: InlineSpinBoxBase, PyQt5.QtWidgets.QDateEdit

日期编辑框

class CompactDateEdit(parent=None)#

Bases: CompactSpinBoxBase, PyQt5.QtWidgets.QDateEdit

Compact date edit