字数 499 个 代码 59 行 阅读时间 2 分钟 访问量
文件描述: All constants
外部引用: math
, platform
源码位置: tkintertools\constants.py
Constants - 常量
BORDERWIDTH Constant
Default widget borderwidth
CAMERA_DISTANCE Constant
| CAMERA_DISTANCE: int = 1000
|
Default 3D camera distance
COLOR_FILL_BUTTON Constant
| COLOR_FILL_BUTTON: tuple = ('#E1E1E1', '#E5F1FB', '#CCE4F7', '#E0E0E0')
|
Default Button
fill color
COLOR_FILL_CHECKBUTTON Constant
| COLOR_FILL_CHECKBUTTON: tuple = ('#E1E1E1', '#E5F1FB', '#CCE4F7', '#E0E0E0')
|
Default CheckButton
fill color
COLOR_FILL_ENTRY Constant
| COLOR_FILL_ENTRY: tuple = ('#FFFFFF', '#FFFFFF', '#FFFFFF', '#E0E0E0')
|
Default Entry
fill color
COLOR_FILL_LABEL Constant
| COLOR_FILL_LABEL: tuple = ('#E1E1E1', '#E5F1FB', '#CCE4F7', '#E0E0E0')
|
Default Label
fill color
COLOR_FILL_LINE Constant
| COLOR_FILL_LINE: str = '#000000'
|
Default Line
fill color
COLOR_FILL_OFF Constant
| COLOR_FILL_OFF: tuple = ('#E1E1E1', '#E5F1FB', '#CCE4F7', '#E0E0E0')
|
Default fill color when Switch
is off
COLOR_FILL_ON Constant
| COLOR_FILL_ON: tuple = ('#288CDB', '#3E98DF', '#4884B4', '#E0E0E0')
|
Default fill color when Switch
is on
COLOR_FILL_ORIGIN Constant
| COLOR_FILL_ORIGIN: str = ''
|
Default origin fill color
COLOR_FILL_POINT Constant
| COLOR_FILL_POINT: str = '#000000'
|
Default Point
fill color
COLOR_FILL_PROGRESSBAR Constant
| COLOR_FILL_PROGRESSBAR: tuple = ('#E1E1E1', '#06b025')
|
Default ProgressBar
fill color
COLOR_FILL_SIDE Constant
| COLOR_FILL_SIDE: str = ''
|
Default Side
fill color
COLOR_FILL_SLIDER Constant
| COLOR_FILL_SLIDER: tuple = ('#000000', '#000000', '#000000', '#333333')
|
Default slider fill color
COLOR_FILL_TEXT Constant
| COLOR_FILL_TEXT: tuple = ('#FFFFFF', '#FFFFFF', '#FFFFFF', '#E0E0E0')
|
Default Text
fill color
COLOR_NONE Constant
| COLOR_NONE: tuple = ('', '', '', '')
|
Default transparent color tuple
COLOR_OUTLINE_BUTTON Constant
| COLOR_OUTLINE_BUTTON: tuple = ('#C0C0C0', '#288CDB', '#4884B4', '#D0D0D0')
|
Default Button
outline color
COLOR_OUTLINE_CHECKBUTTON Constant
| COLOR_OUTLINE_CHECKBUTTON: tuple = ('#C0C0C0', '#288CDB', '#4884B4', '#D0D0D0')
|
Default CheckButton
outline color
COLOR_OUTLINE_ENTRY Constant
| COLOR_OUTLINE_ENTRY: tuple = ('#C0C0C0', '#414141', '#288CDB', '#D0D0D0')
|
Default Entry
outline color
COLOR_OUTLINE_LABEL Constant
| COLOR_OUTLINE_LABEL: tuple = ('#C0C0C0', '#288CDB', '#4884B4', '#D0D0D0')
|
Default Label
outline color
COLOR_OUTLINE_OFF Constant
| COLOR_OUTLINE_OFF: tuple = ('#C0C0C0', '#288CDB', '#4884B4', '#D0D0D0')
|
Default outline color when Switch
is off
COLOR_OUTLINE_ON Constant
| COLOR_OUTLINE_ON: tuple = ('#288CDB', '#3E98DF', '#4884B4', '#E0E0E0')
|
Default outline color when Switch
is on
COLOR_OUTLINE_ORIGIN Constant
| COLOR_OUTLINE_ORIGIN: str = ''
|
Default origin outline color
COLOR_OUTLINE_POINT Constant
| COLOR_OUTLINE_POINT: str = '#000000'
|
Default Point
outline color
COLOR_OUTLINE_PROGRESSBAR Constant
| COLOR_OUTLINE_PROGRESSBAR: tuple = ('#C0C0C0', '#414141', '#288CDB', '#D0D0D0')
|
Default ProgressBar
outline color
COLOR_OUTLINE_SIDE Constant
| COLOR_OUTLINE_SIDE: str = '#000000'
|
Default Side
outline color
COLOR_OUTLINE_SLIDER Constant
| COLOR_OUTLINE_SLIDER: tuple = ('#333333', '#333333', '#333333', '#666666')
|
Default slider outline color
COLOR_OUTLINE_TEXT Constant
| COLOR_OUTLINE_TEXT: tuple = ('#C0C0C0', '#414141', '#288CDB', '#D0D0D0')
|
Default Text
outline color
COLOR_TEXT Constant
| COLOR_TEXT: tuple = ('#000000', '#000000', '#000000', '#A3A3A3')
|
Default text color
CONTROLLER Constant
| CONTROLLER: NoneType = None
|
Default control function
CURSOR Constant
text cursor
DELAY Constant
Default ToolTip
delay
DURATION Constant
Default ToolTip
duration
FONT Constant
| FONT: str = 'Microsoft YaHei'
|
Default font
FPS Constant
Default animation FPS
LIMIT Constant
Default widget text length limit
LINE_WIDTH Constant
Default Line
width
NUM Constant
Default number of RGB digits
ORIGIN_COORDINATE Constant
| ORIGIN_COORDINATE: tuple = (0, 0, 0)
|
Default origin coordinate
ORIGIN_SIZE Constant
Default origin size
ORIGIN_WIDTH Constant
Default origin width
POINT_SIZE Constant
Default Point
size
POINT_WIDTH Constant
Default Point
width
PROPORTION Constant
Default proportion of function color
RADIUS Constant
Default widget fillet radius
ROTATE_CENTER Constant
| ROTATE_CENTER: tuple = (0, 0, 0)
|
Default rotation center
SEQLENGTH Constant
Default sequence length of function color
SIDE_WIDTH Constant
Default Side
width
SIZE Constant
Default font size
SWITCH_ANIMATION_MS Constant
| SWITCH_ANIMATION_MS: int = 250
|
Default animation duration of the Switch
SWITCH_HEIGHT Constant
Default Switch
height
SWITCH_RADIUS Constant
| SWITCH_RADIUS: float = inf
|
Default Switch
radius
SWITCH_WIDTH Constant
Default Switch
width
SYSTEM Constant
Operating System
TICK Constant
Default Checkbox
symbol
TOOLTIP_BG Constant
| TOOLTIP_BG: str = 'white'
|
Default ToolTip
background color
TOOLTIP_FG Constant
| TOOLTIP_FG: str = 'black'
|
Default ToolTip
foreground color
TOOLTIP_HIGHLIGHT_BACKGROUND Constant
| TOOLTIP_HIGHLIGHT_BACKGROUND: str = 'grey'
|
Default ToolTip
highlightbackground
TOOLTIP_HIGHLIGHT_THICKNESS Constant
| TOOLTIP_HIGHLIGHT_THICKNESS: int = 1
|
Default ToolTip
highlightthickness