⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdwinevents.py

📁 minimal python variant for small footprint apps like embedded apps
💻 PY
字号:
# Module 'stdwinevents' -- Constants for stdwin event types## Suggested usage:#	from stdwinevents import *# The function stdwin.getevent() returns a tuple containing:#	(type, window, detail)# where detail may be <no value> or a value depending on type, see below:# Values for type:WE_NULL       =  0	# not reported -- means 'no event' internallyWE_ACTIVATE   =  1	# detail is NoneWE_CHAR       =  2	# detail is the characterWE_COMMAND    =  3	# detail is one of the WC_* constants belowWE_MOUSE_DOWN =  4	# detail is ((h, v), clicks, button, mask)WE_MOUSE_MOVE =  5	# dittoWE_MOUSE_UP   =  6	# dittoWE_MENU       =  7	# detail is (menu, item)WE_SIZE       =  8	# detail is (width, height)WE_MOVE       =  9	# not reported -- reserved for future useWE_DRAW       = 10	# detail is ((left, top), (right, bottom))WE_TIMER      = 11	# detail is NoneWE_DEACTIVATE = 12	# detail is NoneWE_EXTERN     = 13	# detail is NoneWE_KEY        = 14	# detail is ???WE_LOST_SEL   = 15	# detail is selection numberWE_CLOSE      = 16	# detail is None# Values for detail when type is WE_COMMAND:WC_CLOSE      =  1	# obsolete; now reported as WE_CLOSEWC_LEFT       =  2	# left arrow keyWC_RIGHT      =  3	# right arrow keyWC_UP         =  4	# up arrow keyWC_DOWN       =  5	# down arrow keyWC_CANCEL     =  6	# not reported -- turned into KeyboardInterruptWC_BACKSPACE  =  7	# backspace keyWC_TAB        =  8	# tab keyWC_RETURN     =  9	# return or enter key# Selection numbersWS_CLIPBOARD   = 0WS_PRIMARY     = 1WS_SECONDARY   = 2# Modifier masks in key and mouse eventsWM_SHIFT       = (1 << 0)WM_LOCK 	= (1 << 1)WM_CONTROL 	= (1 << 2)WM_META 	= (1 << 3)WM_OPTION 	= (1 << 4)WM_NUM 		= (1 << 5)WM_BUTTON1 	= (1 << 8)WM_BUTTON2 	= (1 << 9)WM_BUTTON3 	= (1 << 10)WM_BUTTON4 	= (1 << 11)WM_BUTTON5 	= (1 << 12)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -