From 6b3140124082c36259c0ebfcf242e5817c262191 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 4 Jan 2024 17:29:01 +0800 Subject: [PATCH] add bme struct. fix bmap type hint --- bbp_ng/PyBMap/bmap.py | 8 ++++---- bbp_ng/raw_icons/bme/RibbonInnerCorner.png | Bin 0 -> 14344 bytes bbp_ng/raw_jsons/borders.json | Bin 10062 -> 9856 bytes bbp_ng/raw_jsons/corners.json | Bin 0 -> 14399 bytes 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 bbp_ng/raw_icons/bme/RibbonInnerCorner.png create mode 100644 bbp_ng/raw_jsons/corners.json diff --git a/bbp_ng/PyBMap/bmap.py b/bbp_ng/PyBMap/bmap.py index 4ecce82..5926c8b 100644 --- a/bbp_ng/PyBMap/bmap.py +++ b/bbp_ng/PyBMap/bmap.py @@ -1,4 +1,4 @@ -import ctypes, os, sys +import ctypes, os, sys, typing #region Type Defines @@ -89,15 +89,15 @@ except: def is_bmap_available() -> bool: return _g_BMapModule is not None -def _bmap_error_check(result: bm_bool, func, args): +def _bmap_error_check(result: bool, func, args): if not result: raise BMapException("BMap operation failed.") return result -def _create_bmap_func(fct_name: str, fct_params: list[ctypes._SimpleCData]) -> ctypes._CFuncPtr: +def _create_bmap_func(fct_name: str, fct_params: list[typing.Any]) -> typing.Callable[..., bm_bool]: if _g_BMapModule is None: return None - cache: ctypes._CFuncPtr = getattr(_g_BMapModule, fct_name) + cache: typing.Callable[..., bm_bool] = getattr(_g_BMapModule, fct_name) cache.argtypes = fct_params cache.restype = bm_bool cache.errcheck = _bmap_error_check diff --git a/bbp_ng/raw_icons/bme/RibbonInnerCorner.png b/bbp_ng/raw_icons/bme/RibbonInnerCorner.png new file mode 100644 index 0000000000000000000000000000000000000000..25dc7411a5c529e2054117f056ca43c722de2fb3 GIT binary patch literal 14344 zcmdU01yohrx&{P+jTj)^Qc?mt*|Z1<(v6hlrn{sO2}x2k(jXup zZ*4r@qvxLY?!9l^@!ma?vF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QS2XVZuwk^9D(L%ubY)|sW?NqTofmfM-CAZ&Z&oC^=+`s1 zg{=0GTUG|*7UAVCWOVK3v7_wV&9u+N3F_XeE}}{gc41#-ja@IXtXJKzLEH-WIzd0$ z!Qxcnn0HQlEx4CjBZcGZUE5z!vi49Cn+fb&)J$5z`6fBl#V)mGk2=H=!9R&#@(PP+ zh#yIm_~m?9FPR#*#<<5^J5^D_fxjVj9BMinZStU&^}TcGG5W=MJ2T%e2ZSDpAJy;+ zo*r!9@oS~-3mbL)nDBu%*8up9|IjL}<*P-KlGbqmuEB=#EA7#0DyOry zOW2!lFR~y8F5_226JUFo^% zGtVD2PG1h4oFKer$OT$WjauD(=Z{^& z%2}`DVXC)D&wrFejl3w{db5dez1rr)Z}rys8HWiZlgr8ZttoYhMRSkUbFRwuRc_A< z)iqVpj3P>Q^9+hQsdo>zY+1m`GD(@+SrfFLER#*PZc8J%zfpZAb>Ms-|S zbsz}}&IEln4MY`@87wg%^<*auwg@(OcD~XRQ4EPF374*%JK!#R8242&kL_sT{Bs!g zmT+{7&nL6g7X(a%BSrX^OF9>gOR(Ol)g`bMPDNR)R957PuBI} zXEeAec^zgs#Gz@W+d$FrSt-NvlEP^8c=3*e_nP+SxHHO&)04hy9?q(_boCBmm>+y~4NzmKFz^)_Ok6A+n=8Ck z1I@Z6Q@y2oe5lM#L=h45K4||CNtbGDTSOdOb{tFJ@U3a_0>f@DZQHw8z*No yK_wzJpPSmxXW2PkV88>b_S-Z#_OG8{YfxQYrYU-z2K@UMmaLSbWVwW4z<&XxV~_y= literal 0 HcmV?d00001 diff --git a/bbp_ng/raw_jsons/borders.json b/bbp_ng/raw_jsons/borders.json index 02feca45ce977876dc384aa8b6e0793b007e9ea4..0b36e919af5cc178ee907cacb487025e8aec677c 100644 GIT binary patch delta 171 zcmX@-*WkOshH3LoCS9h<-khA1_ppgiV)a2Vc_tUJx*@onlW((nAamW=W_W1CD7oe2 z=NE diff --git a/bbp_ng/raw_jsons/corners.json b/bbp_ng/raw_jsons/corners.json new file mode 100644 index 0000000000000000000000000000000000000000..e7d351ceb2182f6a1817d0d0b36509de357418ce GIT binary patch literal 14399 zcmeHN+iv4F5Pe@@|AFO`T{wo5tTcCT7%WL+`=hIDOD5<%i1WseaUUFraz)6M56*16eKG& zN>Ym02_D1o7!j5bs8{Y?e7-o)7v;tPUhs%)ca3n3W)Ke9YtiX+K1Sc8(OGdxpf0YR z_L>bmF0CF-=MJBa+pMKt+~9L4k5}pAc^uFi>>OD0UvY=TZy?jC~l-kqLJ=dac+ z@B2j6jTad&i?HanKFl@f1BL@bFSDMN;12U3N>(!a*eFifK+IyU_-4Cvc&V1a>;RhRleXbP#j7AtR1-Um1QFxSbK& z!UP0INlt^La~Y}I9^~wTYv!u;oT8i`+?1ns42}gn$FbNQH0~3)VN8;Hx`s6*tEw)a zxD{L8#3ZC*b;xYhlt$mZXA8Z$Y+|=%uuG}CPe&Pgfy17Pa1PTfNb-=?9dMJ!bYv%| zeV-#PwVSo>Xq2&(j0MkjxQ+Fw)>Bd#Is|<8{AWYqey87b=*XL+a@4=pij&-K zMe-#K_-aj%01c%fx{K50!?f0g6$yiFOyRz&unEmdSmC=oS_clB!Vbf(kwT#xtVVs_ zWF^P^*P75Z%Y}82qdeUZE-mDphJC2s3SK_zSpYwc^{yEtm@j>3n10lhk&x|w=wKnqcc_J>V?yixhWi#EU z2BA=m(k-Q=?M*OiZ>FV$LN@xHH_}Zv61HAAlE}+Xvpjm?h`p#+dTY=4VGE}aKtn%) zpI$aE3rF230Zct1RF?x##5^J3@;1TXfD$`+LV$GP zhrxrT3SXkeMZ)DYNQ4@YCgEumW$hiv57v(c3q-{{zvryG;N9 literal 0 HcmV?d00001