📄 __init__.py
字号:
# Package that manages and defines dialog resourcesdef GetImageParamsFromBitmapID(rc_parser, bmpid): import os, sys import win32gui, win32con, win32api if type(bmpid)==type(0): bmpid = rc_parser.names[bmpid] int_bmpid = rc_parser.ids[bmpid] filename = rc_parser.bitmaps[bmpid] if hasattr(sys, "frozen"): # in our .exe/.dll - load from that. if sys.frozen=="dll": hmod = sys.frozendllhandle else: hmod = win32api.GetModuleHandle(None) return hmod, int_bmpid, 0 else: # source code - load the .bmp directly. if not os.path.isabs(filename): # In this directory filename = os.path.join( os.path.dirname( __file__ ), filename) return 0, filename, win32con.LR_LOADFROMFILE assert 0, "not reached"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -