mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 04:16:44 +08:00
Various pywin32 improvements (#11616)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete, Unused
|
||||
from _typeshed import Incomplete, OptExcInfo, Unused
|
||||
from collections.abc import Callable
|
||||
|
||||
import _win32typing
|
||||
|
||||
@@ -70,10 +71,12 @@ def CreateRichEditDocTemplate(idRes, /) -> _win32typing.PyCRichEditDocTemplate:
|
||||
def CreateRichEditView(doc: _win32typing.PyCDocument | None = ..., /) -> _win32typing.PyCRichEditView: ...
|
||||
def CreateSliderCtrl() -> _win32typing.PyCSliderCtrl: ...
|
||||
def CreateSplitter() -> _win32typing.PyCSplitterWnd: ...
|
||||
def CreateStatusBar(parent: _win32typing.PyCWnd, arg, arg1, ctrlStype=..., /) -> _win32typing.PyCStatusBar: ...
|
||||
def CreateStatusBar(
|
||||
parent: _win32typing.PyCWnd, style: int = ..., windowId: int = ..., ctrlStype: int = ..., /
|
||||
) -> _win32typing.PyCStatusBar: ...
|
||||
def CreateStatusBarCtrl() -> _win32typing.PyCStatusBarCtrl: ...
|
||||
def CreateFont(properties, /) -> _win32typing.PyCFont: ...
|
||||
def CreateToolBar(parent: _win32typing.PyCWnd, style, arg, /) -> _win32typing.PyCToolBar: ...
|
||||
def CreateToolBar(parent: _win32typing.PyCWnd, style: int, windowId: int = ..., /) -> _win32typing.PyCToolBar: ...
|
||||
def CreateToolBarCtrl() -> _win32typing.PyCToolBarCtrl: ...
|
||||
def CreateToolTipCtrl() -> _win32typing.PyCToolTipCtrl: ...
|
||||
def CreateThread() -> _win32typing.PyCWinThread: ...
|
||||
@@ -84,7 +87,7 @@ def CreateWindowFromHandle(hwnd: int, /) -> _win32typing.PyCWnd: ...
|
||||
def CreateWnd() -> _win32typing.PyCWnd: ...
|
||||
def DestroyDebuggerThread() -> None: ...
|
||||
def DoWaitCursor(code, /) -> None: ...
|
||||
def DisplayTraceback() -> None: ...
|
||||
def DisplayTraceback(exc_info: OptExcInfo, title: str, /) -> None: ...
|
||||
def Enable3dControls(): ...
|
||||
def FindWindow(className: str, windowName: str, /) -> _win32typing.PyCWnd: ...
|
||||
def FindWindowEx(
|
||||
@@ -111,16 +114,16 @@ def GetResource() -> _win32typing.PyDLL: ...
|
||||
def GetThread() -> _win32typing.PyCWinApp: ...
|
||||
def GetType(): ...
|
||||
def InitRichEdit() -> str: ...
|
||||
def InstallCallbackCaller(): ...
|
||||
def InstallCallbackCaller(caller: Callable[..., Incomplete] | None): ...
|
||||
def IsDebug() -> int: ...
|
||||
def IsWin32s() -> int: ...
|
||||
def IsObject(o: object, /) -> bool: ...
|
||||
def LoadDialogResource(idRes, dll: _win32typing.PyDLL | None = ..., /): ...
|
||||
def LoadLibrary(fileName: str, /) -> _win32typing.PyDLL: ...
|
||||
def LoadMenu(_id, dll: _win32typing.PyDLL | None = ..., /) -> _win32typing.PyCMenu: ...
|
||||
def LoadStdProfileSettings(maxFiles, /) -> None: ...
|
||||
def LoadStdProfileSettings(maxFiles: int = ..., /) -> None: ...
|
||||
def LoadString(stringId, /) -> str: ...
|
||||
def MessageBox(message: str, arg, title: str | None = ..., /): ...
|
||||
def MessageBox(message: str, title: str | None = ..., style=..., /): ...
|
||||
def OutputDebugString(msg: str, /) -> None: ...
|
||||
def EnableControlContainer(): ...
|
||||
def PrintTraceback(tb, output, /) -> None: ...
|
||||
@@ -131,7 +134,7 @@ def SetAppHelpPath(): ...
|
||||
def SetAppName(appName: str, /): ...
|
||||
def SetCurrentInstanceHandle(newVal, /): ...
|
||||
def SetCurrentResourceHandle(newVal, /): ...
|
||||
def SetDialogBkColor(arg, arg1, /): ...
|
||||
def SetDialogBkColor(clrCtlBk: int = ..., clrCtlText: int = ..., /) -> None: ...
|
||||
def SetProfileFileName(filename: str, /) -> None: ...
|
||||
def SetRegistryKey(key: str, /) -> None: ...
|
||||
def SetResource(dll, /) -> _win32typing.PyDLL: ...
|
||||
|
||||
@@ -5,7 +5,7 @@ def CreateInsertDialog() -> _win32typing.PyCOleInsertDialog: ...
|
||||
def CreateOleClientItem() -> _win32typing.PyCOleClientItem: ...
|
||||
def CreateOleDocument(template: _win32typing.PyCDocTemplate, fileName: str | None = ..., /) -> _win32typing.PyCOleDocument: ...
|
||||
def DaoGetEngine() -> _win32typing.PyIDispatch: ...
|
||||
def GetIDispatchForWindow() -> _win32typing.PyIDispatch: ...
|
||||
def GetIDispatchForWindow(Wnd, /) -> _win32typing.PyIDispatch: ...
|
||||
def OleGetUserCtrl(): ...
|
||||
def OleSetUserCtrl(bUserCtrl, /): ...
|
||||
def SetMessagePendingDelay(delay, /) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user