__init__.py
来自「用python实现的邮件过滤器」· Python 代码 · 共 24 行
PY
24 行
# 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 + =
减小字号Ctrl + -
显示快捷键?