-
Notifications
You must be signed in to change notification settings - Fork 550
Improve type stubs #2776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Improve type stubs #2776
Conversation
Diff of changes in `core.pyi` for example (very long!)--- wx_old/core.pyi 2025-07-24 04:24:54.717307698 +0200
+++ wx_new/core.pyi 2025-07-24 04:55:47.737796704 +0200
@@ -4684,7 +4684,7 @@
"""
@staticmethod
- def GetFromPoint(pt: Point) -> int:
+ def GetFromPoint(pt: Union[Point, _TwoInts]) -> int:
"""
GetFromPoint(pt) -> int
@@ -7325,21 +7325,21 @@
from the currently selected printer properties (Windows only).
"""
- def SetMarginBottomRight(self, pt: Point) -> None:
+ def SetMarginBottomRight(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetMarginBottomRight(pt) -> None
Sets the right (x) and bottom (y) margins in millimetres.
"""
- def SetMarginTopLeft(self, pt: Point) -> None:
+ def SetMarginTopLeft(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetMarginTopLeft(pt) -> None
Sets the left (x) and top (y) margins in millimetres.
"""
- def SetMinMarginBottomRight(self, pt: Point) -> None:
+ def SetMinMarginBottomRight(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetMinMarginBottomRight(pt) -> None
@@ -7347,7 +7347,7 @@
(Windows only).
"""
- def SetMinMarginTopLeft(self, pt: Point) -> None:
+ def SetMinMarginTopLeft(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetMinMarginTopLeft(pt) -> None
@@ -7362,7 +7362,7 @@
Sets the paper size id.
"""
- def SetPaperSize(self, size: Size) -> None:
+ def SetPaperSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetPaperSize(size) -> None
@@ -7388,19 +7388,19 @@
@property
def MarginBottomRight(self) -> Point: ...
@MarginBottomRight.setter
- def MarginBottomRight(self, value: Point, /) -> None: ...
+ def MarginBottomRight(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def MarginTopLeft(self) -> Point: ...
@MarginTopLeft.setter
- def MarginTopLeft(self, value: Point, /) -> None: ...
+ def MarginTopLeft(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def MinMarginBottomRight(self) -> Point: ...
@MinMarginBottomRight.setter
- def MinMarginBottomRight(self, value: Point, /) -> None: ...
+ def MinMarginBottomRight(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def MinMarginTopLeft(self) -> Point: ...
@MinMarginTopLeft.setter
- def MinMarginTopLeft(self, value: Point, /) -> None: ...
+ def MinMarginTopLeft(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def PaperId(self) -> PaperSize: ...
@PaperId.setter
@@ -7408,7 +7408,7 @@
@property
def PaperSize(self) -> Size: ...
@PaperSize.setter
- def PaperSize(self, value: Size, /) -> None: ...
+ def PaperSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def PrintData(self) -> PrintData: ...
@PrintData.setter
@@ -7559,11 +7559,11 @@
"""
@overload
- def SetPaperSize(self, sz: Size) -> None:
+ def SetPaperSize(self, sz: Union[Size, _TwoInts]) -> None:
...
@overload
- def SetPaperSize(self, size: Size) -> None:
+ def SetPaperSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetPaperSize(size) -> None
SetPaperSize(sz) -> None
@@ -7664,7 +7664,7 @@
@property
def PaperSize(self) -> Size: ...
@PaperSize.setter
- def PaperSize(self, value: Size, /) -> None: ...
+ def PaperSize(self, value: Union[Union[Size, _TwoInts], Union[Size, _TwoInts]], /) -> None: ...
@property
def PrintMode(self) -> PrintMode: ...
@PrintMode.setter
@@ -8828,11 +8828,11 @@
@Bottom.setter
def Bottom(self, value: int, /) -> None: ...
@property
- def BottomLeft(self) -> Union[Point, _TwoInts]: ...
+ def BottomLeft(self) -> Point: ...
@BottomLeft.setter
def BottomLeft(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
- def BottomRight(self) -> Union[Point, _TwoInts]: ...
+ def BottomRight(self) -> Point: ...
@BottomRight.setter
def BottomRight(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
@@ -8844,7 +8844,7 @@
@Left.setter
def Left(self, value: int, /) -> None: ...
@property
- def Position(self) -> Union[Point, _TwoInts]: ...
+ def Position(self) -> Point: ...
@Position.setter
def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
@@ -8852,7 +8852,7 @@
@Right.setter
def Right(self, value: int, /) -> None: ...
@property
- def Size(self) -> Union[Size, _TwoInts]: ...
+ def Size(self) -> Size: ...
@Size.setter
def Size(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
@@ -8860,11 +8860,11 @@
@Top.setter
def Top(self, value: int, /) -> None: ...
@property
- def TopLeft(self) -> Union[Point, _TwoInts]: ...
+ def TopLeft(self) -> Point: ...
@TopLeft.setter
def TopLeft(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
- def TopRight(self) -> Union[Point, _TwoInts]: ...
+ def TopRight(self) -> Point: ...
@TopRight.setter
def TopRight(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
@@ -8896,19 +8896,19 @@
@bottom.setter
def bottom(self, value: int, /) -> None: ...
@property
- def bottomLeft(self) -> Union[Point, _TwoInts]: ...
+ def bottomLeft(self) -> Point: ...
@bottomLeft.setter
def bottomLeft(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
- def bottomRight(self) -> Union[Point, _TwoInts]: ...
+ def bottomRight(self) -> Point: ...
@bottomRight.setter
def bottomRight(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
- def topLeft(self) -> Union[Point, _TwoInts]: ...
+ def topLeft(self) -> Point: ...
@topLeft.setter
def topLeft(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
- def topRight(self) -> Union[Point, _TwoInts]: ...
+ def topRight(self) -> Point: ...
@topRight.setter
def topRight(self, value: Union[Point, _TwoInts], /) -> None: ...
@@ -9121,7 +9121,7 @@
predefined set of named colours.
"""
- def AddColour(self, colourName: str, colour: Colour) -> None:
+ def AddColour(self, colourName: str, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
AddColour(colourName, colour) -> None
@@ -9135,7 +9135,7 @@
Finds a colour given the name.
"""
- def FindName(self, colour: Colour) -> str:
+ def FindName(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> str:
"""
FindName(colour) -> str
@@ -9269,7 +9269,7 @@
...
@overload
- def __init__(self, pt: Point) -> None:
+ def __init__(self, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -10130,7 +10130,7 @@
"""
@overload
- def __iadd__(self, size: Size) -> Position:
+ def __iadd__(self, size: Union[Size, _TwoInts]) -> Position:
...
@overload
@@ -10139,7 +10139,7 @@
"""
@overload
- def __isub__(self, size: Size) -> Position:
+ def __isub__(self, size: Union[Size, _TwoInts]) -> Position:
...
@overload
@@ -10148,7 +10148,7 @@
"""
@overload
- def __add__(self, size: Size) -> Position:
+ def __add__(self, size: Union[Size, _TwoInts]) -> Position:
...
@overload
@@ -10157,7 +10157,7 @@
"""
@overload
- def __sub__(self, size: Size) -> Position:
+ def __sub__(self, size: Union[Size, _TwoInts]) -> Position:
...
@overload
@@ -10333,30 +10333,30 @@
determine drawing colours.
"""
- def SetRGB(self, colRGB: Uint32) -> None:
+ def SetRGB(self, colRGB: int) -> None:
"""
SetRGB(colRGB) -> None
Sets the RGB or RGBA colour values from a single 32 bit value.
"""
- def SetRGBA(self, colRGBA: Uint32) -> None:
+ def SetRGBA(self, colRGBA: int) -> None:
"""
SetRGBA(colRGBA) -> None
Sets the RGB or RGBA colour values from a single 32 bit value.
"""
- def GetRGB(self) -> Uint32:
+ def GetRGB(self) -> int:
"""
- GetRGB() -> Uint32
+ GetRGB() -> int
Gets the RGB or RGBA colour values as a single 32 bit value.
"""
- def GetRGBA(self) -> Uint32:
+ def GetRGBA(self) -> int:
"""
- GetRGBA() -> Uint32
+ GetRGBA() -> int
Gets the RGB or RGBA colour values as a single 32 bit value.
"""
@@ -10541,13 +10541,13 @@
@property
def Pixel(self) -> IntPtr: ...
@property
- def RGB(self) -> Uint32: ...
+ def RGB(self) -> int: ...
@RGB.setter
- def RGB(self, value: Uint32, /) -> None: ...
+ def RGB(self, value: int, /) -> None: ...
@property
- def RGBA(self) -> Uint32: ...
+ def RGBA(self) -> int: ...
@RGBA.setter
- def RGBA(self, value: Uint32, /) -> None: ...
+ def RGBA(self, value: int, /) -> None: ...
@property
def red(self) -> int: ...
@property
@@ -11128,7 +11128,7 @@
This class represents a single file opened by wxFileSystem.
"""
- def __init__(self, stream: InputStream, location: str, mimetype: str, anchor: str, modif: DateTime) -> None:
+ def __init__(self, stream: InputStream, location: str, mimetype: str, anchor: str, modif: Union[DateTime, datetime, date]) -> None:
"""
FSFile(stream, location, mimetype, anchor, modif) -> None
@@ -11531,7 +11531,7 @@
...
@overload
- def __init__(self, sz: Size, clear: bool=True) -> None:
+ def __init__(self, sz: Union[Size, _TwoInts], clear: bool=True) -> None:
...
@overload
@@ -11559,11 +11559,11 @@
...
@overload
- def __init__(self, size: Size, data: PyBuffer) -> None:
+ def __init__(self, size: Union[Size, _TwoInts], data: PyBuffer) -> None:
...
@overload
- def __init__(self, size: Size, data: PyBuffer, alpha: PyBuffer) -> None:
+ def __init__(self, size: Union[Size, _TwoInts], data: PyBuffer, alpha: PyBuffer) -> None:
...
@overload
@@ -11592,7 +11592,7 @@
"""
@overload
- def Create(self, sz: Size, clear: bool=True) -> bool:
+ def Create(self, sz: Union[Size, _TwoInts], clear: bool=True) -> bool:
...
@overload
@@ -11604,11 +11604,11 @@
...
@overload
- def Create(self, size: Size, data: PyBuffer) -> bool:
+ def Create(self, size: Union[Size, _TwoInts], data: PyBuffer) -> bool:
...
@overload
- def Create(self, size: Size, data: PyBuffer, alpha: PyBuffer) -> bool:
+ def Create(self, size: Union[Size, _TwoInts], data: PyBuffer, alpha: PyBuffer) -> bool:
...
@overload
@@ -11697,7 +11697,7 @@
this function,the image will have the given width and height.
"""
- def Resize(self, size: Size, pos: Point, red: int=-1, green: int=-1, blue: int=-1) -> Image:
+ def Resize(self, size: Union[Size, _TwoInts], pos: Union[Point, _TwoInts], red: int=-1, green: int=-1, blue: int=-1) -> Image:
"""
Resize(size, pos, red=-1, green=-1, blue=-1) -> Image
@@ -11705,7 +11705,7 @@
either a border with the given colour or cropping as necessary.
"""
- def Rotate(self, angle: float, rotationCentre: Point, interpolating: bool=True, offsetAfterRotation: Optional[Point]=None) -> Image:
+ def Rotate(self, angle: float, rotationCentre: Union[Point, _TwoInts], interpolating: bool=True, offsetAfterRotation: Optional[Union[Point, _TwoInts]]=None) -> Image:
"""
Rotate(angle, rotationCentre, interpolating=True, offsetAfterRotation=None) -> Image
@@ -11765,7 +11765,7 @@
Returns a scaled version of the image.
"""
- def Size(self, size: Size, pos: Point, red: int=-1, green: int=-1, blue: int=-1) -> Image:
+ def Size(self, size: Union[Size, _TwoInts], pos: Union[Point, _TwoInts], red: int=-1, green: int=-1, blue: int=-1) -> Image:
"""
Size(size, pos, red=-1, green=-1, blue=-1) -> Image
@@ -11946,7 +11946,7 @@
Returns the palette associated with the image.
"""
- def GetSubImage(self, rect: Rect) -> Image:
+ def GetSubImage(self, rect: Union[Rect, _FourInts]) -> Image:
"""
GetSubImage(rect) -> Image
@@ -12134,7 +12134,7 @@
"""
@overload
- def SetRGB(self, rect: Rect, red: int, green: int, blue: int) -> None:
+ def SetRGB(self, rect: Union[Rect, _FourInts], red: int, green: int, blue: int) -> None:
...
@overload
@@ -13119,7 +13119,7 @@
...
@overload
- def __init__(self, sz: Size, depth: int=BITMAP_SCREEN_DEPTH) -> None:
+ def __init__(self, sz: Union[Size, _TwoInts], depth: int=BITMAP_SCREEN_DEPTH) -> None:
...
@overload
@@ -13182,7 +13182,7 @@
"""
@overload
- def Create(self, sz: Size, depth: int=BITMAP_SCREEN_DEPTH) -> bool:
+ def Create(self, sz: Union[Size, _TwoInts], depth: int=BITMAP_SCREEN_DEPTH) -> bool:
...
@overload
@@ -13204,7 +13204,7 @@
...
@overload
- def CreateWithDIPSize(self, size: Size, scale: float, depth: int=BITMAP_SCREEN_DEPTH) -> bool:
+ def CreateWithDIPSize(self, size: Union[Size, _TwoInts], scale: float, depth: int=BITMAP_SCREEN_DEPTH) -> bool:
"""
CreateWithDIPSize(size, scale, depth=BITMAP_SCREEN_DEPTH) -> bool
CreateWithDIPSize(width, height, scale, depth=BITMAP_SCREEN_DEPTH) -> bool
@@ -13278,7 +13278,7 @@
file or set for the bitmap.
"""
- def GetSubBitmap(self, rect: Rect) -> Bitmap:
+ def GetSubBitmap(self, rect: Union[Rect, _FourInts]) -> Bitmap:
"""
GetSubBitmap(rect) -> Bitmap
@@ -13415,14 +13415,14 @@
"""
@staticmethod
- def Rescale(bmp: Bitmap, sizeNeeded: Size) -> None:
+ def Rescale(bmp: Bitmap, sizeNeeded: Union[Size, _TwoInts]) -> None:
"""
Rescale(bmp, sizeNeeded) -> None
Rescale the given bitmap to the requested size.
"""
- def SetMaskColour(self, colour: Colour) -> None:
+ def SetMaskColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetMaskColour(colour) -> None
@@ -13454,7 +13454,7 @@
MSW-only method to set the windows handle for the bitmap.
"""
- def SetSize(self, size: Size) -> None:
+ def SetSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetSize(size) -> None
@@ -13617,7 +13617,7 @@
@property
def Size(self) -> Size: ...
@Size.setter
- def Size(self, value: Size, /) -> None: ...
+ def Size(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def Width(self) -> int: ...
@Width.setter
@@ -13645,7 +13645,7 @@
...
@overload
- def __init__(self, bitmap: Bitmap, colour: Colour) -> None:
+ def __init__(self, bitmap: Bitmap, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
...
@overload
@@ -13794,7 +13794,7 @@
scaling factor used by the given window in logical size.
"""
- def GetBitmap(self, size: Size) -> Bitmap:
+ def GetBitmap(self, size: Union[Size, _TwoInts]) -> Bitmap:
"""
GetBitmap(size) -> Bitmap
@@ -13810,7 +13810,7 @@
given window.
"""
- def GetIcon(self, size: Size) -> Icon:
+ def GetIcon(self, size: Union[Size, _TwoInts]) -> Icon:
"""
GetIcon(size) -> Icon
@@ -13904,12 +13904,12 @@
@overload
@staticmethod
- def FromSVG(data: Byte, len: int, sizeDef: Size) -> BitmapBundle:
+ def FromSVG(data: Byte, len: int, sizeDef: Union[Size, _TwoInts]) -> BitmapBundle:
...
@overload
@staticmethod
- def FromSVG(data: str, sizeDef: Size) -> BitmapBundle:
+ def FromSVG(data: str, sizeDef: Union[Size, _TwoInts]) -> BitmapBundle:
"""
FromSVG(data, sizeDef) -> BitmapBundle
FromSVG(data, len, sizeDef) -> BitmapBundle
@@ -13919,7 +13919,7 @@
"""
@staticmethod
- def FromSVGFile(path: str, sizeDef: Size) -> BitmapBundle:
+ def FromSVGFile(path: str, sizeDef: Union[Size, _TwoInts]) -> BitmapBundle:
"""
FromSVGFile(path, sizeDef) -> BitmapBundle
@@ -13927,7 +13927,7 @@
"""
@staticmethod
- def FromSVGResource(name: str, sizeDef: Size) -> BitmapBundle:
+ def FromSVGResource(name: str, sizeDef: Union[Size, _TwoInts]) -> BitmapBundle:
"""
FromSVGResource(name, sizeDef) -> BitmapBundle
@@ -13959,7 +13959,7 @@
Return the preferred size that should be used at the given scale.
"""
- def GetBitmap(self, size: Size) -> Bitmap:
+ def GetBitmap(self, size: Union[Size, _TwoInts]) -> Bitmap:
"""
GetBitmap(size) -> Bitmap
@@ -13976,7 +13976,7 @@
classes.
"""
- def GetIndexToUpscale(self, size: Size) -> int:
+ def GetIndexToUpscale(self, size: Union[Size, _TwoInts]) -> int:
"""
GetIndexToUpscale(size) -> int
@@ -14339,7 +14339,7 @@
...
@overload
- def GetIcon(self, size: Size, flags: int=FALLBACK_SYSTEM) -> Icon:
+ def GetIcon(self, size: Union[Size, _TwoInts], flags: int=FALLBACK_SYSTEM) -> Icon:
"""
GetIcon(size, flags=FALLBACK_SYSTEM) -> Icon
GetIcon(size=DefaultCoord, flags=FALLBACK_SYSTEM) -> Icon
@@ -14347,7 +14347,7 @@
Returns the icon with the given size.
"""
- def GetIconOfExactSize(self, size: Size) -> Icon:
+ def GetIconOfExactSize(self, size: Union[Size, _TwoInts]) -> Icon:
"""
GetIconOfExactSize(size) -> Icon
@@ -14712,7 +14712,7 @@
...
@overload
- def __init__(self, pixelSize: Size) -> None:
+ def __init__(self, pixelSize: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -14855,7 +14855,7 @@
...
@overload
- def __init__(self, pixelSize: Size, family: FontFamily, style: FontStyle, weight: FontWeight, underline: bool=False, faceName: str='', encoding: FontEncoding=FONTENCODING_DEFAULT) -> None:
+ def __init__(self, pixelSize: Union[Size, _TwoInts], family: FontFamily, style: FontStyle, weight: FontWeight, underline: bool=False, faceName: str='', encoding: FontEncoding=FONTENCODING_DEFAULT) -> None:
...
@overload
@@ -15168,7 +15168,7 @@
Sets the font size in points.
"""
- def SetPixelSize(self, pixelSize: Size) -> None:
+ def SetPixelSize(self, pixelSize: Union[Size, _TwoInts]) -> None:
"""
SetPixelSize(pixelSize) -> None
@@ -15231,12 +15231,12 @@
@overload
@staticmethod
- def New(pixelSize: Size, family: FontFamily, style: FontStyle, weight: FontWeight, underline: bool=False, faceName: str='', encoding: FontEncoding=FONTENCODING_DEFAULT) -> Font:
+ def New(pixelSize: Union[Size, _TwoInts], family: FontFamily, style: FontStyle, weight: FontWeight, underline: bool=False, faceName: str='', encoding: FontEncoding=FONTENCODING_DEFAULT) -> Font:
...
@overload
@staticmethod
- def New(pixelSize: Size, family: FontFamily, flags: int=FONTFLAG_DEFAULT, faceName: str='', encoding: FontEncoding=FONTENCODING_DEFAULT) -> Font:
+ def New(pixelSize: Union[Size, _TwoInts], family: FontFamily, flags: int=FONTFLAG_DEFAULT, faceName: str='', encoding: FontEncoding=FONTENCODING_DEFAULT) -> Font:
...
@overload
@@ -15310,7 +15310,7 @@
@property
def NativeFontInfoDesc(self) -> str: ...
@NativeFontInfoDesc.setter
- def NativeFontInfoDesc(self, value: str, /) -> None: ...
+ def NativeFontInfoDesc(self, value: Union[str, NativeFontInfo], /) -> None: ...
@property
def NativeFontInfoUserDesc(self) -> str: ...
@NativeFontInfoUserDesc.setter
@@ -15322,7 +15322,7 @@
@property
def PixelSize(self) -> Size: ...
@PixelSize.setter
- def PixelSize(self, value: Size, /) -> None: ...
+ def PixelSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def Style(self) -> FontStyle: ...
@Style.setter
@@ -15617,7 +15617,7 @@
@property
def FaceName(self) -> str: ...
@FaceName.setter
- def FaceName(self, value: str, /) -> None: ...
+ def FaceName(self, value: Union[str, List[str]], /) -> None: ...
@property
def Family(self) -> FontFamily: ...
@Family.setter
@@ -15733,7 +15733,7 @@
fixed order to wxPen constructors.
"""
- def __init__(self, colour: Colour=Colour(), width: int=1, style: PenStyle=PENSTYLE_SOLID) -> None:
+ def __init__(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=Colour(), width: int=1, style: PenStyle=PENSTYLE_SOLID) -> None:
"""
PenInfo(colour=Colour(), width=1, style=PENSTYLE_SOLID) -> None
@@ -15743,7 +15743,7 @@
fixed order to wxPen constructors.
"""
- def Colour(self, col: Colour) -> PenInfo:
+ def Colour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> PenInfo:
"""
Colour(col) -> PenInfo
"""
@@ -15851,7 +15851,7 @@
...
@overload
- def __init__(self, colour: Colour, width: int=1, style: PenStyle=PENSTYLE_SOLID) -> None:
+ def __init__(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], width: int=1, style: PenStyle=PENSTYLE_SOLID) -> None:
...
@overload
@@ -15874,7 +15874,7 @@
...
@overload
- def SetColour(self, colour: Colour) -> None:
+ def SetColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(colour) -> None
SetColour(red, green, blue) -> None
@@ -16027,7 +16027,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Dashes(self) -> List[int]: ...
@Dashes.setter
@@ -16076,7 +16076,7 @@
There is only one instance of this class: wxThePenList.
"""
- def FindOrCreatePen(self, colour: Colour, width: int=1, style: PenStyle=PENSTYLE_SOLID) -> Pen:
+ def FindOrCreatePen(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], width: int=1, style: PenStyle=PENSTYLE_SOLID) -> Pen:
"""
FindOrCreatePen(colour, width=1, style=PENSTYLE_SOLID) -> Pen
@@ -16153,7 +16153,7 @@
"""
@overload
- def __init__(self, colour: Colour, style: BrushStyle=BRUSHSTYLE_SOLID) -> None:
+ def __init__(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], style: BrushStyle=BRUSHSTYLE_SOLID) -> None:
...
@overload
@@ -16180,7 +16180,7 @@
...
@overload
- def SetColour(self, colour: Colour) -> None:
+ def SetColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(colour) -> None
SetColour(red, green, blue) -> None
@@ -16276,7 +16276,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Stipple(self) -> Bitmap: ...
@Stipple.setter
@@ -16300,7 +16300,7 @@
A brush list is a list containing all brushes which have been created.
"""
- def FindOrCreateBrush(self, colour: Colour, style: BrushStyle=BRUSHSTYLE_SOLID) -> Brush:
+ def FindOrCreateBrush(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], style: BrushStyle=BRUSHSTYLE_SOLID) -> Brush:
"""
FindOrCreateBrush(colour, style=BRUSHSTYLE_SOLID) -> Brush
@@ -16607,11 +16607,11 @@
...
@overload
- def __init__(self, topLeft: Point, bottomRight: Point) -> None:
+ def __init__(self, topLeft: Union[Point, _TwoInts], bottomRight: Union[Point, _TwoInts]) -> None:
...
@overload
- def __init__(self, rect: Rect) -> None:
+ def __init__(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -16623,7 +16623,7 @@
...
@overload
- def __init__(self, bmp: Bitmap, transColour: Colour, tolerance: int=0) -> None:
+ def __init__(self, bmp: Bitmap, transColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], tolerance: int=0) -> None:
...
@overload
@@ -16654,7 +16654,7 @@
"""
@overload
- def Offset(self, pt: Point) -> bool:
+ def Offset(self, pt: Union[Point, _TwoInts]) -> bool:
...
@overload
@@ -16675,7 +16675,7 @@
"""
@overload
- def Contains(self, pt: Point) -> RegionContain:
+ def Contains(self, pt: Union[Point, _TwoInts]) -> RegionContain:
...
@overload
@@ -16683,7 +16683,7 @@
...
@overload
- def Contains(self, rect: Rect) -> RegionContain:
+ def Contains(self, rect: Union[Rect, _FourInts]) -> RegionContain:
...
@overload
@@ -16707,7 +16707,7 @@
"""
@overload
- def Intersect(self, rect: Rect) -> bool:
+ def Intersect(self, rect: Union[Rect, _FourInts]) -> bool:
...
@overload
@@ -16745,7 +16745,7 @@
...
@overload
- def Subtract(self, rect: Rect) -> bool:
+ def Subtract(self, rect: Union[Rect, _FourInts]) -> bool:
"""
Subtract(rect) -> bool
Subtract(region) -> bool
@@ -16754,7 +16754,7 @@
"""
@overload
- def Union(self, rect: Rect) -> bool:
+ def Union(self, rect: Union[Rect, _FourInts]) -> bool:
...
@overload
@@ -16766,7 +16766,7 @@
...
@overload
- def Union(self, bmp: Bitmap, transColour: Colour, tolerance: int=0) -> bool:
+ def Union(self, bmp: Bitmap, transColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], tolerance: int=0) -> bool:
...
@overload
@@ -16783,7 +16783,7 @@
"""
@overload
- def Xor(self, rect: Rect) -> bool:
+ def Xor(self, rect: Union[Rect, _FourInts]) -> bool:
...
@overload
@@ -16979,7 +16979,7 @@
"""
@overload
- def DeviceToLogical(self, pt: Point) -> Point:
+ def DeviceToLogical(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -16994,7 +16994,7 @@
"""
@overload
- def DeviceToLogicalRel(self, dim: Size) -> Size:
+ def DeviceToLogicalRel(self, dim: Union[Size, _TwoInts]) -> Size:
...
@overload
@@ -17009,7 +17009,7 @@
"""
@overload
- def LogicalToDevice(self, pt: Point) -> Point:
+ def LogicalToDevice(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -17024,7 +17024,7 @@
"""
@overload
- def LogicalToDeviceRel(self, dim: Size) -> Size:
+ def LogicalToDeviceRel(self, dim: Union[Size, _TwoInts]) -> Size:
...
@overload
@@ -17046,7 +17046,7 @@
"""
@overload
- def DrawArc(self, ptStart: Point, ptEnd: Point, centre: Point) -> None:
+ def DrawArc(self, ptStart: Union[Point, _TwoInts], ptEnd: Union[Point, _TwoInts], centre: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -17059,7 +17059,7 @@
"""
@overload
- def DrawBitmap(self, bmp: Bitmap, pt: Point, useMask: bool=False) -> None:
+ def DrawBitmap(self, bmp: Bitmap, pt: Union[Point, _TwoInts], useMask: bool=False) -> None:
...
@overload
@@ -17072,7 +17072,7 @@
"""
@overload
- def DrawCheckMark(self, rect: Rect) -> None:
+ def DrawCheckMark(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -17085,7 +17085,7 @@
"""
@overload
- def DrawCircle(self, pt: Point, radius: int) -> None:
+ def DrawCircle(self, pt: Union[Point, _TwoInts], radius: int) -> None:
...
@overload
@@ -17098,11 +17098,11 @@
"""
@overload
- def DrawEllipse(self, pt: Point, size: Size) -> None:
+ def DrawEllipse(self, pt: Union[Point, _TwoInts], size: Union[Size, _TwoInts]) -> None:
...
@overload
- def DrawEllipse(self, rect: Rect) -> None:
+ def DrawEllipse(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -17117,7 +17117,7 @@
"""
@overload
- def DrawEllipticArc(self, pt: Point, sz: Size, sa: float, ea: float) -> None:
+ def DrawEllipticArc(self, pt: Union[Point, _TwoInts], sz: Union[Size, _TwoInts], sa: float, ea: float) -> None:
...
@overload
@@ -17130,7 +17130,7 @@
"""
@overload
- def DrawIcon(self, icon: Icon, pt: Point) -> None:
+ def DrawIcon(self, icon: Icon, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -17144,11 +17144,11 @@
"""
@overload
- def DrawLabel(self, text: str, rect: Rect, alignment: int=ALIGN_LEFT|ALIGN_TOP, indexAccel: int=-1) -> None:
+ def DrawLabel(self, text: str, rect: Union[Rect, _FourInts], alignment: int=ALIGN_LEFT|ALIGN_TOP, indexAccel: int=-1) -> None:
...
@overload
- def DrawLabel(self, text: str, bitmap: Bitmap, rect: Rect, alignment: int=ALIGN_LEFT|ALIGN_TOP, indexAccel: int=-1) -> Rect:
+ def DrawLabel(self, text: str, bitmap: Bitmap, rect: Union[Rect, _FourInts], alignment: int=ALIGN_LEFT|ALIGN_TOP, indexAccel: int=-1) -> Rect:
"""
DrawLabel(text, bitmap, rect, alignment=ALIGN_LEFT|ALIGN_TOP, indexAccel=-1) -> Rect
DrawLabel(text, rect, alignment=ALIGN_LEFT|ALIGN_TOP, indexAccel=-1) -> None
@@ -17160,7 +17160,7 @@
"""
@overload
- def DrawLine(self, pt1: Point, pt2: Point) -> None:
+ def DrawLine(self, pt1: Union[Point, _TwoInts], pt2: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -17181,7 +17181,7 @@
"""
@overload
- def DrawPoint(self, pt: Point) -> None:
+ def DrawPoint(self, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -17202,11 +17202,11 @@
"""
@overload
- def DrawRectangle(self, pt: Point, sz: Size) -> None:
+ def DrawRectangle(self, pt: Union[Point, _TwoInts], sz: Union[Size, _TwoInts]) -> None:
...
@overload
- def DrawRectangle(self, rect: Rect) -> None:
+ def DrawRectangle(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -17220,7 +17220,7 @@
"""
@overload
- def DrawRotatedText(self, text: str, point: Point, angle: float) -> None:
+ def DrawRotatedText(self, text: str, point: Union[Point, _TwoInts], angle: float) -> None:
...
@overload
@@ -17234,11 +17234,11 @@
"""
@overload
- def DrawRoundedRectangle(self, pt: Point, sz: Size, radius: float) -> None:
+ def DrawRoundedRectangle(self, pt: Union[Point, _TwoInts], sz: Union[Size, _TwoInts], radius: float) -> None:
...
@overload
- def DrawRoundedRectangle(self, rect: Rect, radius: float) -> None:
+ def DrawRoundedRectangle(self, rect: Union[Rect, _FourInts], radius: float) -> None:
...
@overload
@@ -17267,7 +17267,7 @@
"""
@overload
- def DrawText(self, text: str, pt: Point) -> None:
+ def DrawText(self, text: str, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -17281,11 +17281,11 @@
"""
@overload
- def GradientFillConcentric(self, rect: Rect, initialColour: Colour, destColour: Colour, circleCenter: Point) -> None:
+ def GradientFillConcentric(self, rect: Union[Rect, _FourInts], initialColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], destColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], circleCenter: Union[Point, _TwoInts]) -> None:
...
@overload
- def GradientFillConcentric(self, rect: Rect, initialColour: Colour, destColour: Colour) -> None:
+ def GradientFillConcentric(self, rect: Union[Rect, _FourInts], initialColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], destColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
GradientFillConcentric(rect, initialColour, destColour) -> None
GradientFillConcentric(rect, initialColour, destColour, circleCenter) -> None
@@ -17295,7 +17295,7 @@
the circle outside.
"""
- def GradientFillLinear(self, rect: Rect, initialColour: Colour, destColour: Colour, nDirection: Direction=RIGHT) -> None:
+ def GradientFillLinear(self, rect: Union[Rect, _FourInts], initialColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], destColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], nDirection: Direction=RIGHT) -> None:
"""
GradientFillLinear(rect, initialColour, destColour, nDirection=RIGHT) -> None
@@ -17304,11 +17304,11 @@
"""
@overload
- def FloodFill(self, pt: Point, col: Colour, style: FloodFillStyle=FLOOD_SURFACE) -> bool:
+ def FloodFill(self, pt: Union[Point, _TwoInts], col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], style: FloodFillStyle=FLOOD_SURFACE) -> bool:
...
@overload
- def FloodFill(self, x: int, y: int, colour: Colour, style: FloodFillStyle=FLOOD_SURFACE) -> bool:
+ def FloodFill(self, x: int, y: int, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], style: FloodFillStyle=FLOOD_SURFACE) -> bool:
"""
FloodFill(x, y, colour, style=FLOOD_SURFACE) -> bool
FloodFill(pt, col, style=FLOOD_SURFACE) -> bool
@@ -17318,7 +17318,7 @@
"""
@overload
- def CrossHair(self, pt: Point) -> None:
+ def CrossHair(self, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -17346,11 +17346,11 @@
"""
@overload
- def SetClippingRegion(self, pt: Point, sz: Size) -> None:
+ def SetClippingRegion(self, pt: Union[Point, _TwoInts], sz: Union[Size, _TwoInts]) -> None:
...
@overload
- def SetClippingRegion(self, rect: Rect) -> None:
+ def SetClippingRegion(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -17465,14 +17465,14 @@
Sets the current font for the DC.
"""
- def SetTextBackground(self, colour: Colour) -> None:
+ def SetTextBackground(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextBackground(colour) -> None
Sets the current text background colour for the DC.
"""
- def SetTextForeground(self, colour: Colour) -> None:
+ def SetTextForeground(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextForeground(colour) -> None
@@ -17733,7 +17733,7 @@
"""
@overload
- def FromDIP(self, pt: Point) -> Point:
+ def FromDIP(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -17741,7 +17741,7 @@
...
@overload
- def FromDIP(self, sz: Size) -> Size:
+ def FromDIP(self, sz: Union[Size, _TwoInts]) -> Size:
"""
FromDIP(sz) -> Size
FromDIP(pt) -> Point
@@ -17752,7 +17752,7 @@
"""
@overload
- def ToDIP(self, pt: Point) -> Point:
+ def ToDIP(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -17760,7 +17760,7 @@
...
@overload
- def ToDIP(self, sz: Size) -> Size:
+ def ToDIP(self, sz: Union[Size, _TwoInts]) -> Size:
"""
ToDIP(sz) -> Size
ToDIP(pt) -> Point
@@ -17856,7 +17856,7 @@
way.
"""
- def GetAsBitmap(self, subrect: Optional[Rect]=None) -> Bitmap:
+ def GetAsBitmap(self, subrect: Optional[Union[Rect, _FourInts]]=None) -> Bitmap:
"""
GetAsBitmap(subrect=None) -> Bitmap
@@ -18143,9 +18143,9 @@
@property
def Depth(self) -> int: ...
@property
- def DeviceOrigin(self) -> int: ...
+ def DeviceOrigin(self) -> Point: ...
@DeviceOrigin.setter
- def DeviceOrigin(self, value: int, /) -> None: ...
+ def DeviceOrigin(self, value: Point, /) -> None: ...
@property
def Font(self) -> Font: ...
@Font.setter
@@ -18191,13 +18191,13 @@
@property
def TextBackground(self) -> Colour: ...
@TextBackground.setter
- def TextBackground(self, value: Colour, /) -> None: ...
+ def TextBackground(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def TextExtent(self) -> Tuple[int, int, int, int]: ...
@property
def TextForeground(self) -> Colour: ...
@TextForeground.setter
- def TextForeground(self, value: Colour, /) -> None: ...
+ def TextForeground(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def TransformMatrix(self) -> AffineMatrix2D: ...
@TransformMatrix.setter
@@ -18216,7 +18216,7 @@
"""
@overload
- def __init__(self, dc: DC, rect: Rect) -> None:
+ def __init__(self, dc: DC, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -18317,7 +18317,7 @@
"""
@overload
- def __init__(self, dc: DC, col: Colour) -> None:
+ def __init__(self, dc: DC, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
...
@overload
@@ -18331,7 +18331,7 @@
destructor, restoring the previous one.
"""
- def Set(self, col: Colour) -> None:
+ def Set(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
Set(col) -> None
@@ -18405,7 +18405,7 @@
"""
@overload
- def __init__(self, dc: DC, col: Colour) -> None:
+ def __init__(self, dc: DC, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
...
@overload
@@ -18419,7 +18419,7 @@
destructor, restoring the previous one.
"""
- def Set(self, col: Colour) -> None:
+ def Set(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
Set(col) -> None
@@ -18587,7 +18587,7 @@
"""
@overload
- def __init__(self, dc: DC, area: Size, style: int=BUFFER_CLIENT_AREA) -> None:
+ def __init__(self, dc: DC, area: Union[Size, _TwoInts], style: int=BUFFER_CLIENT_AREA) -> None:
...
@overload
@@ -18612,7 +18612,7 @@
...
@overload
- def Init(self, dc: DC, area: Size, style: int=BUFFER_CLIENT_AREA) -> None:
+ def Init(self, dc: DC, area: Union[Size, _TwoInts], style: int=BUFFER_CLIENT_AREA) -> None:
"""
Init(dc, area, style=BUFFER_CLIENT_AREA) -> None
Init(dc, buffer=NullBitmap, style=BUFFER_CLIENT_AREA) -> None
@@ -18724,7 +18724,7 @@
@overload
@staticmethod
- def StartDrawingOnTop(rect: Optional[Rect]=None) -> bool:
+ def StartDrawingOnTop(rect: Optional[Union[Rect, _FourInts]]=None) -> bool:
...
@overload
@@ -18922,14 +18922,14 @@
Function not implemented in this DC class.
"""
- def FloodFill(self, x: int, y: int, colour: Colour, style: FloodFillStyle=FLOOD_SURFACE) -> bool:
+ def FloodFill(self, x: int, y: int, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], style: FloodFillStyle=FLOOD_SURFACE) -> bool:
"""
FloodFill(x, y, colour, style=FLOOD_SURFACE) -> bool
Function not implemented in this DC class.
"""
- def GetPixel(self, x: int, y: int, colour: Colour) -> bool:
+ def GetPixel(self, x: int, y: int, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> bool:
"""
GetPixel(x, y, colour) -> bool
@@ -19308,7 +19308,7 @@
passing them in the fixed order to wxGraphicsPen constructors.
"""
- def __init__(self, colour: Colour=Colour(), width: float=1.0, style: PenStyle=PENSTYLE_SOLID) -> None:
+ def __init__(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=Colour(), width: float=1.0, style: PenStyle=PENSTYLE_SOLID) -> None:
"""
GraphicsPenInfo(colour=Colour(), width=1.0, style=PENSTYLE_SOLID) -> None
@@ -19318,7 +19318,7 @@
passing them in the fixed order to wxGraphicsPen constructors.
"""
- def Colour(self, col: Colour) -> GraphicsPenInfo:
+ def Colour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> GraphicsPenInfo:
"""
Colour(col) -> GraphicsPenInfo
"""
@@ -19353,7 +19353,7 @@
...
@overload
- def LinearGradient(self, x1: float, y1: float, x2: float, y2: float, c1: Colour, c2: Colour, matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsPenInfo:
+ def LinearGradient(self, x1: float, y1: float, x2: float, y2: float, c1: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], c2: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsPenInfo:
"""
LinearGradient(x1, y1, x2, y2, c1, c2, matrix=NullGraphicsMatrix) -> GraphicsPenInfo
LinearGradient(x1, y1, x2, y2, stops, matrix=NullGraphicsMatrix) -> GraphicsPenInfo
@@ -19364,7 +19364,7 @@
...
@overload
- def RadialGradient(self, startX: float, startY: float, endX: float, endY: float, radius: float, oColor: Colour, cColor: Colour, matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsPenInfo:
+ def RadialGradient(self, startX: float, startY: float, endX: float, endY: float, radius: float, oColor: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], cColor: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsPenInfo:
"""
RadialGradient(startX, startY, endX, endY, radius, oColor, cColor, matrix=NullGraphicsMatrix) -> GraphicsPenInfo
RadialGradient(startX, startY, endX, endY, radius, stops, matrix=NullGraphicsMatrix) -> GraphicsPenInfo
@@ -19668,7 +19668,7 @@
...
@overload
- def CreateLinearGradientBrush(self, x1: float, y1: float, x2: float, y2: float, c1: Colour, c2: Colour, matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsBrush:
+ def CreateLinearGradientBrush(self, x1: float, y1: float, x2: float, y2: float, c1: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], c2: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsBrush:
"""
CreateLinearGradientBrush(x1, y1, x2, y2, c1, c2, matrix=NullGraphicsMatrix) -> GraphicsBrush
CreateLinearGradientBrush(x1, y1, x2, y2, stops, matrix=NullGraphicsMatrix) -> GraphicsBrush
@@ -19681,7 +19681,7 @@
...
@overload
- def CreateRadialGradientBrush(self, startX: float, startY: float, endX: float, endY: float, radius: float, oColor: Colour, cColor: Colour, matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsBrush:
+ def CreateRadialGradientBrush(self, startX: float, startY: float, endX: float, endY: float, radius: float, oColor: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], cColor: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], matrix: GraphicsMatrix=NullGraphicsMatrix) -> GraphicsBrush:
"""
CreateRadialGradientBrush(startX, startY, endX, endY, radius, oColor, cColor, matrix=NullGraphicsMatrix) -> GraphicsBrush
CreateRadialGradientBrush(startX, startY, endX, endY, radius, stops, matrix=NullGraphicsMatrix) -> GraphicsBrush
@@ -19842,11 +19842,11 @@
"""
@overload
- def CreateFont(self, sizeInPixels: float, facename: str, flags: int=FONTFLAG_DEFAULT, col: Colour=BLACK) -> GraphicsFont:
+ def CreateFont(self, sizeInPixels: float, facename: str, flags: int=FONTFLAG_DEFAULT, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK) -> GraphicsFont:
...
@overload
- def CreateFont(self, font: Font, col: Colour=BLACK) -> GraphicsFont:
+ def CreateFont(self, font: Font, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK) -> GraphicsFont:
"""
CreateFont(font, col=BLACK) -> GraphicsFont
CreateFont(sizeInPixels, facename, flags=FONTFLAG_DEFAULT, col=BLACK) -> GraphicsFont
@@ -19859,7 +19859,7 @@
...
@overload
- def SetFont(self, font: Font, colour: Colour) -> None:
+ def SetFont(self, font: Font, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetFont(font, colour) -> None
SetFont(font) -> None
@@ -20084,7 +20084,7 @@
"""
@overload
- def FromDIP(self, pt: Point) -> Point:
+ def FromDIP(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -20092,7 +20092,7 @@
...
@overload
- def FromDIP(self, sz: Size) -> Size:
+ def FromDIP(self, sz: Union[Size, _TwoInts]) -> Size:
"""
FromDIP(sz) -> Size
FromDIP(pt) -> Point
@@ -20103,7 +20103,7 @@
"""
@overload
- def ToDIP(self, pt: Point) -> Point:
+ def ToDIP(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -20111,7 +20111,7 @@
...
@overload
- def ToDIP(self, sz: Size) -> Size:
+ def ToDIP(self, sz: Union[Size, _TwoInts]) -> Size:
"""
ToDIP(sz) -> Size
ToDIP(pt) -> Point
@@ -20162,7 +20162,7 @@
represented by wxGraphicsGradientStops.
"""
- def __init__(self, col: Colour=TransparentColour, pos: float=0.) -> None:
+ def __init__(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=TransparentColour, pos: float=0.) -> None:
"""
GraphicsGradientStop(col=TransparentColour, pos=0.) -> None
@@ -20177,7 +20177,7 @@
Return the stop colour.
"""
- def SetColour(self, col: Colour) -> None:
+ def SetColour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(col) -> None
@@ -20200,7 +20200,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Position(self) -> float: ...
@Position.setter
@@ -20216,7 +20216,7 @@
CreateLinearGradientBrush and CreateRadialGradientBrush.
"""
- def __init__(self, startCol: Colour=TransparentColour, endCol: Colour=TransparentColour) -> None:
+ def __init__(self, startCol: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=TransparentColour, endCol: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=TransparentColour) -> None:
"""
GraphicsGradientStops(startCol=TransparentColour, endCol=TransparentColour) -> None
@@ -20225,7 +20225,7 @@
"""
@overload
- def Add(self, col: Colour, pos: float) -> None:
+ def Add(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], pos: float) -> None:
...
@overload
@@ -20251,7 +20251,7 @@
Returns the number of stops.
"""
- def SetStartColour(self, col: Colour) -> None:
+ def SetStartColour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetStartColour(col) -> None
@@ -20265,7 +20265,7 @@
Returns the start colour.
"""
- def SetEndColour(self, col: Colour) -> None:
+ def SetEndColour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetEndColour(col) -> None
@@ -20293,11 +20293,11 @@
@property
def EndColour(self) -> Colour: ...
@EndColour.setter
- def EndColour(self, value: Colour, /) -> None: ...
+ def EndColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def StartColour(self) -> Colour: ...
@StartColour.setter
- def StartColour(self, value: Colour, /) -> None: ...
+ def StartColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
# end of class GraphicsGradientStops
@@ -20400,7 +20400,7 @@
"""
@overload
- def AddArc(self, c: Point2D, r: float, startAngle: float, endAngle: float, clockwise: bool) -> None:
+ def AddArc(self, c: Union[Point2D, _TwoFloats], r: float, startAngle: float, endAngle: float, clockwise: bool) -> None:
...
@overload
@@ -20429,7 +20429,7 @@
"""
@overload
- def AddCurveToPoint(self, c1: Point2D, c2: Point2D, e: Point2D) -> None:
+ def AddCurveToPoint(self, c1: Union[Point2D, _TwoFloats], c2: Union[Point2D, _TwoFloats], e: Union[Point2D, _TwoFloats]) -> None:
...
@overload
@@ -20451,7 +20451,7 @@
"""
@overload
- def AddLineToPoint(self, p: Point2D) -> None:
+ def AddLineToPoint(self, p: Union[Point2D, _TwoFloats]) -> None:
...
@overload
@@ -20504,7 +20504,7 @@
...
@overload
- def Contains(self, c: Point2D, fillStyle: PolygonFillMode=ODDEVEN_RULE) -> bool:
+ def Contains(self, c: Union[Point2D, _TwoFloats], fillStyle: PolygonFillMode=ODDEVEN_RULE) -> bool:
"""
Contains(c, fillStyle=ODDEVEN_RULE) -> bool
Contains(x, y, fillStyle=ODDEVEN_RULE) -> bool
@@ -20534,7 +20534,7 @@
"""
@overload
- def MoveToPoint(self, p: Point2D) -> None:
+ def MoveToPoint(self, p: Union[Point2D, _TwoFloats]) -> None:
...
@overload
@@ -20669,11 +20669,11 @@
"""
@overload
- def CreateFont(self, sizeInPixels: float, facename: str, flags: int=FONTFLAG_DEFAULT, col: Colour=BLACK) -> GraphicsFont:
+ def CreateFont(self, sizeInPixels: float, facename: str, flags: int=FONTFLAG_DEFAULT, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK) -> GraphicsFont:
...
@overload
- def CreateFont(self, font: Font, col: Colour=BLACK) -> GraphicsFont:
+ def CreateFont(self, font: Font, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK) -> GraphicsFont:
"""
CreateFont(font, col=BLACK) -> GraphicsFont
CreateFont(sizeInPixels, facename, flags=FONTFLAG_DEFAULT, col=BLACK) -> GraphicsFont
@@ -20681,7 +20681,7 @@
Creates a native graphics font from a wxFont and a text colour.
"""
- def CreateFontAtDPI(self, font: Font, dpi: RealPoint, col: Colour=BLACK) -> GraphicsFont:
+ def CreateFontAtDPI(self, font: Font, dpi: Union[RealPoint, _TwoFloats], col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK) -> GraphicsFont:
"""
CreateFontAtDPI(font, dpi, col=BLACK) -> GraphicsFont
@@ -20845,7 +20845,7 @@
"""
@overload
- def Add(self, bitmap: Bitmap, maskColour: Colour) -> int:
+ def Add(self, bitmap: Bitmap, maskColour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> int:
...
@overload
@@ -21199,14 +21199,14 @@
First, a brief introduction to wxRendererNative and why it is needed.
"""
- def DrawCheckBox(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawCheckBox(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawCheckBox(win, dc, rect, flags=0) -> None
Draw a check box.
"""
- def DrawComboBoxDropButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawComboBoxDropButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawComboBoxDropButton(win, dc, rect, flags=0) -> None
@@ -21214,35 +21214,35 @@
window.
"""
- def DrawDropArrow(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawDropArrow(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawDropArrow(win, dc, rect, flags=0) -> None
Draw a drop down arrow that is suitable for use outside a combo box.
"""
- def DrawFocusRect(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawFocusRect(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawFocusRect(win, dc, rect, flags=0) -> None
Draw a focus rectangle using the specified rectangle.
"""
- def DrawGauge(self, win: Window, dc: DC, rect: Rect, value: int, max: int, flags: int=0) -> None:
+ def DrawGauge(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], value: int, max: int, flags: int=0) -> None:
"""
DrawGauge(win, dc, rect, value, max, flags=0) -> None
Draw a progress bar in the specified rectangle.
"""
- def DrawHeaderButton(self, win: Window, dc: DC, rect: Rect, flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
+ def DrawHeaderButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
"""
DrawHeaderButton(win, dc, rect, flags=0, sortArrow=HDR_SORT_ICON_NONE, params=None) -> int
Draw the header control button (used, for example, by wxListCtrl).
"""
- def DrawHeaderButtonContents(self, win: Window, dc: DC, rect: Rect, flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
+ def DrawHeaderButtonContents(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
"""
DrawHeaderButtonContents(win, dc, rect, flags=0, sortArrow=HDR_SORT_ICON_NONE, params=None) -> int
@@ -21250,28 +21250,28 @@
etc.).
"""
- def DrawItemSelectionRect(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawItemSelectionRect(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawItemSelectionRect(win, dc, rect, flags=0) -> None
Draw a selection rectangle underneath the text as used e.g.
"""
- def DrawItemText(self, win: Window, dc: DC, text: str, rect: Rect, align: int=ALIGN_LEFT|ALIGN_TOP, flags: int=0, ellipsizeMode: EllipsizeMode=ELLIPSIZE_END) -> None:
+ def DrawItemText(self, win: Window, dc: DC, text: str, rect: Union[Rect, _FourInts], align: int=ALIGN_LEFT|ALIGN_TOP, flags: int=0, ellipsizeMode: EllipsizeMode=ELLIPSIZE_END) -> None:
"""
DrawItemText(win, dc, text, rect, align=ALIGN_LEFT|ALIGN_TOP, flags=0, ellipsizeMode=ELLIPSIZE_END) -> None
Draw item text in the correct color based on selection status.
"""
- def DrawPushButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawPushButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawPushButton(win, dc, rect, flags=0) -> None
Draw a blank push button that looks very similar to wxButton.
"""
- def DrawCollapseButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawCollapseButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawCollapseButton(win, dc, rect, flags=0) -> None
@@ -21285,7 +21285,7 @@
Returns the size of a collapse button.
"""
- def DrawSplitterBorder(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawSplitterBorder(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawSplitterBorder(win, dc, rect, flags=0) -> None
@@ -21293,56 +21293,56 @@
sash drawn by DrawSplitterSash() blends into it well.
"""
- def DrawSplitterSash(self, win: Window, dc: DC, size: Size, position: int, orient: Orientation, flags: int=0) -> None:
+ def DrawSplitterSash(self, win: Window, dc: DC, size: Union[Size, _TwoInts], position: int, orient: Orientation, flags: int=0) -> None:
"""
DrawSplitterSash(win, dc, size, position, orient, flags=0) -> None
Draw a sash.
"""
- def DrawTreeItemButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawTreeItemButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawTreeItemButton(win, dc, rect, flags=0) -> None
Draw the expanded/collapsed icon for a tree control item.
"""
- def DrawChoice(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawChoice(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawChoice(win, dc, rect, flags=0) -> None
Draw a native wxChoice.
"""
- def DrawComboBox(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawComboBox(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawComboBox(win, dc, rect, flags=0) -> None
Draw a native wxComboBox.
"""
- def DrawTextCtrl(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawTextCtrl(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawTextCtrl(win, dc, rect, flags=0) -> None
Draw a native wxTextCtrl frame.
"""
- def DrawRadioBitmap(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawRadioBitmap(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawRadioBitmap(win, dc, rect, flags=0) -> None
Draw a native wxRadioButton bitmap.
"""
- def DrawTitleBarBitmap(self, win: Window, dc: DC, rect: Rect, button: TitleBarButton, flags: int=0) -> None:
+ def DrawTitleBarBitmap(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], button: TitleBarButton, flags: int=0) -> None:
"""
DrawTitleBarBitmap(win, dc, rect, button, flags=0) -> None
Draw a title bar button in the given state.
"""
- def DrawCheckMark(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawCheckMark(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawCheckMark(win, dc, rect, flags=0) -> None
@@ -21475,14 +21475,14 @@
all of them.
"""
- def DrawHeaderButton(self, win: Window, dc: DC, rect: Rect, flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
+ def DrawHeaderButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
"""
DrawHeaderButton(win, dc, rect, flags=0, sortArrow=HDR_SORT_ICON_NONE, params=None) -> int
Draw the header control button (used, for example, by wxListCtrl).
"""
- def DrawHeaderButtonContents(self, win: Window, dc: DC, rect: Rect, flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
+ def DrawHeaderButtonContents(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0, sortArrow: HeaderSortIconType=HDR_SORT_ICON_NONE, params: Optional[HeaderButtonParams]=None) -> int:
"""
DrawHeaderButtonContents(win, dc, rect, flags=0, sortArrow=HDR_SORT_ICON_NONE, params=None) -> int
@@ -21506,14 +21506,14 @@
button's label.
"""
- def DrawTreeItemButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawTreeItemButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawTreeItemButton(win, dc, rect, flags=0) -> None
Draw the expanded/collapsed icon for a tree control item.
"""
- def DrawSplitterBorder(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawSplitterBorder(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawSplitterBorder(win, dc, rect, flags=0) -> None
@@ -21521,14 +21521,14 @@
sash drawn by DrawSplitterSash() blends into it well.
"""
- def DrawSplitterSash(self, win: Window, dc: DC, size: Size, position: int, orient: Orientation, flags: int=0) -> None:
+ def DrawSplitterSash(self, win: Window, dc: DC, size: Union[Size, _TwoInts], position: int, orient: Orientation, flags: int=0) -> None:
"""
DrawSplitterSash(win, dc, size, position, orient, flags=0) -> None
Draw a sash.
"""
- def DrawComboBoxDropButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawComboBoxDropButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawComboBoxDropButton(win, dc, rect, flags=0) -> None
@@ -21536,21 +21536,21 @@
window.
"""
- def DrawDropArrow(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawDropArrow(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawDropArrow(win, dc, rect, flags=0) -> None
Draw a drop down arrow that is suitable for use outside a combo box.
"""
- def DrawCheckBox(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawCheckBox(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawCheckBox(win, dc, rect, flags=0) -> None
Draw a check box.
"""
- def DrawCheckMark(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawCheckMark(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawCheckMark(win, dc, rect, flags=0) -> None
@@ -21578,21 +21578,21 @@
Returns the size of the expander used in tree-like controls.
"""
- def DrawPushButton(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawPushButton(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawPushButton(win, dc, rect, flags=0) -> None
Draw a blank push button that looks very similar to wxButton.
"""
- def DrawItemSelectionRect(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawItemSelectionRect(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawItemSelectionRect(win, dc, rect, flags=0) -> None
Draw a selection rectangle underneath the text as used e.g.
"""
- def DrawFocusRect(self, win: Window, dc: DC, rect: Rect, flags: int=0) -> None:
+ def DrawFocusRect(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], flags: int=0) -> None:
"""
DrawFocusRect(win, dc, rect, flags=0) -> None
@@ -21614,7 +21614,7 @@
shared libraries implementing an older or incompatible version.
"""
- def DrawTitleBarBitmap(self, win: Window, dc: DC, rect: Rect, button: TitleBarButton, flags: int=0) -> None:
+ def DrawTitleBarBitmap(self, win: Window, dc: DC, rect: Union[Rect, _FourInts], button: TitleBarButton, flags: int=0) -> None:
"""
DrawTitleBarBitmap(win, dc, rect, button, flags=0) -> None
@@ -21732,11 +21732,11 @@
"""
@overload
- def __init__(self, bmp: Bitmap, rect: Rect) -> None:
+ def __init__(self, bmp: Bitmap, rect: Union[Rect, _FourInts]) -> None:
...
@overload
- def __init__(self, bmp: Bitmap, pt: Point, sz: Size) -> None:
+ def __init__(self, bmp: Bitmap, pt: Union[Point, _TwoInts], sz: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -21860,11 +21860,11 @@
"""
@overload
- def __init__(self, bmp: Bitmap, rect: Rect) -> None:
+ def __init__(self, bmp: Bitmap, rect: Union[Rect, _FourInts]) -> None:
...
@overload
- def __init__(self, bmp: Bitmap, pt: Point, sz: Size) -> None:
+ def __init__(self, bmp: Bitmap, pt: Union[Point, _TwoInts], sz: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -22384,7 +22384,7 @@
Returns the window associated with this object.
"""
- def HitTest(self, pt: Point, childId: int, childObject: Accessible) -> AccStatus:
+ def HitTest(self, pt: Union[Point, _TwoInts], childId: int, childObject: Accessible) -> AccStatus:
"""
HitTest(pt, childId, childObject) -> AccStatus
@@ -23612,7 +23612,7 @@
@property
def AllFormats(self) -> Any: ...
@property
- def Data(self) -> PyBuffer: ...
+ def Data(self) -> Any: ...
@Data.setter
def Data(self, value: PyBuffer, /) -> None: ...
@property
@@ -25225,7 +25225,7 @@
SetY(y) -> None
"""
- def SetPosition(self, pos: Point) -> None:
+ def SetPosition(self, pos: Union[Point, _TwoInts]) -> None:
"""
SetPosition(pos) -> None
"""
@@ -25298,7 +25298,7 @@
@property
def Position(self) -> Point: ...
@Position.setter
- def Position(self, value: Point, /) -> None: ...
+ def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
# end of class MouseState
#-- end-mousestate --#
@@ -26601,7 +26601,7 @@
application a chance to show a context (popup) menu for a wxWindow.
"""
- def __init__(self, type: EventType=wxEVT_NULL, id: int=0, pos: Point=DefaultPosition) -> None:
+ def __init__(self, type: EventType=wxEVT_NULL, id: int=0, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
"""
ContextMenuEvent(type=wxEVT_NULL, id=0, pos=DefaultPosition) -> None
@@ -26617,7 +26617,7 @@
shown.
"""
- def SetPosition(self, point: Point) -> None:
+ def SetPosition(self, point: Union[Point, _TwoInts]) -> None:
"""
SetPosition(point) -> None
@@ -26626,7 +26626,7 @@
@property
def Position(self) -> Point: ...
@Position.setter
- def Position(self, value: Point, /) -> None: ...
+ def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
# end of class ContextMenuEvent
@@ -26668,7 +26668,7 @@
Returns the new DPI.
"""
- def Scale(self, sz: Size) -> Size:
+ def Scale(self, sz: Union[Size, _TwoInts]) -> Size:
"""
Scale(sz) -> Size
@@ -26818,7 +26818,7 @@
Origin_Keyboard = _Origin.Origin_Keyboard
Origin_HelpButton = _Origin.Origin_HelpButton
- def __init__(self, type: EventType=wxEVT_NULL, winid: int=0, pt: Point=DefaultPosition, origin: HelpEvent.Origin=Origin_Unknown) -> None:
+ def __init__(self, type: EventType=wxEVT_NULL, winid: int=0, pt: Union[Point, _TwoInts]=DefaultPosition, origin: HelpEvent.Origin=Origin_Unknown) -> None:
"""
HelpEvent(type=wxEVT_NULL, winid=0, pt=DefaultPosition, origin=Origin_Unknown) -> None
@@ -26848,7 +26848,7 @@
Set the help event origin, only used internally by wxWidgets normally.
"""
- def SetPosition(self, pt: Point) -> None:
+ def SetPosition(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetPosition(pt) -> None
@@ -26857,7 +26857,7 @@
@property
def Position(self) -> Point: ...
@Position.setter
- def Position(self, value: Point, /) -> None: ...
+ def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
# end of class HelpEvent
@@ -27121,16 +27121,16 @@
is the initial key press.
"""
- def GetRawKeyCode(self) -> Uint32:
+ def GetRawKeyCode(self) -> int:
"""
- GetRawKeyCode() -> Uint32
+ GetRawKeyCode() -> int
Returns the raw key code for this event.
"""
- def GetRawKeyFlags(self) -> Uint32:
+ def GetRawKeyFlags(self) -> int:
"""
- GetRawKeyFlags() -> Uint32
+ GetRawKeyFlags() -> int
Returns the low level key flags for this event.
"""
@@ -27695,7 +27695,7 @@
A move event holds information about window position change.
"""
- def __init__(self, pt: Point, id: int=0) -> None:
+ def __init__(self, pt: Union[Point, _TwoInts], id: int=0) -> None:
"""
MoveEvent(pt, id=0) -> None
@@ -27714,23 +27714,23 @@
GetRect() -> Rect
"""
- def SetRect(self, rect: Rect) -> None:
+ def SetRect(self, rect: Union[Rect, _FourInts]) -> None:
"""
SetRect(rect) -> None
"""
- def SetPosition(self, pos: Point) -> None:
+ def SetPosition(self, pos: Union[Point, _TwoInts]) -> None:
"""
SetPosition(pos) -> None
"""
@property
def Rect(self) -> Rect: ...
@Rect.setter
- def Rect(self, value: Rect, /) -> None: ...
+ def Rect(self, value: Union[Rect, _FourInts], /) -> None: ...
@property
def Position(self) -> Point: ...
@Position.setter
- def Position(self, value: Point, /) -> None: ...
+ def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
# end of class MoveEvent
@@ -28150,7 +28150,7 @@
A size event holds information about size change events of wxWindow.
"""
- def __init__(self, sz: Size, id: int=0) -> None:
+ def __init__(self, sz: Union[Size, _TwoInts], id: int=0) -> None:
"""
SizeEvent(sz, id=0) -> None
@@ -28165,7 +28165,7 @@
event.
"""
- def SetSize(self, size: Size) -> None:
+ def SetSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetSize(size) -> None
"""
@@ -28175,18 +28175,18 @@
GetRect() -> Rect
"""
- def SetRect(self, rect: Rect) -> None:
+ def SetRect(self, rect: Union[Rect, _FourInts]) -> None:
"""
SetRect(rect) -> None
"""
@property
def Rect(self) -> Rect: ...
@Rect.setter
- def Rect(self, value: Rect, /) -> None: ...
+ def Rect(self, value: Union[Rect, _FourInts], /) -> None: ...
@property
def Size(self) -> Size: ...
@Size.setter
- def Size(self, value: Size, /) -> None: ...
+ def Size(self, value: Union[Size, _TwoInts], /) -> None: ...
# end of class SizeEvent
@@ -28482,7 +28482,7 @@
Returns true if the event was the last in a gesture sequence.
"""
- def SetPosition(self, pos: Point) -> None:
+ def SetPosition(self, pos: Union[Point, _TwoInts]) -> None:
"""
SetPosition(pos) -> None
@@ -28507,7 +28507,7 @@
@property
def Position(self) -> Point: ...
@Position.setter
- def Position(self, value: Point, /) -> None: ...
+ def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
# end of class GestureEvent
@@ -28532,7 +28532,7 @@
Returns the distance covered since the previous panning event.
"""
- def SetDelta(self, delta: Point) -> None:
+ def SetDelta(self, delta: Union[Point, _TwoInts]) -> None:
"""
SetDelta(delta) -> None
@@ -28541,7 +28541,7 @@
@property
def Delta(self) -> Point: ...
@Delta.setter
- def Delta(self, value: Point, /) -> None: ...
+ def Delta(self, value: Union[Point, _TwoInts], /) -> None: ...
# end of class PanGestureEvent
@@ -29269,7 +29269,7 @@
...
@overload
- def AssignSpacer(self, size: Size) -> None:
+ def AssignSpacer(self, size: Union[Size, _TwoInts]) -> None:
"""
AssignSpacer(size) -> None
AssignSpacer(w, h) -> None
@@ -29278,7 +29278,7 @@
"""
@overload
- def SetRatio(self, size: Size) -> None:
+ def SetRatio(self, size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -29366,7 +29366,7 @@
...
@overload
- def SetMinSize(self, size: Size) -> None:
+ def SetMinSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMinSize(size) -> None
SetMinSize(x, y) -> None
@@ -29473,7 +29473,7 @@
Set the border item attribute.
"""
- def SetDimension(self, pos: Point, size: Size) -> None:
+ def SetDimension(self, pos: Union[Point, _TwoInts], size: Union[Size, _TwoInts]) -> None:
"""
SetDimension(pos, size) -> None
@@ -29537,7 +29537,7 @@
@property
def MinSize(self) -> Size: ...
@MinSize.setter
- def MinSize(self, value: Size, /) -> None: ...
+ def MinSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def Position(self) -> Point: ...
@property
@@ -29545,9 +29545,9 @@
@Proportion.setter
def Proportion(self, value: int, /) -> None: ...
@property
- def Ratio(self) -> int: ...
+ def Ratio(self) -> float: ...
@Ratio.setter
- def Ratio(self, value: int, /) -> None: ...
+ def Ratio(self, value: Union[Union[Size, _TwoInts], float], /) -> None: ...
@property
def Rect(self) -> Rect: ...
@property
@@ -29791,7 +29791,7 @@
"""
@overload
- def SetItemMinSize(self, window: Window, size: Size) -> bool:
+ def SetItemMinSize(self, window: Window, size: Union[Size, _TwoInts]) -> bool:
...
@overload
@@ -29799,7 +29799,7 @@
...
@overload
- def SetItemMinSize(self, sizer: Sizer, size: Size) -> bool:
+ def SetItemMinSize(self, sizer: Sizer, size: Union[Size, _TwoInts]) -> bool:
...
@overload
@@ -29807,7 +29807,7 @@
...
@overload
- def SetItemMinSize(self, index: int, size: Size) -> bool:
+ def SetItemMinSize(self, index: int, size: Union[Size, _TwoInts]) -> bool:
...
@overload
@@ -29848,11 +29848,11 @@
...
@overload
- def Add(self, size: Size, proportion: int=0, flag: int=0, border: int=0, Transfer: Optional[PyUserDatauserData]=None) -> SizerItem:
+ def Add(self, size: Union[Size, _TwoInts], proportion: int=0, flag: int=0, border: int=0, Transfer: Optional[PyUserDatauserData]=None) -> SizerItem:
...
@overload
- def Add(self, size: Size, flags: SizerFlags) -> SizerItem:
+ def Add(self, size: Union[Size, _TwoInts], flags: SizerFlags) -> SizerItem:
...
@overload
@@ -30070,11 +30070,11 @@
...
@overload
- def Insert(self, index: int, size: Size, proportion: int=0, flag: int=0, border: int=0, Transfer: Optional[PyUserDatauserData]=None) -> SizerItem:
+ def Insert(self, index: int, size: Union[Size, _TwoInts], proportion: int=0, flag: int=0, border: int=0, Transfer: Optional[PyUserDatauserData]=None) -> SizerItem:
...
@overload
- def Insert(self, index: int, size: Size, flags: SizerFlags) -> SizerItem:
+ def Insert(self, index: int, size: Union[Size, _TwoInts], flags: SizerFlags) -> SizerItem:
...
@overload
@@ -30166,11 +30166,11 @@
...
@overload
- def Prepend(self, size: Size, proportion: int=0, flag: int=0, border: int=0, Transfer: Optional[PyUserDatauserData]=None) -> SizerItem:
+ def Prepend(self, size: Union[Size, _TwoInts], proportion: int=0, flag: int=0, border: int=0, Transfer: Optional[PyUserDatauserData]=None) -> SizerItem:
...
@overload
- def Prepend(self, size: Size, flags: SizerFlags) -> SizerItem:
+ def Prepend(self, size: Union[Size, _TwoInts], flags: SizerFlags) -> SizerItem:
...
@overload
@@ -30204,7 +30204,7 @@
Prepends stretchable space to the sizer.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -30251,7 +30251,7 @@
"""
@overload
- def SetDimension(self, pos: Point, size: Size) -> None:
+ def SetDimension(self, pos: Union[Point, _TwoInts], size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -30270,7 +30270,7 @@
...
@overload
- def SetMinSize(self, size: Size) -> None:
+ def SetMinSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMinSize(size) -> None
SetMinSize(width, height) -> None
@@ -30345,7 +30345,7 @@
@property
def MinSize(self) -> Size: ...
@MinSize.setter
- def MinSize(self, value: Size, /) -> None: ...
+ def MinSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def Position(self) -> Point: ...
@property
@@ -30401,7 +30401,7 @@
wxHORIZONTAL.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -30459,7 +30459,7 @@
Implements the calculation of a box sizer's minimal.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -30482,7 +30482,7 @@
"""
@overload
- def __init__(self, cols: int, gap: Size=Size(0,0)) -> None:
+ def __init__(self, cols: int, gap: Union[Size, _TwoInts]=Size(0,0)) -> None:
...
@overload
@@ -30490,7 +30490,7 @@
...
@overload
- def __init__(self, rows: int, cols: int, gap: Size) -> None:
+ def __init__(self, rows: int, cols: int, gap: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -30583,7 +30583,7 @@
class.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -30636,7 +30636,7 @@
"""
@overload
- def __init__(self, cols: int, gap: Size=Size(0,0)) -> None:
+ def __init__(self, cols: int, gap: Union[Size, _TwoInts]=Size(0,0)) -> None:
...
@overload
@@ -30644,7 +30644,7 @@
...
@overload
- def __init__(self, rows: int, cols: int, gap: Size) -> None:
+ def __init__(self, rows: int, cols: int, gap: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -30755,7 +30755,7 @@
sizer.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -30838,7 +30838,7 @@
Sets the negative button for the sizer.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -31237,11 +31237,11 @@
@GBSizer.setter
def GBSizer(self, value: GridBagSizer, /) -> None: ...
@property
- def Pos(self) -> Union[GBPosition, _TwoInts]: ...
+ def Pos(self) -> GBPosition: ...
@Pos.setter
def Pos(self, value: Union[GBPosition, _TwoInts], /) -> None: ...
@property
- def Span(self) -> Union[GBSpan, _TwoInts]: ...
+ def Span(self) -> GBSpan: ...
@Span.setter
def Span(self, value: Union[GBSpan, _TwoInts], /) -> None: ...
# end of class GBSizerItem
@@ -31280,7 +31280,7 @@
...
@overload
- def Add(self, size: Size, pos: Union[GBPosition, _TwoInts], span: Union[GBSpan, _TwoInts]=DefaultSpan, flag: int=0, border: int=0, Transfer: Optional[ObjectuserData]=None) -> SizerItem:
+ def Add(self, size: Union[Size, _TwoInts], pos: Union[GBPosition, _TwoInts], span: Union[GBSpan, _TwoInts]=DefaultSpan, flag: int=0, border: int=0, Transfer: Optional[ObjectuserData]=None) -> SizerItem:
...
@overload
@@ -31403,7 +31403,7 @@
needs done.
"""
- def FindItemAtPoint(self, pt: Point) -> GBSizerItem:
+ def FindItemAtPoint(self, pt: Union[Point, _TwoInts]) -> GBSizerItem:
"""
FindItemAtPoint(pt) -> GBSizerItem
@@ -31441,7 +31441,7 @@
Get the size used for cells in the grid with no item.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -31449,7 +31449,7 @@
needs done.
"""
- def SetEmptyCellSize(self, sz: Size) -> None:
+ def SetEmptyCellSize(self, sz: Union[Size, _TwoInts]) -> None:
"""
SetEmptyCellSize(sz) -> None
@@ -31460,7 +31460,7 @@
@property
def EmptyCellSize(self) -> Size: ...
@EmptyCellSize.setter
- def EmptyCellSize(self, value: Size, /) -> None: ...
+ def EmptyCellSize(self, value: Union[Size, _TwoInts], /) -> None: ...
# end of class GridBagSizer
DefaultSpan: GBSpan
@@ -31506,7 +31506,7 @@
Not used by an application.
"""
- def RepositionChildren(self, minSize: Size) -> None:
+ def RepositionChildren(self, minSize: Union[Size, _TwoInts]) -> None:
"""
RepositionChildren(minSize) -> None
@@ -33206,7 +33206,7 @@
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
...
@overload
@@ -33467,7 +33467,7 @@
positive) or up.
"""
- def ScrollWindow(self, dx: int, dy: int, rect: Optional[Rect]=None) -> None:
+ def ScrollWindow(self, dx: int, dy: int, rect: Optional[Union[Rect, _FourInts]]=None) -> None:
"""
ScrollWindow(dx, dy, rect=None) -> None
@@ -33531,21 +33531,21 @@
Fix child window positions after setting all of them at once.
"""
- def CacheBestSize(self, size: Size) -> None:
+ def CacheBestSize(self, size: Union[Size, _TwoInts]) -> None:
"""
CacheBestSize(size) -> None
Sets the cached best size value.
"""
- def ClientToWindowSize(self, size: Size) -> Size:
+ def ClientToWindowSize(self, size: Union[Size, _TwoInts]) -> Size:
"""
ClientToWindowSize(size) -> Size
Converts client area size size to corresponding window size.
"""
- def WindowToClientSize(self, size: Size) -> Size:
+ def WindowToClientSize(self, size: Union[Size, _TwoInts]) -> Size:
"""
WindowToClientSize(size) -> Size
@@ -33569,7 +33569,7 @@
"""
@overload
- def FromDIP(self, pt: Point) -> Point:
+ def FromDIP(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -33578,12 +33578,12 @@
@overload
@staticmethod
- def FromDIP(sz: Size, w: Window) -> Size:
+ def FromDIP(sz: Union[Size, _TwoInts], w: Window) -> Size:
...
@overload
@staticmethod
- def FromDIP(pt: Point, w: Window) -> Point:
+ def FromDIP(pt: Union[Point, _TwoInts], w: Window) -> Point:
...
@overload
@@ -33592,7 +33592,7 @@
...
@overload
- def FromDIP(self, sz: Size) -> Size:
+ def FromDIP(self, sz: Union[Size, _TwoInts]) -> Size:
"""
FromDIP(sz) -> Size
FromDIP(pt) -> Point
@@ -33606,7 +33606,7 @@
"""
@overload
- def ToDIP(self, pt: Point) -> Point:
+ def ToDIP(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -33615,12 +33615,12 @@
@overload
@staticmethod
- def ToDIP(sz: Size, w: Window) -> Size:
+ def ToDIP(sz: Union[Size, _TwoInts], w: Window) -> Size:
...
@overload
@staticmethod
- def ToDIP(pt: Point, w: Window) -> Point:
+ def ToDIP(pt: Union[Point, _TwoInts], w: Window) -> Point:
...
@overload
@@ -33629,7 +33629,7 @@
...
@overload
- def ToDIP(self, sz: Size) -> Size:
+ def ToDIP(self, sz: Union[Size, _TwoInts]) -> Size:
"""
ToDIP(sz) -> Size
ToDIP(pt) -> Point
@@ -33643,7 +33643,7 @@
"""
@overload
- def FromPhys(self, pt: Point) -> Point:
+ def FromPhys(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -33652,12 +33652,12 @@
@overload
@staticmethod
- def FromPhys(sz: Size, w: Window) -> Size:
+ def FromPhys(sz: Union[Size, _TwoInts], w: Window) -> Size:
...
@overload
@staticmethod
- def FromPhys(pt: Point, w: Window) -> Point:
+ def FromPhys(pt: Union[Point, _TwoInts], w: Window) -> Point:
...
@overload
@@ -33666,7 +33666,7 @@
...
@overload
- def FromPhys(self, sz: Size) -> Size:
+ def FromPhys(self, sz: Union[Size, _TwoInts]) -> Size:
"""
FromPhys(sz) -> Size
FromPhys(pt) -> Point
@@ -33679,7 +33679,7 @@
"""
@overload
- def ToPhys(self, pt: Point) -> Point:
+ def ToPhys(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -33688,12 +33688,12 @@
@overload
@staticmethod
- def ToPhys(sz: Size, w: Window) -> Size:
+ def ToPhys(sz: Union[Size, _TwoInts], w: Window) -> Size:
...
@overload
@staticmethod
- def ToPhys(pt: Point, w: Window) -> Point:
+ def ToPhys(pt: Union[Point, _TwoInts], w: Window) -> Point:
...
@overload
@@ -33702,7 +33702,7 @@
...
@overload
- def ToPhys(self, sz: Size) -> Size:
+ def ToPhys(self, sz: Union[Size, _TwoInts]) -> Size:
"""
ToPhys(sz) -> Size
ToPhys(pt) -> Point
@@ -33904,11 +33904,11 @@
"""
@overload
- def SetClientSize(self, size: Size) -> None:
+ def SetClientSize(self, size: Union[Size, _TwoInts]) -> None:
...
@overload
- def SetClientSize(self, rect: Rect) -> None:
+ def SetClientSize(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
@@ -33929,7 +33929,7 @@
the given sizer.
"""
- def SetInitialSize(self, size: Size=DefaultSize) -> None:
+ def SetInitialSize(self, size: Union[Size, _TwoInts]=DefaultSize) -> None:
"""
SetInitialSize(size=DefaultSize) -> None
@@ -33937,7 +33937,7 @@
window's best size values.
"""
- def SetMaxClientSize(self, size: Size) -> None:
+ def SetMaxClientSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMaxClientSize(size) -> None
@@ -33946,7 +33946,7 @@
area.
"""
- def SetMaxSize(self, size: Size) -> None:
+ def SetMaxSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMaxSize(size) -> None
@@ -33954,7 +33954,7 @@
mechanism that this is the maximum possible size.
"""
- def SetMinClientSize(self, size: Size) -> None:
+ def SetMinClientSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMinClientSize(size) -> None
@@ -33963,7 +33963,7 @@
client area.
"""
- def SetMinSize(self, size: Size) -> None:
+ def SetMinSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMinSize(size) -> None
@@ -33972,11 +33972,11 @@
"""
@overload
- def SetSize(self, rect: Rect) -> None:
+ def SetSize(self, rect: Union[Rect, _FourInts]) -> None:
...
@overload
- def SetSize(self, size: Size) -> None:
+ def SetSize(self, size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -33999,7 +33999,7 @@
...
@overload
- def SetSizeHints(self, minSize: Size, maxSize: Size=DefaultSize, incSize: Size=DefaultSize) -> None:
+ def SetSizeHints(self, minSize: Union[Size, _TwoInts], maxSize: Union[Size, _TwoInts]=DefaultSize, incSize: Union[Size, _TwoInts]=DefaultSize) -> None:
"""
SetSizeHints(minSize, maxSize=DefaultSize, incSize=DefaultSize) -> None
SetSizeHints(minW, minH, maxW=-1, maxH=-1, incW=-1, incH=-1) -> None
@@ -34009,7 +34009,7 @@
"""
@overload
- def SetVirtualSize(self, size: Size) -> None:
+ def SetVirtualSize(self, size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -34098,7 +34098,7 @@
"""
@overload
- def Move(self, pt: Point, flags: int=SIZE_USE_EXISTING) -> None:
+ def Move(self, pt: Union[Point, _TwoInts], flags: int=SIZE_USE_EXISTING) -> None:
...
@overload
@@ -34110,7 +34110,7 @@
Moves the window to the given position.
"""
- def SetPosition(self, pt: Point) -> None:
+ def SetPosition(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetPosition(pt) -> None
@@ -34118,7 +34118,7 @@
"""
@overload
- def ClientToScreen(self, pt: Point) -> Point:
+ def ClientToScreen(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -34132,11 +34132,11 @@
"""
@overload
- def ConvertDialogToPixels(self, sz: Size) -> Size:
+ def ConvertDialogToPixels(self, sz: Union[Size, _TwoInts]) -> Size:
...
@overload
- def ConvertDialogToPixels(self, pt: Point) -> Point:
+ def ConvertDialogToPixels(self, pt: Union[Point, _TwoInts]) -> Point:
"""
ConvertDialogToPixels(pt) -> Point
ConvertDialogToPixels(sz) -> Size
@@ -34145,11 +34145,11 @@
"""
@overload
- def ConvertPixelsToDialog(self, sz: Size) -> Size:
+ def ConvertPixelsToDialog(self, sz: Union[Size, _TwoInts]) -> Size:
...
@overload
- def ConvertPixelsToDialog(self, pt: Point) -> Point:
+ def ConvertPixelsToDialog(self, pt: Union[Point, _TwoInts]) -> Point:
"""
ConvertPixelsToDialog(pt) -> Point
ConvertPixelsToDialog(sz) -> Size
@@ -34158,7 +34158,7 @@
"""
@overload
- def ScreenToClient(self, pt: Point) -> Point:
+ def ScreenToClient(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -34295,7 +34295,7 @@
background.
"""
- def Refresh(self, eraseBackground: bool=True, rect: Optional[Rect]=None) -> None:
+ def Refresh(self, eraseBackground: bool=True, rect: Optional[Union[Rect, _FourInts]]=None) -> None:
"""
Refresh(eraseBackground=True, rect=None) -> None
@@ -34303,7 +34303,7 @@
repainted.
"""
- def RefreshRect(self, rect: Rect, eraseBackground: bool=True) -> None:
+ def RefreshRect(self, rect: Union[Rect, _FourInts], eraseBackground: bool=True) -> None:
"""
RefreshRect(rect, eraseBackground=True) -> None
@@ -34319,7 +34319,7 @@
children recursively.
"""
- def SetBackgroundColour(self, colour: Colour) -> bool:
+ def SetBackgroundColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> bool:
"""
SetBackgroundColour(colour) -> bool
@@ -34347,14 +34347,14 @@
Sets the font for this window.
"""
- def SetForegroundColour(self, colour: Colour) -> bool:
+ def SetForegroundColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> bool:
"""
SetForegroundColour(colour) -> bool
Sets the foreground colour of the window.
"""
- def SetOwnBackgroundColour(self, colour: Colour) -> None:
+ def SetOwnBackgroundColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetOwnBackgroundColour(colour) -> None
@@ -34392,7 +34392,7 @@
the children of this window.
"""
- def SetOwnForegroundColour(self, colour: Colour) -> None:
+ def SetOwnForegroundColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetOwnForegroundColour(colour) -> None
@@ -34675,7 +34675,7 @@
"""
@overload
- def IsExposed(self, pt: Point) -> bool:
+ def IsExposed(self, pt: Union[Point, _TwoInts]) -> bool:
...
@overload
@@ -34683,7 +34683,7 @@
...
@overload
- def IsExposed(self, rect: Rect) -> bool:
+ def IsExposed(self, rect: Union[Rect, _FourInts]) -> bool:
...
@overload
@@ -34759,7 +34759,7 @@
window.
"""
- def GetHelpTextAtPoint(self, point: Point, origin: HelpEvent.Origin) -> str:
+ def GetHelpTextAtPoint(self, point: Union[Point, _TwoInts], origin: HelpEvent.Origin) -> str:
"""
GetHelpTextAtPoint(point, origin) -> str
@@ -34806,7 +34806,7 @@
...
@overload
- def GetPopupMenuSelectionFromUser(self, menu: Menu, pos: Point=DefaultPosition) -> int:
+ def GetPopupMenuSelectionFromUser(self, menu: Menu, pos: Union[Point, _TwoInts]=DefaultPosition) -> int:
"""
GetPopupMenuSelectionFromUser(menu, pos=DefaultPosition) -> int
GetPopupMenuSelectionFromUser(menu, x, y) -> int
@@ -34820,7 +34820,7 @@
...
@overload
- def PopupMenu(self, menu: Menu, pos: Point=DefaultPosition) -> bool:
+ def PopupMenu(self, menu: Menu, pos: Union[Point, _TwoInts]=DefaultPosition) -> bool:
"""
PopupMenu(menu, pos=DefaultPosition) -> bool
PopupMenu(menu, x, y) -> bool
@@ -35166,7 +35166,7 @@
"""
@overload
- def HitTest(self, pt: Point) -> HitTest:
+ def HitTest(self, pt: Union[Point, _TwoInts]) -> HitTest:
...
@overload
@@ -35376,7 +35376,7 @@
Unreserve an ID or range of IDs that was reserved by NewControlId().
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=PanelNameStr) -> bool
@@ -35482,7 +35482,7 @@
@property
def BackgroundColour(self) -> Colour: ...
@BackgroundColour.setter
- def BackgroundColour(self, value: Colour, /) -> None: ...
+ def BackgroundColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def BackgroundStyle(self) -> BackgroundStyle: ...
@BackgroundStyle.setter
@@ -35508,9 +35508,9 @@
@property
def ClientAreaOrigin(self) -> Point: ...
@property
- def ClientSize(self) -> int: ...
+ def ClientSize(self) -> Size: ...
@ClientSize.setter
- def ClientSize(self, value: int, /) -> None: ...
+ def ClientSize(self, value: Union[Union[Size, _TwoInts], Union[Rect, _FourInts]], /) -> None: ...
@property
def Constraints(self) -> LayoutConstraints: ...
@Constraints.setter
@@ -35544,7 +35544,7 @@
@property
def ForegroundColour(self) -> Colour: ...
@ForegroundColour.setter
- def ForegroundColour(self, value: Colour, /) -> None: ...
+ def ForegroundColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def GrandParent(self) -> Window: ...
@property
@@ -35572,7 +35572,7 @@
@property
def MaxSize(self) -> Size: ...
@MaxSize.setter
- def MaxSize(self, value: Size, /) -> None: ...
+ def MaxSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def MaxWidth(self) -> int: ...
@property
@@ -35580,7 +35580,7 @@
@property
def MinSize(self) -> Size: ...
@MinSize.setter
- def MinSize(self, value: Size, /) -> None: ...
+ def MinSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def MinWidth(self) -> int: ...
@property
@@ -35592,15 +35592,15 @@
@property
def Position(self) -> Point: ...
@Position.setter
- def Position(self, value: Point, /) -> None: ...
+ def Position(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def ScreenPosition(self) -> Point: ...
@property
def ScreenRect(self) -> Rect: ...
@property
- def Size(self) -> int: ...
+ def Size(self) -> Size: ...
@Size.setter
- def Size(self, value: int, /) -> None: ...
+ def Size(self, value: Union[Union[Rect, _FourInts], Union[Size, _TwoInts]], /) -> None: ...
@property
def Sizer(self) -> Sizer: ...
@Sizer.setter
@@ -35610,9 +35610,9 @@
@ThemeEnabled.setter
def ThemeEnabled(self, value: bool, /) -> None: ...
@property
- def ToolTip(self) -> str: ...
+ def ToolTip(self) -> ToolTip: ...
@ToolTip.setter
- def ToolTip(self, value: str, /) -> None: ...
+ def ToolTip(self, value: Union[str, ToolTip], /) -> None: ...
@property
def UpdateClientRect(self) -> Rect: ...
@property
@@ -35622,9 +35622,9 @@
@Validator.setter
def Validator(self, value: Validator, /) -> None: ...
@property
- def VirtualSize(self) -> int: ...
+ def VirtualSize(self) -> Size: ...
@VirtualSize.setter
- def VirtualSize(self, value: int, /) -> None: ...
+ def VirtualSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def WindowStyle(self) -> int: ...
@WindowStyle.setter
@@ -35650,11 +35650,11 @@
@property
def MinClientSize(self) -> Size: ...
@MinClientSize.setter
- def MinClientSize(self, value: Size, /) -> None: ...
+ def MinClientSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def MaxClientSize(self) -> Size: ...
@MaxClientSize.setter
- def MaxClientSize(self, value: Size, /) -> None: ...
+ def MaxClientSize(self, value: Union[Size, _TwoInts], /) -> None: ...
def GetPositionTuple(self):
"""
@@ -35949,7 +35949,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=TAB_TRAVERSAL, name: str=PanelNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=TAB_TRAVERSAL, name: str=PanelNameStr) -> None:
...
@overload
@@ -35970,7 +35970,7 @@
the focus.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=TAB_TRAVERSAL, name: str=PanelNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=TAB_TRAVERSAL, name: str=PanelNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=TAB_TRAVERSAL, name=PanelNameStr) -> bool
@@ -36200,7 +36200,7 @@
Returns true if the item is a submenu.
"""
- def SetBackgroundColour(self, colour: Colour) -> None:
+ def SetBackgroundColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetBackgroundColour(colour) -> None
@@ -36208,11 +36208,11 @@
"""
@overload
- def SetBitmap(self, bmp: BitmapBundle, checked: bool) -> None:
+ def SetBitmap(self, bmp: Union[BitmapBundle, wx.Bitmap, wx.Icon], checked: bool) -> None:
...
@overload
- def SetBitmap(self, bmp: BitmapBundle) -> None:
+ def SetBitmap(self, bmp: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmap(bmp) -> None
SetBitmap(bmp, checked) -> None
@@ -36220,14 +36220,14 @@
Sets the bitmap for the menu item.
"""
- def SetBitmaps(self, checked: BitmapBundle, unchecked: BitmapBundle=NullBitmap) -> None:
+ def SetBitmaps(self, checked: Union[BitmapBundle, wx.Bitmap, wx.Icon], unchecked: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap) -> None:
"""
SetBitmaps(checked, unchecked=NullBitmap) -> None
Sets the checked/unchecked bitmaps for the menu item.
"""
- def SetDisabledBitmap(self, disabled: BitmapBundle) -> None:
+ def SetDisabledBitmap(self, disabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetDisabledBitmap(disabled) -> None
@@ -36276,7 +36276,7 @@
Sets the submenu of this menu item.
"""
- def SetTextColour(self, colour: Colour) -> None:
+ def SetTextColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextColour(colour) -> None
@@ -36333,17 +36333,17 @@
@property
def BackgroundColour(self) -> Colour: ...
@BackgroundColour.setter
- def BackgroundColour(self, value: Colour, /) -> None: ...
+ def BackgroundColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
- def Bitmap(self) -> BitmapBundle: ...
+ def Bitmap(self) -> Bitmap: ...
@Bitmap.setter
- def Bitmap(self, value: BitmapBundle, /) -> None: ...
+ def Bitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def BitmapBundle(self) -> BitmapBundle: ...
@property
- def DisabledBitmap(self) -> BitmapBundle: ...
+ def DisabledBitmap(self) -> Bitmap: ...
@DisabledBitmap.setter
- def DisabledBitmap(self, value: BitmapBundle, /) -> None: ...
+ def DisabledBitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def Font(self) -> Font: ...
@Font.setter
@@ -36377,7 +36377,7 @@
@property
def TextColour(self) -> Colour: ...
@TextColour.setter
- def TextColour(self, value: Colour, /) -> None: ...
+ def TextColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Enabled(self) -> bool: ...
@Enabled.setter
@@ -36970,7 +36970,7 @@
Determines whether an item is enabled.
"""
- def Refresh(self, eraseBackground: bool=True, rect: Optional[Rect]=None) -> None:
+ def Refresh(self, eraseBackground: bool=True, rect: Optional[Union[Rect, _FourInts]]=None) -> None:
"""
Refresh(eraseBackground=True, rect=None) -> None
@@ -37107,7 +37107,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=-1, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=HSCROLL|VSCROLL, name: str="scrolledWindow") -> None:
+ def __init__(self, parent: Window, id: int=-1, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=HSCROLL|VSCROLL, name: str="scrolledWindow") -> None:
...
@overload
@@ -37123,7 +37123,7 @@
"""
@overload
- def CalcScrolledPosition(self, pt: Point) -> Point:
+ def CalcScrolledPosition(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -37136,7 +37136,7 @@
"""
@overload
- def CalcUnscrolledPosition(self, pt: Point) -> Point:
+ def CalcUnscrolledPosition(self, pt: Union[Point, _TwoInts]) -> Point:
...
@overload
@@ -37148,7 +37148,7 @@
Translates the device coordinates to the logical ones.
"""
- def Create(self, parent: Window, id: int=-1, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=HSCROLL|VSCROLL, name: str="scrolledWindow") -> bool:
+ def Create(self, parent: Window, id: int=-1, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=HSCROLL|VSCROLL, name: str="scrolledWindow") -> bool:
"""
Create(parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=HSCROLL|VSCROLL, name="scrolledWindow") -> bool
@@ -37224,7 +37224,7 @@
"""
@overload
- def Scroll(self, pt: Point) -> None:
+ def Scroll(self, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -37263,7 +37263,7 @@
GetTargetWindow() -> Window
"""
- def SetTargetRect(self, rect: Rect) -> None:
+ def SetTargetRect(self, rect: Union[Rect, _FourInts]) -> None:
"""
SetTargetRect(rect) -> None
"""
@@ -37345,7 +37345,7 @@
@property
def TargetRect(self) -> Rect: ...
@TargetRect.setter
- def TargetRect(self, value: Rect, /) -> None: ...
+ def TargetRect(self, value: Union[Rect, _FourInts], /) -> None: ...
@property
def TargetWindow(self) -> Window: ...
@TargetWindow.setter
@@ -37359,7 +37359,7 @@
the child window into view automatically when it gets focus.
"""
- def GetSizeAvailableForScrollTarget(self, size: Size) -> Size:
+ def GetSizeAvailableForScrollTarget(self, size: Union[Size, _TwoInts]) -> Size:
"""
GetSizeAvailableForScrollTarget(size) -> Size
@@ -37386,7 +37386,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=ScrolledWindowStyle, name: str=PanelNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=ScrolledWindowStyle, name: str=PanelNameStr) -> None:
...
@overload
@@ -37878,7 +37878,7 @@
"""
@overload
- def IsVisible(self, pos: Position) -> bool:
+ def IsVisible(self, pos: Union[Position, _TwoInts]) -> bool:
...
@overload
@@ -37892,7 +37892,7 @@
"""
@overload
- def RefreshRowColumn(self, pos: Position) -> None:
+ def RefreshRowColumn(self, pos: Union[Position, _TwoInts]) -> None:
...
@overload
@@ -37906,7 +37906,7 @@
"""
@overload
- def RefreshRowsColumns(self, _from: Position, to: Position) -> None:
+ def RefreshRowsColumns(self, _from: Union[Position, _TwoInts], to: Union[Position, _TwoInts]) -> None:
...
@overload
@@ -37920,7 +37920,7 @@
"""
@overload
- def ScrollToRowColumn(self, pos: Position) -> bool:
+ def ScrollToRowColumn(self, pos: Union[Position, _TwoInts]) -> bool:
...
@overload
@@ -37933,7 +37933,7 @@
"""
@overload
- def VirtualHitTest(self, pos: Point) -> Position:
+ def VirtualHitTest(self, pos: Union[Point, _TwoInts]) -> Position:
...
@overload
@@ -37987,9 +37987,9 @@
Set the number of rows and columns the target window will contain.
"""
@property
- def RowColumnCount(self) -> int: ...
+ def RowColumnCount(self) -> Size: ...
@RowColumnCount.setter
- def RowColumnCount(self, value: int, /) -> None: ...
+ def RowColumnCount(self, value: Size, /) -> None: ...
@property
def VisibleBegin(self) -> Position: ...
@property
@@ -38010,7 +38010,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
...
@overload
@@ -38026,7 +38026,7 @@
"vertical", because this class only supports scrolling vertically.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=PanelNameStr) -> bool
@@ -38128,7 +38128,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
...
@overload
@@ -38141,7 +38141,7 @@
be used for scrolling columns of variable widths.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=PanelNameStr) -> bool
@@ -38167,7 +38167,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> None:
...
@overload
@@ -38180,7 +38180,7 @@
horizontal, variable scrolled windows.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=PanelNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=PanelNameStr) -> bool
@@ -38212,7 +38212,7 @@
...
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ControlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ControlNameStr) -> None:
"""
Control(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ControlNameStr) -> None
Control() -> None
@@ -38220,7 +38220,7 @@
This is the base class for a control or "widget".
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ControlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ControlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ControlNameStr) -> bool
"""
@@ -38254,7 +38254,7 @@
"""
@overload
- def GetSizeFromTextSize(self, tsize: Size) -> Size:
+ def GetSizeFromTextSize(self, tsize: Union[Size, _TwoInts]) -> Size:
...
@overload
@@ -38625,7 +38625,7 @@
Scale_AspectFill = _ScaleMode.Scale_AspectFill
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, bitmap: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> None:
...
@overload
@@ -38637,7 +38637,7 @@
A static bitmap control displays a bitmap.
"""
- def Create(self, parent: Window, id: int=ID_ANY, bitmap: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> bool:
"""
Create(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBitmapNameStr) -> bool
@@ -38658,7 +38658,7 @@
Returns the icon currently used in the control.
"""
- def SetBitmap(self, label: BitmapBundle) -> None:
+ def SetBitmap(self, label: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmap(label) -> None
@@ -38692,9 +38692,9 @@
GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
"""
@property
- def Bitmap(self) -> BitmapBundle: ...
+ def Bitmap(self) -> Bitmap: ...
@Bitmap.setter
- def Bitmap(self, value: BitmapBundle, /) -> None: ...
+ def Bitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def Icon(self) -> Icon: ...
@Icon.setter
@@ -38722,7 +38722,7 @@
Scale_AspectFill = _ScaleMode.Scale_AspectFill
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, bitmap: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> None:
...
@overload
@@ -38734,7 +38734,7 @@
A static bitmap control displays a bitmap.
"""
- def Create(self, parent: Window, id: int=ID_ANY, bitmap: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticBitmapNameStr) -> bool:
"""
Create(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBitmapNameStr) -> bool
@@ -38755,7 +38755,7 @@
Returns the icon currently used in the control.
"""
- def SetBitmap(self, label: BitmapBundle) -> None:
+ def SetBitmap(self, label: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmap(label) -> None
@@ -38789,9 +38789,9 @@
GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
"""
@property
- def Bitmap(self) -> BitmapBundle: ...
+ def Bitmap(self) -> Bitmap: ...
@Bitmap.setter
- def Bitmap(self, value: BitmapBundle, /) -> None: ...
+ def Bitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def Icon(self) -> Icon: ...
@Icon.setter
@@ -38815,7 +38815,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticTextNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticTextNameStr) -> None:
...
@overload
@@ -38827,7 +38827,7 @@
A static text control displays one or more lines of read-only text.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticTextNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticTextNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=0, name=StaticTextNameStr) -> bool
@@ -38880,7 +38880,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticBoxNameStr) -> None:
...
@overload
@@ -38893,7 +38893,7 @@
logical grouping of items.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=StaticBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=StaticBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBoxNameStr) -> bool
@@ -39144,7 +39144,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ChoiceNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ChoiceNameStr) -> None:
...
@overload
@@ -39156,7 +39156,7 @@
A choice item is used to select one of a list of strings.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ChoiceNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ChoiceNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=ChoiceNameStr) -> bool
@@ -39283,7 +39283,7 @@
"""
@overload
- def SetBitmapMargins(self, sz: Size) -> None:
+ def SetBitmapMargins(self, sz: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -39337,28 +39337,28 @@
Returns the bitmap used when the button is pressed.
"""
- def SetBitmap(self, bitmap: BitmapBundle, dir: Direction=LEFT) -> None:
+ def SetBitmap(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon], dir: Direction=LEFT) -> None:
"""
SetBitmap(bitmap, dir=LEFT) -> None
Sets the bitmap to display in the button.
"""
- def SetBitmapCurrent(self, bitmap: BitmapBundle) -> None:
+ def SetBitmapCurrent(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmapCurrent(bitmap) -> None
Sets the bitmap to be shown when the mouse is over the button.
"""
- def SetBitmapDisabled(self, bitmap: BitmapBundle) -> None:
+ def SetBitmapDisabled(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmapDisabled(bitmap) -> None
Sets the bitmap for the disabled button appearance.
"""
- def SetBitmapFocus(self, bitmap: BitmapBundle) -> None:
+ def SetBitmapFocus(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmapFocus(bitmap) -> None
@@ -39366,14 +39366,14 @@
focus.
"""
- def SetBitmapLabel(self, bitmap: BitmapBundle) -> None:
+ def SetBitmapLabel(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmapLabel(bitmap) -> None
Sets the bitmap label for the button.
"""
- def SetBitmapPressed(self, bitmap: BitmapBundle) -> None:
+ def SetBitmapPressed(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmapPressed(bitmap) -> None
@@ -39394,33 +39394,33 @@
Set the position at which the bitmap is displayed.
"""
@property
- def Bitmap(self) -> BitmapBundle: ...
+ def Bitmap(self) -> Bitmap: ...
@Bitmap.setter
- def Bitmap(self, value: BitmapBundle, /) -> None: ...
+ def Bitmap(self, value: Bitmap, /) -> None: ...
@property
- def BitmapCurrent(self) -> BitmapBundle: ...
+ def BitmapCurrent(self) -> Bitmap: ...
@BitmapCurrent.setter
- def BitmapCurrent(self, value: BitmapBundle, /) -> None: ...
+ def BitmapCurrent(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
- def BitmapDisabled(self) -> BitmapBundle: ...
+ def BitmapDisabled(self) -> Bitmap: ...
@BitmapDisabled.setter
- def BitmapDisabled(self, value: BitmapBundle, /) -> None: ...
+ def BitmapDisabled(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
- def BitmapFocus(self) -> BitmapBundle: ...
+ def BitmapFocus(self) -> Bitmap: ...
@BitmapFocus.setter
- def BitmapFocus(self, value: BitmapBundle, /) -> None: ...
+ def BitmapFocus(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
- def BitmapLabel(self) -> BitmapBundle: ...
+ def BitmapLabel(self) -> Bitmap: ...
@BitmapLabel.setter
- def BitmapLabel(self, value: BitmapBundle, /) -> None: ...
+ def BitmapLabel(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
- def BitmapMargins(self) -> int: ...
+ def BitmapMargins(self) -> Size: ...
@BitmapMargins.setter
- def BitmapMargins(self, value: int, /) -> None: ...
+ def BitmapMargins(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
- def BitmapPressed(self) -> BitmapBundle: ...
+ def BitmapPressed(self) -> Bitmap: ...
@BitmapPressed.setter
- def BitmapPressed(self, value: BitmapBundle, /) -> None: ...
+ def BitmapPressed(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
# end of class AnyButton
#-- end-anybutton --#
@@ -39437,7 +39437,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> None:
...
@overload
@@ -39450,7 +39450,7 @@
most common elements of a GUI.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr) -> bool
@@ -39530,7 +39530,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, bitmap: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> None:
...
@overload
@@ -39542,7 +39542,7 @@
A bitmap button is a control that contains a bitmap.
"""
- def Create(self, parent: Window, id: int=ID_ANY, bitmap: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> bool:
"""
Create(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr) -> bool
@@ -39686,7 +39686,7 @@
NO_IMAGE = _enum_3.NO_IMAGE
@overload
- def __init__(self, parent: Window, winid: int, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> None:
+ def __init__(self, parent: Window, winid: int, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> None:
...
@overload
@@ -39829,21 +39829,21 @@
Returns the sizer containing the control for page selection, if any.
"""
- def Create(self, parent: Window, winid: int, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> bool:
+ def Create(self, parent: Window, winid: int, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> bool:
"""
Create(parent, winid, pos=DefaultPosition, size=DefaultSize, style=0, name='') -> bool
Constructs the book control with the given parameters.
"""
- def SetPageSize(self, size: Size) -> None:
+ def SetPageSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetPageSize(size) -> None
Sets the width and height of the pages.
"""
- def HitTest(self, pt: Point) -> Tuple[int, int]:
+ def HitTest(self, pt: Union[Point, _TwoInts]) -> Tuple[int, int]:
"""
HitTest(pt) -> Tuple[int, int]
@@ -39954,7 +39954,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=NotebookNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=NotebookNameStr) -> None:
...
@overload
@@ -39967,7 +39967,7 @@
windows with associated tabs.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=NotebookNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=NotebookNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=NotebookNameStr) -> bool
@@ -39990,7 +39990,7 @@
a notebook page, and can be passed to SetBackgroundColour().
"""
- def SetPadding(self, padding: Size) -> None:
+ def SetPadding(self, padding: Union[Size, _TwoInts]) -> None:
"""
SetPadding(padding) -> None
@@ -40132,7 +40132,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_3D, name: str="splitterWindow") -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_3D, name: str="splitterWindow") -> None:
...
@overload
@@ -40144,7 +40144,7 @@
This class manages up to two subwindows.
"""
- def Create(self, parent: Window, id: int=ID_ANY, point: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_3D, name: str="splitter") -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, point: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_3D, name: str="splitter") -> bool:
"""
Create(parent, id=ID_ANY, point=DefaultPosition, size=DefaultSize, style=SP_3D, name="splitter") -> bool
@@ -40324,7 +40324,7 @@
@property
def SashSize(self) -> int: ...
@property
- def SplitMode(self) -> int: ...
+ def SplitMode(self) -> SplitMode: ...
@SplitMode.setter
def SplitMode(self, value: int, /) -> None: ...
@property
@@ -40446,7 +40446,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=CP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=CollapsiblePaneNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=CP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=CollapsiblePaneNameStr) -> None:
...
@overload
@@ -40460,7 +40460,7 @@
contents.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=CP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=CollapsiblePaneNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=CP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=CollapsiblePaneNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=CP_DEFAULT_STYLE, validator=DefaultValidator, name=CollapsiblePaneNameStr) -> bool
"""
@@ -40565,7 +40565,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=LI_HORIZONTAL, name: str=StaticLineNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=LI_HORIZONTAL, name: str=StaticLineNameStr) -> None:
...
@overload
@@ -40578,7 +40578,7 @@
the groups of controls.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=LI_HORIZONTAL, name: str=StaticLineNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=LI_HORIZONTAL, name: str=StaticLineNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr) -> bool
@@ -40679,7 +40679,7 @@
...
@overload
- def SetMargins(self, pt: Point) -> bool:
+ def SetMargins(self, pt: Union[Point, _TwoInts]) -> bool:
"""
SetMargins(pt) -> bool
SetMargins(left, top=-1) -> bool
@@ -40994,7 +40994,7 @@
@property
def Margins(self) -> Point: ...
@Margins.setter
- def Margins(self, value: Point, /) -> None: ...
+ def Margins(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def StringSelection(self) -> str: ...
@property
@@ -41231,7 +41231,7 @@
"""
@overload
- def __init__(self, colText: Colour, colBack: Colour=NullColour, font: Font=NullFont, alignment: TextAttrAlignment=TEXT_ALIGNMENT_DEFAULT) -> None:
+ def __init__(self, colText: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], colBack: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=NullColour, font: Font=NullFont, alignment: TextAttrAlignment=TEXT_ALIGNMENT_DEFAULT) -> None:
...
@overload
@@ -41751,7 +41751,7 @@
Sets the paragraph alignment.
"""
- def SetBackgroundColour(self, colBack: Colour) -> None:
+ def SetBackgroundColour(self, colBack: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetBackgroundColour(colBack) -> None
@@ -41872,7 +41872,7 @@
Sets the font underlining (solid line, text colour).
"""
- def SetFontUnderlineType(self, type: TextAttrUnderlineType, colour: Colour=NullColour) -> None:
+ def SetFontUnderlineType(self, type: TextAttrUnderlineType, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=NullColour) -> None:
"""
SetFontUnderlineType(type, colour=NullColour) -> None
@@ -41956,7 +41956,7 @@
Sets the tab stops, expressed in tenths of a millimetre.
"""
- def SetTextColour(self, colText: Colour) -> None:
+ def SetTextColour(self, colText: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextColour(colText) -> None
@@ -42020,7 +42020,7 @@
@property
def BackgroundColour(self) -> Colour: ...
@BackgroundColour.setter
- def BackgroundColour(self, value: Colour, /) -> None: ...
+ def BackgroundColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def BulletFont(self) -> str: ...
@BulletFont.setter
@@ -42122,7 +42122,7 @@
@property
def TextColour(self) -> Colour: ...
@TextColour.setter
- def TextColour(self, value: Colour, /) -> None: ...
+ def TextColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def TextEffectFlags(self) -> int: ...
@TextEffectFlags.setter
@@ -42152,7 +42152,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=TextCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=TextCtrlNameStr) -> None:
...
@overload
@@ -42194,7 +42194,7 @@
Disables all automatic character substitutions.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=TextCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=TextCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, value='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=TextCtrlNameStr) -> bool
@@ -42261,14 +42261,14 @@
Returns the style at this position in the text control.
"""
- def HitTestPos(self, pt: Point) -> Tuple[TextCtrlHitTestResult, int]:
+ def HitTestPos(self, pt: Union[Point, _TwoInts]) -> Tuple[TextCtrlHitTestResult, int]:
"""
HitTestPos(pt) -> Tuple[TextCtrlHitTestResult, int]
Finds the position of the character at the specified point.
"""
- def HitTest(self, pt: Point) -> Tuple[TextCtrlHitTestResult, TextCoord, TextCoord]:
+ def HitTest(self, pt: Union[Point, _TwoInts]) -> Tuple[TextCtrlHitTestResult, TextCoord, TextCoord]:
"""
HitTest(pt) -> Tuple[TextCtrlHitTestResult, TextCoord, TextCoord]
@@ -42496,7 +42496,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> None:
...
@overload
@@ -42508,7 +42508,7 @@
A combobox is like a combination of an edit control and a listbox.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, value='', pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=ComboBoxNameStr) -> bool
@@ -42683,7 +42683,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> None:
...
@overload
@@ -42696,7 +42696,7 @@
is visible) or off (no checkmark).
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=CheckBoxNameStr) -> bool
@@ -42783,7 +42783,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ListBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ListBoxNameStr) -> None:
...
@overload
@@ -42795,7 +42795,7 @@
A listbox is used to select one or more of a list of strings.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ListBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ListBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=ListBoxNameStr) -> bool
@@ -42849,7 +42849,7 @@
...
@overload
- def HitTest(self, point: Point) -> int:
+ def HitTest(self, point: Union[Point, _TwoInts]) -> int:
"""
HitTest(point) -> int
HitTest(x, y) -> int
@@ -42947,7 +42947,7 @@
Finds an item whose label matches the given string.
"""
- def SetItemForegroundColour(self, item: int, c: Colour) -> None:
+ def SetItemForegroundColour(self, item: int, c: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetItemForegroundColour(item, c) -> None
@@ -42955,7 +42955,7 @@
Only valid on MSW and if the ``wx.LB_OWNERDRAW`` flag is set.
"""
- def SetItemBackgroundColour(self, item: int, c: Colour) -> None:
+ def SetItemBackgroundColour(self, item: int, c: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetItemBackgroundColour(item, c) -> None
@@ -43007,7 +43007,7 @@
...
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str="listBox") -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str="listBox") -> None:
"""
CheckListBox(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name="listBox") -> None
CheckListBox() -> None
@@ -43016,7 +43016,7 @@
or unchecked.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ListBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=ListBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=ListBoxNameStr) -> bool
"""
@@ -43113,7 +43113,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, range: int=100, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=GA_HORIZONTAL, validator: Validator=DefaultValidator, name: str=GaugeNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, range: int=100, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=GA_HORIZONTAL, validator: Validator=DefaultValidator, name: str=GaugeNameStr) -> None:
...
@overload
@@ -43126,7 +43126,7 @@
time).
"""
- def Create(self, parent: Window, id: int=ID_ANY, range: int=100, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=GA_HORIZONTAL, validator: Validator=DefaultValidator, name: str=GaugeNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, range: int=100, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=GA_HORIZONTAL, validator: Validator=DefaultValidator, name: str=GaugeNameStr) -> bool:
"""
Create(parent, id=ID_ANY, range=100, pos=DefaultPosition, size=DefaultSize, style=GA_HORIZONTAL, validator=DefaultValidator, name=GaugeNameStr) -> bool
@@ -43371,7 +43371,7 @@
Set the text to display in the column header.
"""
- def SetBitmap(self, bitmap: BitmapBundle) -> None:
+ def SetBitmap(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmap(bitmap) -> None
@@ -43489,9 +43489,9 @@
@Title.setter
def Title(self, value: str, /) -> None: ...
@property
- def Bitmap(self) -> BitmapBundle: ...
+ def Bitmap(self) -> Union[BitmapBundle, wx.Bitmap, wx.Icon]: ...
@Bitmap.setter
- def Bitmap(self, value: BitmapBundle, /) -> None: ...
+ def Bitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def Width(self) -> int: ...
@Width.setter
@@ -43536,7 +43536,7 @@
"""
@overload
- def __init__(self, bitmap: BitmapBundle, width: int=COL_WIDTH_DEFAULT, align: Alignment=ALIGN_CENTER, flags: int=COL_DEFAULT_FLAGS) -> None:
+ def __init__(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon], width: int=COL_WIDTH_DEFAULT, align: Alignment=ALIGN_CENTER, flags: int=COL_DEFAULT_FLAGS) -> None:
...
@overload
@@ -43562,7 +43562,7 @@
Trivial implementations of the base class pure virtual functions.
"""
- def SetBitmap(self, bitmap: BitmapBundle) -> None:
+ def SetBitmap(self, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetBitmap(bitmap) -> None
@@ -43664,9 +43664,9 @@
@Alignment.setter
def Alignment(self, value: Alignment, /) -> None: ...
@property
- def Bitmap(self) -> BitmapBundle: ...
+ def Bitmap(self) -> Bitmap: ...
@Bitmap.setter
- def Bitmap(self, value: BitmapBundle, /) -> None: ...
+ def Bitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def BitmapBundle(self) -> BitmapBundle: ...
@property
@@ -43724,7 +43724,7 @@
"""
@overload
- def __init__(self, parent: Window, winid: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=HD_DEFAULT_STYLE, name: str=HeaderCtrlNameStr) -> None:
+ def __init__(self, parent: Window, winid: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=HD_DEFAULT_STYLE, name: str=HeaderCtrlNameStr) -> None:
...
@overload
@@ -43737,7 +43737,7 @@
usually used for display of tabular data.
"""
- def Create(self, parent: Window, winid: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=HD_DEFAULT_STYLE, name: str=HeaderCtrlNameStr) -> bool:
+ def Create(self, parent: Window, winid: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=HD_DEFAULT_STYLE, name: str=HeaderCtrlNameStr) -> bool:
"""
Create(parent, winid=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=HD_DEFAULT_STYLE, name=HeaderCtrlNameStr) -> bool
@@ -43807,7 +43807,7 @@
Reset the columns order to the natural one.
"""
- def ShowColumnsMenu(self, pt: Point, title: str="") -> bool:
+ def ShowColumnsMenu(self, pt: Union[Point, _TwoInts], title: str="") -> bool:
"""
ShowColumnsMenu(pt, title="") -> bool
@@ -43917,7 +43917,7 @@
"""
@overload
- def __init__(self, parent: Window, winid: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=HD_DEFAULT_STYLE, name: str=HeaderCtrlNameStr) -> None:
+ def __init__(self, parent: Window, winid: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=HD_DEFAULT_STYLE, name: str=HeaderCtrlNameStr) -> None:
...
@overload
@@ -44111,7 +44111,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=SearchCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=SearchCtrlNameStr) -> None:
...
@overload
@@ -44124,7 +44124,7 @@
control, and a cancel button.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=SearchCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=SearchCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, value='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=SearchCtrlNameStr) -> bool
"""
@@ -44207,7 +44207,7 @@
...
@overload
- def SetMargins(self, pt: Point) -> bool:
+ def SetMargins(self, pt: Union[Point, _TwoInts]) -> bool:
"""
SetMargins(pt) -> bool
SetMargins(left, top=-1) -> bool
@@ -44534,7 +44534,7 @@
@property
def Margins(self) -> Point: ...
@Margins.setter
- def Margins(self, value: Point, /) -> None: ...
+ def Margins(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def Menu(self) -> Menu: ...
@Menu.setter
@@ -44578,7 +44578,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], majorDimension: int=0, style: int=RA_SPECIFY_COLS, validator: Validator=DefaultValidator, name: str=RadioBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], majorDimension: int=0, style: int=RA_SPECIFY_COLS, validator: Validator=DefaultValidator, name: str=RadioBoxNameStr) -> None:
...
@overload
@@ -44591,7 +44591,7 @@
choices.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, choices: List[str]=[], majorDimension: int=0, style: int=RA_SPECIFY_COLS, validator: Validator=DefaultValidator, name: str=RadioBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, choices: List[str]=[], majorDimension: int=0, style: int=RA_SPECIFY_COLS, validator: Validator=DefaultValidator, name: str=RadioBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, choices=[], majorDimension=0, style=RA_SPECIFY_COLS, validator=DefaultValidator, name=RadioBoxNameStr) -> bool
@@ -44620,7 +44620,7 @@
Returns the number of columns in the radiobox.
"""
- def GetItemFromPoint(self, pt: Point) -> int:
+ def GetItemFromPoint(self, pt: Union[Point, _TwoInts]) -> int:
"""
GetItemFromPoint(pt) -> int
@@ -44767,7 +44767,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=RadioButtonNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=RadioButtonNameStr) -> None:
...
@overload
@@ -44780,7 +44780,7 @@
mutually exclusive options.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=RadioButtonNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=RadioButtonNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=RadioButtonNameStr) -> bool
@@ -44878,7 +44878,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, value: int=0, minValue: int=0, maxValue: int=100, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SL_HORIZONTAL, validator: Validator=DefaultValidator, name: str=SliderNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, value: int=0, minValue: int=0, maxValue: int=100, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SL_HORIZONTAL, validator: Validator=DefaultValidator, name: str=SliderNameStr) -> None:
...
@overload
@@ -44905,7 +44905,7 @@
Clears the ticks.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: int=0, minValue: int=0, maxValue: int=100, point: Point=DefaultPosition, size: Size=DefaultSize, style: int=SL_HORIZONTAL, validator: Validator=DefaultValidator, name: str=SliderNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: int=0, minValue: int=0, maxValue: int=100, point: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SL_HORIZONTAL, validator: Validator=DefaultValidator, name: str=SliderNameStr) -> bool:
"""
Create(parent, id=ID_ANY, value=0, minValue=0, maxValue=100, point=DefaultPosition, size=DefaultSize, style=SL_HORIZONTAL, validator=DefaultValidator, name=SliderNameStr) -> bool
@@ -45103,7 +45103,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=-1, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_VERTICAL, name: str="spinButton") -> None:
+ def __init__(self, parent: Window, id: int=-1, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_VERTICAL, name: str="spinButton") -> None:
...
@overload
@@ -45116,7 +45116,7 @@
buttons.
"""
- def Create(self, parent: Window, id: int=-1, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_VERTICAL, name: str="wxSpinButton") -> bool:
+ def Create(self, parent: Window, id: int=-1, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_VERTICAL, name: str="wxSpinButton") -> bool:
"""
Create(parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=SP_VERTICAL, name="wxSpinButton") -> bool
@@ -45265,7 +45265,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_ARROW_KEYS, min: int=0, max: int=100, initial: int=0, name: str="wxSpinCtrl") -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_ARROW_KEYS, min: int=0, max: int=100, initial: int=0, name: str="wxSpinCtrl") -> None:
...
@overload
@@ -45277,7 +45277,7 @@
wxSpinCtrl combines wxTextCtrl and wxSpinButton in one control.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_ARROW_KEYS, min: int=0, max: int=100, initial: int=0, name: str="wxSpinCtrl") -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_ARROW_KEYS, min: int=0, max: int=100, initial: int=0, name: str="wxSpinCtrl") -> bool:
"""
Create(parent, id=ID_ANY, value='', pos=DefaultPosition, size=DefaultSize, style=SP_ARROW_KEYS, min=0, max=100, initial=0, name="wxSpinCtrl") -> bool
@@ -45408,9 +45408,9 @@
@property
def TextValue(self) -> str: ...
@property
- def Value(self) -> str: ...
+ def Value(self) -> int: ...
@Value.setter
- def Value(self, value: str, /) -> None: ...
+ def Value(self, value: Union[str, int], /) -> None: ...
# end of class SpinCtrl
@@ -45424,7 +45424,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=-1, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_ARROW_KEYS, min: float=0, max: float=100, initial: float=0, inc: float=1, name: str=T("wxSpinCtrlDouble")) -> None:
+ def __init__(self, parent: Window, id: int=-1, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_ARROW_KEYS, min: float=0, max: float=100, initial: float=0, inc: float=1, name: str=T("wxSpinCtrlDouble")) -> None:
...
@overload
@@ -45437,7 +45437,7 @@
and displays a real number.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SP_ARROW_KEYS, min: float=0, max: float=100, initial: float=0, inc: float=1, name: str="wxSpinCtrlDouble") -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SP_ARROW_KEYS, min: float=0, max: float=100, initial: float=0, inc: float=1, name: str="wxSpinCtrlDouble") -> bool:
"""
Create(parent, id=ID_ANY, value='', pos=DefaultPosition, size=DefaultSize, style=SP_ARROW_KEYS, min=0, max=100, initial=0, inc=1, name="wxSpinCtrlDouble") -> bool
@@ -45560,9 +45560,9 @@
@property
def TextValue(self) -> str: ...
@property
- def Value(self) -> str: ...
+ def Value(self) -> float: ...
@Value.setter
- def Value(self, value: str, /) -> None: ...
+ def Value(self, value: Union[str, float], /) -> None: ...
# end of class SpinCtrlDouble
@@ -45627,7 +45627,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> None:
...
@overload
@@ -45640,7 +45640,7 @@
user.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label='', pos=DefaultPosition, size=DefaultSize, style=0, val=DefaultValidator, name=CheckBoxNameStr) -> bool
@@ -45683,7 +45683,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> None:
...
@overload
@@ -45696,7 +45696,7 @@
instead of text.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: BitmapBundle=NullBitmap, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, val: Validator=DefaultValidator, name: str=CheckBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, val=DefaultValidator, name=CheckBoxNameStr) -> bool
@@ -45747,7 +45747,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SB_HORIZONTAL, validator: Validator=DefaultValidator, name: str=ScrollBarNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SB_HORIZONTAL, validator: Validator=DefaultValidator, name: str=ScrollBarNameStr) -> None:
...
@overload
@@ -45760,7 +45760,7 @@
scrollbar.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=SB_HORIZONTAL, validator: Validator=DefaultValidator, name: str=ScrollBarNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=SB_HORIZONTAL, validator: Validator=DefaultValidator, name: str=ScrollBarNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=SB_HORIZONTAL, validator=DefaultValidator, name=ScrollBarNameStr) -> bool
@@ -45892,7 +45892,7 @@
...
@overload
- def __init__(self, tbar: Optional[ToolBar]=None, toolid: int=ID_SEPARATOR, label: str='', bmpNormal: BitmapBundle=NullBitmap, bmpDisabled: BitmapBundle=NullBitmap, kind: ItemKind=ITEM_NORMAL, clientData: Optional[PyUserData]=None, shortHelpString: str='', longHelpString: str='') -> None:
+ def __init__(self, tbar: Optional[ToolBar]=None, toolid: int=ID_SEPARATOR, label: str='', bmpNormal: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, kind: ItemKind=ITEM_NORMAL, clientData: Optional[PyUserData]=None, shortHelpString: str='', longHelpString: str='') -> None:
"""
ToolBarToolBase(tbar=None, toolid=ID_SEPARATOR, label='', bmpNormal=NullBitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL, clientData=None, shortHelpString='', longHelpString='') -> None
ToolBarToolBase(tbar, control, label) -> None
@@ -46052,12 +46052,12 @@
SetLongHelp(help) -> bool
"""
- def SetNormalBitmap(self, bmp: BitmapBundle) -> None:
+ def SetNormalBitmap(self, bmp: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetNormalBitmap(bmp) -> None
"""
- def SetDisabledBitmap(self, bmp: BitmapBundle) -> None:
+ def SetDisabledBitmap(self, bmp: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetDisabledBitmap(bmp) -> None
"""
@@ -46100,9 +46100,9 @@
@property
def Control(self) -> Control: ...
@property
- def DisabledBitmap(self) -> BitmapBundle: ...
+ def DisabledBitmap(self) -> Bitmap: ...
@DisabledBitmap.setter
- def DisabledBitmap(self, value: BitmapBundle, /) -> None: ...
+ def DisabledBitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def DisabledBitmapBundle(self) -> BitmapBundle: ...
@property
@@ -46122,9 +46122,9 @@
@LongHelp.setter
def LongHelp(self, value: str, /) -> None: ...
@property
- def NormalBitmap(self) -> BitmapBundle: ...
+ def NormalBitmap(self) -> Bitmap: ...
@NormalBitmap.setter
- def NormalBitmap(self, value: BitmapBundle, /) -> None: ...
+ def NormalBitmap(self, value: Union[BitmapBundle, wx.Bitmap, wx.Icon], /) -> None: ...
@property
def NormalBitmapBundle(self) -> BitmapBundle: ...
@property
@@ -46149,7 +46149,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=TB_HORIZONTAL, name: str=ToolBarNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=TB_HORIZONTAL, name: str=ToolBarNameStr) -> None:
...
@overload
@@ -46163,11 +46163,11 @@
"""
@overload
- def AddTool(self, toolId: int, label: str, bitmap: BitmapBundle, shortHelp: str='', kind: ItemKind=ITEM_NORMAL) -> ToolBarToolBase:
+ def AddTool(self, toolId: int, label: str, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon], shortHelp: str='', kind: ItemKind=ITEM_NORMAL) -> ToolBarToolBase:
...
@overload
- def AddTool(self, toolId: int, label: str, bitmap: BitmapBundle, bmpDisabled: BitmapBundle, kind: ItemKind=ITEM_NORMAL, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
+ def AddTool(self, toolId: int, label: str, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon], bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon], kind: ItemKind=ITEM_NORMAL, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
...
@overload
@@ -46185,7 +46185,7 @@
...
@overload
- def InsertTool(self, pos: int, toolId: int, label: str, bitmap: BitmapBundle, bmpDisabled: BitmapBundle=NullBitmap, kind: ItemKind=ITEM_NORMAL, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
+ def InsertTool(self, pos: int, toolId: int, label: str, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon], bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, kind: ItemKind=ITEM_NORMAL, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
"""
InsertTool(pos, toolId, label, bitmap, bmpDisabled=NullBitmap, kind=ITEM_NORMAL, shortHelp='', longHelp='', clientData=None) -> ToolBarToolBase
InsertTool(pos, tool) -> ToolBarToolBase
@@ -46195,7 +46195,7 @@
"""
@overload
- def SetMargins(self, size: Size) -> None:
+ def SetMargins(self, size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -46207,7 +46207,7 @@
Set the values to be used as margins for the toolbar.
"""
- def AddCheckTool(self, toolId: int, label: str, bitmap1: BitmapBundle, bmpDisabled: BitmapBundle=NullBitmap, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
+ def AddCheckTool(self, toolId: int, label: str, bitmap1: Union[BitmapBundle, wx.Bitmap, wx.Icon], bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
"""
AddCheckTool(toolId, label, bitmap1, bmpDisabled=NullBitmap, shortHelp='', longHelp='', clientData=None) -> ToolBarToolBase
@@ -46221,7 +46221,7 @@
Adds any control to the toolbar, typically e.g. a wxComboBox.
"""
- def AddRadioTool(self, toolId: int, label: str, bitmap1: BitmapBundle, bmpDisabled: BitmapBundle=NullBitmap, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
+ def AddRadioTool(self, toolId: int, label: str, bitmap1: Union[BitmapBundle, wx.Bitmap, wx.Icon], bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, shortHelp: str='', longHelp: str='', clientData: Optional[PyUserData]=None) -> ToolBarToolBase:
"""
AddRadioTool(toolId, label, bitmap1, bmpDisabled=NullBitmap, shortHelp='', longHelp='', clientData=None) -> ToolBarToolBase
@@ -46431,7 +46431,7 @@
Sets the dropdown menu for the tool given by its id.
"""
- def SetToolBitmapSize(self, size: Size) -> None:
+ def SetToolBitmapSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetToolBitmapSize(size) -> None
@@ -46445,7 +46445,7 @@
Sets the client data associated with the tool.
"""
- def SetToolDisabledBitmap(self, id: int, bitmap: BitmapBundle) -> None:
+ def SetToolDisabledBitmap(self, id: int, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetToolDisabledBitmap(id, bitmap) -> None
@@ -46460,7 +46460,7 @@
Sets the long help for the given tool.
"""
- def SetToolNormalBitmap(self, id: int, bitmap: BitmapBundle) -> None:
+ def SetToolNormalBitmap(self, id: int, bitmap: Union[BitmapBundle, wx.Bitmap, wx.Icon]) -> None:
"""
SetToolNormalBitmap(id, bitmap) -> None
@@ -46500,7 +46500,7 @@
...
@overload
- def CreateTool(self, toolId: int, label: str, bmpNormal: BitmapBundle, bmpDisabled: BitmapBundle=NullBitmap, kind: ItemKind=ITEM_NORMAL, clientData: Optional[PyUserData]=None, shortHelp: str='', longHelp: str='') -> ToolBarToolBase:
+ def CreateTool(self, toolId: int, label: str, bmpNormal: Union[BitmapBundle, wx.Bitmap, wx.Icon], bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]=NullBitmap, kind: ItemKind=ITEM_NORMAL, clientData: Optional[PyUserData]=None, shortHelp: str='', longHelp: str='') -> ToolBarToolBase:
"""
CreateTool(toolId, label, bmpNormal, bmpDisabled=NullBitmap, kind=ITEM_NORMAL, clientData=None, shortHelp='', longHelp='') -> ToolBarToolBase
CreateTool(control, label) -> ToolBarToolBase
@@ -46541,13 +46541,13 @@
Old style method to insert a tool in the toolbar.
"""
@property
- def Margins(self) -> int: ...
+ def Margins(self) -> Size: ...
@Margins.setter
- def Margins(self, value: int, /) -> None: ...
+ def Margins(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def ToolBitmapSize(self) -> Size: ...
@ToolBitmapSize.setter
- def ToolBitmapSize(self, value: Size, /) -> None: ...
+ def ToolBitmapSize(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def ToolPacking(self) -> int: ...
@ToolPacking.setter
@@ -46836,7 +46836,7 @@
"""
@overload
- def __init__(self, colText: Colour, colBack: Colour, font: Font) -> None:
+ def __init__(self, colText: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], colBack: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], font: Font) -> None:
...
@overload
@@ -46913,7 +46913,7 @@
Returns true if this object has no custom attributes set.
"""
- def SetBackgroundColour(self, colour: Colour) -> None:
+ def SetBackgroundColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetBackgroundColour(colour) -> None
@@ -46927,7 +46927,7 @@
Sets a new font.
"""
- def SetTextColour(self, colour: Colour) -> None:
+ def SetTextColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextColour(colour) -> None
@@ -46936,7 +46936,7 @@
@property
def BackgroundColour(self) -> Colour: ...
@BackgroundColour.setter
- def BackgroundColour(self, value: Colour, /) -> None: ...
+ def BackgroundColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Font(self) -> Font: ...
@Font.setter
@@ -46944,7 +46944,7 @@
@property
def TextColour(self) -> Colour: ...
@TextColour.setter
- def TextColour(self, value: Colour, /) -> None: ...
+ def TextColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
# end of class ItemAttr
@@ -47068,7 +47068,7 @@
Sets the alignment for the item.
"""
- def SetBackgroundColour(self, colBack: Colour) -> None:
+ def SetBackgroundColour(self, colBack: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetBackgroundColour(colBack) -> None
@@ -47135,7 +47135,7 @@
Sets the text label for the item.
"""
- def SetTextColour(self, colText: Colour) -> None:
+ def SetTextColour(self, colText: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextColour(colText) -> None
@@ -47155,7 +47155,7 @@
@property
def BackgroundColour(self) -> Colour: ...
@BackgroundColour.setter
- def BackgroundColour(self, value: Colour, /) -> None: ...
+ def BackgroundColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Column(self) -> int: ...
@Column.setter
@@ -47191,7 +47191,7 @@
@property
def TextColour(self) -> Colour: ...
@TextColour.setter
- def TextColour(self, value: Colour, /) -> None: ...
+ def TextColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def Width(self) -> int: ...
@Width.setter
@@ -47210,7 +47210,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=LC_ICON, validator: Validator=DefaultValidator, name: str=ListCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=LC_ICON, validator: Validator=DefaultValidator, name: str=ListCtrlNameStr) -> None:
...
@overload
@@ -47252,7 +47252,7 @@
Deletes all items and all columns.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=LC_ICON, validator: Validator=DefaultValidator, name: str=ListCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=LC_ICON, validator: Validator=DefaultValidator, name: str=ListCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LC_ICON, validator=DefaultValidator, name=ListCtrlNameStr) -> bool
@@ -47322,7 +47322,7 @@
...
@overload
- def FindItem(self, start: int, pt: Point, direction: int) -> int:
+ def FindItem(self, start: int, pt: Union[Point, _TwoInts], direction: int) -> int:
...
@overload
@@ -47499,7 +47499,7 @@
Returns the number of selected items in the list control.
"""
- def GetSubItemRect(self, item: int, subItem: int, rect: Rect, code: int=LIST_RECT_BOUNDS) -> bool:
+ def GetSubItemRect(self, item: int, subItem: int, rect: Union[Rect, _FourInts], code: int=LIST_RECT_BOUNDS) -> bool:
"""
GetSubItemRect(item, subItem, rect, code=LIST_RECT_BOUNDS) -> bool
@@ -47529,7 +47529,7 @@
Returns the rectangle taken by all items in the control.
"""
- def SetAlternateRowColour(self, colour: Colour) -> None:
+ def SetAlternateRowColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetAlternateRowColour(colour) -> None
@@ -47543,7 +47543,7 @@
Get the alternative row background colour.
"""
- def HitTest(self, point: Point) -> Tuple[int, int]:
+ def HitTest(self, point: Union[Point, _TwoInts]) -> Tuple[int, int]:
"""
HitTest(point) -> Tuple[int, int]
@@ -47630,7 +47630,7 @@
Scrolls the list control.
"""
- def SetBackgroundColour(self, col: Colour) -> bool:
+ def SetBackgroundColour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> bool:
"""
SetBackgroundColour(col) -> bool
@@ -47707,7 +47707,7 @@
Sets the data of an item.
"""
- def SetItemBackgroundColour(self, item: int, col: Colour) -> None:
+ def SetItemBackgroundColour(self, item: int, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetItemBackgroundColour(item, col) -> None
@@ -47749,7 +47749,7 @@
Sets the unselected and selected images associated with the item.
"""
- def SetItemPosition(self, item: int, pos: Point) -> bool:
+ def SetItemPosition(self, item: int, pos: Union[Point, _TwoInts]) -> bool:
"""
SetItemPosition(item, pos) -> bool
@@ -47770,7 +47770,7 @@
Sets the item text for this item.
"""
- def SetItemTextColour(self, item: int, col: Colour) -> None:
+ def SetItemTextColour(self, item: int, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetItemTextColour(item, col) -> None
@@ -47784,7 +47784,7 @@
Adds or removes a single window style.
"""
- def SetTextColour(self, col: Colour) -> None:
+ def SetTextColour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetTextColour(col) -> None
@@ -47891,7 +47891,7 @@
default.
"""
- def HitTestSubItem(self, point: Point) -> Any:
+ def HitTestSubItem(self, point: Union[Point, _TwoInts]) -> Any:
"""
HitTestSubItem(point) -> (item, flags, subitem)
@@ -47969,11 +47969,11 @@
@property
def AlternateRowColour(self) -> Colour: ...
@AlternateRowColour.setter
- def AlternateRowColour(self, value: Colour, /) -> None: ...
+ def AlternateRowColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
- def Column(self) -> int: ...
+ def Column(self) -> ListItem: ...
@Column.setter
- def Column(self, value: int, /) -> None: ...
+ def Column(self, value: ListItem, /) -> None: ...
@property
def ColumnCount(self) -> int: ...
@property
@@ -47994,9 +47994,9 @@
@ItemCount.setter
def ItemCount(self, value: int, /) -> None: ...
@property
- def ItemPosition(self) -> int: ...
+ def ItemPosition(self) -> Point: ...
@ItemPosition.setter
- def ItemPosition(self, value: int, /) -> None: ...
+ def ItemPosition(self, value: Point, /) -> None: ...
@property
def ItemRect(self) -> Rect: ...
@property
@@ -48010,7 +48010,7 @@
@property
def TextColour(self) -> Colour: ...
@TextColour.setter
- def TextColour(self, value: Colour, /) -> None: ...
+ def TextColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def TopItem(self) -> int: ...
@property
@@ -48070,7 +48070,7 @@
"""
@overload
- def __init__(self, parent: Window, winid: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=LC_REPORT, validator: Validator=DefaultValidator, name: str=ListCtrlNameStr) -> None:
+ def __init__(self, parent: Window, winid: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=LC_REPORT, validator: Validator=DefaultValidator, name: str=ListCtrlNameStr) -> None:
...
@overload
@@ -48285,7 +48285,7 @@
SetColumn(col) -> None
"""
- def SetPoint(self, point: Point) -> None:
+ def SetPoint(self, point: Union[Point, _TwoInts]) -> None:
"""
SetPoint(point) -> None
"""
@@ -48339,7 +48339,7 @@
@property
def Point(self) -> Point: ...
@Point.setter
- def Point(self, value: Point, /) -> None: ...
+ def Point(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def Text(self) -> str: ...
# end of class ListEvent
@@ -48536,7 +48536,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=TR_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=TreeCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=TR_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=TreeCtrlNameStr) -> None:
...
@overload
@@ -48599,7 +48599,7 @@
Collapses the given item and removes all children.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=TR_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=TreeCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=TR_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=TreeCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=TR_DEFAULT_STYLE, validator=DefaultValidator, name=TreeCtrlNameStr) -> bool
@@ -48901,7 +48901,7 @@
images are taken).
"""
- def HitTest(self, point: Point, flags: int) -> TreeItemId:
+ def HitTest(self, point: Union[Point, _TwoInts], flags: int) -> TreeItemId:
"""
HitTest(point, flags) -> TreeItemId
@@ -49009,7 +49009,7 @@
Sets the spacing for the tree control.
"""
- def SetItemBackgroundColour(self, item: TreeItemId, col: Colour) -> None:
+ def SetItemBackgroundColour(self, item: TreeItemId, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetItemBackgroundColour(item, col) -> None
@@ -49076,7 +49076,7 @@
Sets the item label.
"""
- def SetItemTextColour(self, item: TreeItemId, col: Colour) -> None:
+ def SetItemTextColour(self, item: TreeItemId, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetItemTextColour(item, col) -> None
@@ -49399,7 +49399,7 @@
control.
"""
- def CreateBase(self, parent: Window, id: int=ID_ANY, text: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> bool:
+ def CreateBase(self, parent: Window, id: int=ID_ANY, text: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ButtonNameStr) -> bool:
"""
CreateBase(parent, id=ID_ANY, text='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr) -> bool
"""
@@ -49566,7 +49566,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, colour: Colour=BLACK, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=CLRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=ColourPickerCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=CLRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=ColourPickerCtrlNameStr) -> None:
...
@overload
@@ -49583,7 +49583,7 @@
...
@overload
- def SetColour(self, col: Colour) -> None:
+ def SetColour(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(col) -> None
SetColour(colname) -> None
@@ -49591,7 +49591,7 @@
Sets the currently selected colour.
"""
- def Create(self, parent: Window, id: int=ID_ANY, colour: Colour=BLACK, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=CLRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=ColourPickerCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]=BLACK, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=CLRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=ColourPickerCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, colour=BLACK, pos=DefaultPosition, size=DefaultSize, style=CLRP_DEFAULT_STYLE, validator=DefaultValidator, name=ColourPickerCtrlNameStr) -> bool
@@ -49613,7 +49613,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], str], /) -> None: ...
# end of class ColourPickerCtrl
@@ -49627,7 +49627,7 @@
"""
@overload
- def __init__(self, generator: Object, id: int, colour: Colour) -> None:
+ def __init__(self, generator: Object, id: int, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
...
@overload
@@ -49647,7 +49647,7 @@
Retrieve the colour the user has just selected.
"""
- def SetColour(self, pos: Colour) -> None:
+ def SetColour(self, pos: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(pos) -> None
@@ -49656,7 +49656,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
# end of class ColourPickerEvent
FilePickerWidgetLabel: str
@@ -49674,7 +49674,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, path: str='', message: str=FileSelectorPromptStr, wildcard: str=FileSelectorDefaultWildcardStr, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=FLP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FilePickerCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, path: str='', message: str=FileSelectorPromptStr, wildcard: str=FileSelectorDefaultWildcardStr, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=FLP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FilePickerCtrlNameStr) -> None:
...
@overload
@@ -49686,7 +49686,7 @@
This control allows the user to select a file.
"""
- def Create(self, parent: Window, id: int=ID_ANY, path: str='', message: str=FileSelectorPromptStr, wildcard: str=FileSelectorDefaultWildcardStr, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=FLP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FilePickerCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, path: str='', message: str=FileSelectorPromptStr, wildcard: str=FileSelectorDefaultWildcardStr, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=FLP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FilePickerCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, path='', message=FileSelectorPromptStr, wildcard=FileSelectorDefaultWildcardStr, pos=DefaultPosition, size=DefaultSize, style=FLP_DEFAULT_STYLE, validator=DefaultValidator, name=FilePickerCtrlNameStr) -> bool
@@ -49739,7 +49739,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, path: str='', message: str=DirSelectorPromptStr, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DIRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=DirPickerCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, path: str='', message: str=DirSelectorPromptStr, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DIRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=DirPickerCtrlNameStr) -> None:
...
@overload
@@ -49751,7 +49751,7 @@
This control allows the user to select a directory.
"""
- def Create(self, parent: Window, id: int=ID_ANY, path: str='', message: str=DirSelectorPromptStr, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DIRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=DirPickerCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, path: str='', message: str=DirSelectorPromptStr, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DIRP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=DirPickerCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, path='', message=DirSelectorPromptStr, pos=DefaultPosition, size=DefaultSize, style=DIRP_DEFAULT_STYLE, validator=DefaultValidator, name=DirPickerCtrlNameStr) -> bool
@@ -49846,7 +49846,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, font: Font=NullFont, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=FNTP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FontPickerCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, font: Font=NullFont, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=FNTP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FontPickerCtrlNameStr) -> None:
...
@overload
@@ -49858,7 +49858,7 @@
This control allows the user to select a font.
"""
- def Create(self, parent: Window, id: int=ID_ANY, font: Font=NullFont, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=FNTP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FontPickerCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, font: Font=NullFont, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=FNTP_DEFAULT_STYLE, validator: Validator=DefaultValidator, name: str=FontPickerCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, font=NullFont, pos=DefaultPosition, size=DefaultSize, style=FNTP_DEFAULT_STYLE, validator=DefaultValidator, name=FontPickerCtrlNameStr) -> bool
@@ -49907,7 +49907,7 @@
Sets the minimum point size value allowed for the user-chosen font.
"""
- def SetSelectedColour(self, colour: Colour) -> None:
+ def SetSelectedColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetSelectedColour(colour) -> None
@@ -49937,7 +49937,7 @@
@property
def SelectedColour(self) -> Colour: ...
@SelectedColour.setter
- def SelectedColour(self, value: Colour, /) -> None: ...
+ def SelectedColour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def SelectedFont(self) -> Font: ...
@SelectedFont.setter
@@ -50177,7 +50177,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, defaultDirectory: str='', defaultFilename: str='', wildCard: str=FileSelectorDefaultWildcardStr, style: int=FC_DEFAULT_STYLE, pos: Point=DefaultPosition, size: Size=DefaultSize, name: str=FileCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, defaultDirectory: str='', defaultFilename: str='', wildCard: str=FileSelectorDefaultWildcardStr, style: int=FC_DEFAULT_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, name: str=FileCtrlNameStr) -> None:
...
@overload
@@ -50189,7 +50189,7 @@
This control allows the user to select a file.
"""
- def Create(self, parent: Window, id: int=ID_ANY, defaultDirectory: str='', defaultFilename: str='', wildCard: str=FileSelectorDefaultWildcardStr, style: int=FC_DEFAULT_STYLE, pos: Point=DefaultPosition, size: Size=DefaultSize, name: str=FileCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, defaultDirectory: str='', defaultFilename: str='', wildCard: str=FileSelectorDefaultWildcardStr, style: int=FC_DEFAULT_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, name: str=FileCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, defaultDirectory='', defaultFilename='', wildCard=FileSelectorDefaultWildcardStr, style=FC_DEFAULT_STYLE, pos=DefaultPosition, size=DefaultSize, name=FileCtrlNameStr) -> bool
@@ -50552,7 +50552,7 @@
popup is shown.
"""
- def PaintComboControl(self, dc: DC, rect: Rect) -> None:
+ def PaintComboControl(self, dc: DC, rect: Union[Rect, _FourInts]) -> None:
"""
PaintComboControl(dc, rect) -> None
@@ -50612,7 +50612,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> None:
...
@overload
@@ -50630,7 +50630,7 @@
...
@overload
- def SetMargins(self, pt: Point) -> bool:
+ def SetMargins(self, pt: Union[Point, _TwoInts]) -> bool:
"""
SetMargins(pt) -> bool
SetMargins(left, top=-1) -> bool
@@ -50645,7 +50645,7 @@
Copies the selected text to the clipboard.
"""
- def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, value: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, validator: Validator=DefaultValidator, name: str=ComboBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, value='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ComboBoxNameStr) -> bool
@@ -50681,7 +50681,7 @@
Returns true if given key combination should toggle the popup.
"""
- def PrepareBackground(self, dc: DC, rect: Rect, flags: int) -> None:
+ def PrepareBackground(self, dc: DC, rect: Union[Rect, _FourInts], flags: int) -> None:
"""
PrepareBackground(dc, rect, flags) -> None
@@ -50864,7 +50864,7 @@
Replaces the text between two positions with the given text, in the combo control text field.
"""
- def SetButtonBitmaps(self, bmpNormal: BitmapBundle, pushButtonBg: bool=False, bmpPressed: BitmapBundle=BitmapBundle(), bmpHover: BitmapBundle=BitmapBundle(), bmpDisabled: BitmapBundle=BitmapBundle()) -> None:
+ def SetButtonBitmaps(self, bmpNormal: Union[BitmapBundle, wx.Bitmap, wx.Icon], pushButtonBg: bool=False, bmpPressed: Union[BitmapBundle, wx.Bitmap, wx.Icon]=BitmapBundle(), bmpHover: Union[BitmapBundle, wx.Bitmap, wx.Icon]=BitmapBundle(), bmpDisabled: Union[BitmapBundle, wx.Bitmap, wx.Icon]=BitmapBundle()) -> None:
"""
SetButtonBitmaps(bmpNormal, pushButtonBg=False, bmpPressed=BitmapBundle(), bmpHover=BitmapBundle(), bmpDisabled=BitmapBundle()) -> None
@@ -51051,7 +51051,7 @@
@property
def Margins(self) -> Point: ...
@Margins.setter
- def Margins(self, value: Point, /) -> None: ...
+ def Margins(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def PopupControl(self) -> ComboPopup: ...
@PopupControl.setter
@@ -51067,7 +51067,7 @@
@Value.setter
def Value(self, value: str, /) -> None: ...
- def AnimateShow(self, rect: Rect, flags: int) -> bool:
+ def AnimateShow(self, rect: Union[Rect, _FourInts], flags: int) -> bool:
"""
AnimateShow(rect, flags) -> bool
@@ -51081,7 +51081,7 @@
This member function is not normally called in application code.
"""
- def DoShowPopup(self, rect: Rect, flags: int) -> None:
+ def DoShowPopup(self, rect: Union[Rect, _FourInts], flags: int) -> None:
"""
DoShowPopup(rect, flags) -> None
@@ -51110,7 +51110,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> None:
...
@overload
@@ -51123,7 +51123,7 @@
control to show the labels instead of the tabs.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name='') -> bool
@@ -51180,7 +51180,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> None:
...
@overload
@@ -51193,7 +51193,7 @@
wxListCtrl to show the labels instead of the tabs.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name='') -> bool
@@ -51246,7 +51246,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> None:
...
@overload
@@ -51259,7 +51259,7 @@
to show the labels instead of the tabs.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name='') -> bool
@@ -51319,7 +51319,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=BK_DEFAULT, name: str='') -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=BK_DEFAULT, name: str='') -> None:
...
@overload
@@ -51353,7 +51353,7 @@
Shortcut for ExpandNode( pageId, false ).
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=BK_DEFAULT, name: str='') -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=BK_DEFAULT, name: str='') -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=BK_DEFAULT, name='') -> bool
@@ -51452,7 +51452,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> None:
...
@overload
@@ -51464,7 +51464,7 @@
wxSimplebook is a control showing exactly one of its several pages.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str='') -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str='') -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name='') -> bool
@@ -51533,7 +51533,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=VListBoxNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=VListBoxNameStr) -> None:
...
@overload
@@ -51555,7 +51555,7 @@
...
@overload
- def SetMargins(self, pt: Point) -> None:
+ def SetMargins(self, pt: Union[Point, _TwoInts]) -> None:
"""
SetMargins(pt) -> None
SetMargins(x, y) -> None
@@ -51572,7 +51572,7 @@
Deletes all items from the control.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str=VListBoxNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str=VListBoxNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=VListBoxNameStr) -> bool
@@ -51705,7 +51705,7 @@
unset.
"""
- def SetSelectionBackground(self, col: Colour) -> None:
+ def SetSelectionBackground(self, col: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetSelectionBackground(col) -> None
@@ -51731,7 +51731,7 @@
@property
def Margins(self) -> Point: ...
@Margins.setter
- def Margins(self, value: Point, /) -> None: ...
+ def Margins(self, value: Union[Point, _TwoInts], /) -> None: ...
@property
def SelectedCount(self) -> int: ...
@property
@@ -51741,9 +51741,9 @@
@property
def SelectionBackground(self) -> Colour: ...
@SelectionBackground.setter
- def SelectionBackground(self, value: Colour, /) -> None: ...
+ def SelectionBackground(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
- def OnDrawItem(self, dc: DC, rect: Rect, n: int) -> None:
+ def OnDrawItem(self, dc: DC, rect: Union[Rect, _FourInts], n: int) -> None:
"""
OnDrawItem(dc, rect, n) -> None
@@ -51751,7 +51751,7 @@
item with the given index on the provided DC.
"""
- def OnDrawBackground(self, dc: DC, rect: Rect, n: int) -> None:
+ def OnDrawBackground(self, dc: DC, rect: Union[Rect, _FourInts], n: int) -> None:
"""
OnDrawBackground(dc, rect, n) -> None
@@ -51759,7 +51759,7 @@
around it.
"""
- def OnDrawSeparator(self, dc: DC, rect: Rect, n: int) -> None:
+ def OnDrawSeparator(self, dc: DC, rect: Union[Rect, _FourInts], n: int) -> None:
"""
OnDrawSeparator(dc, rect, n) -> None
@@ -51788,7 +51788,7 @@
"""
@overload
- def __init__(self, parent: Window, winid: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str="activityindicator") -> None:
+ def __init__(self, parent: Window, winid: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str="activityindicator") -> None:
...
@overload
@@ -51801,7 +51801,7 @@
currently busy performing some background task.
"""
- def Create(self, parent: Window, winid: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str="activityindicator") -> bool:
+ def Create(self, parent: Window, winid: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str="activityindicator") -> bool:
"""
Create(parent, winid=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name="activityindicator") -> bool
@@ -51849,7 +51849,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, label: str="", pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=BORDER_NONE, validator: Validator=DefaultValidator, name: str=CollapsibleHeaderCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, label: str="", pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=BORDER_NONE, validator: Validator=DefaultValidator, name: str=CollapsibleHeaderCtrlNameStr) -> None:
...
@overload
@@ -51861,7 +51861,7 @@
Header control above a collapsible pane.
"""
- def Create(self, parent: Window, id: int=ID_ANY, label: str="", pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=BORDER_NONE, validator: Validator=DefaultValidator, name: str=CollapsibleHeaderCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, label: str="", pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=BORDER_NONE, validator: Validator=DefaultValidator, name: str=CollapsibleHeaderCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, label="", pos=DefaultPosition, size=DefaultSize, style=BORDER_NONE, validator=DefaultValidator, name=CollapsibleHeaderCtrlNameStr) -> bool
@@ -51963,7 +51963,7 @@
@overload
- def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
+ def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
...
@overload
@@ -51975,7 +51975,7 @@
wxTopLevelWindow is a common base class for wxDialog and wxFrame.
"""
- def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> bool:
"""
Create(parent, id=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr) -> bool
@@ -52179,14 +52179,14 @@
using different icons for different situations (e.g.
"""
- def SetMaxSize(self, size: Size) -> None:
+ def SetMaxSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMaxSize(size) -> None
A simpler interface for setting the size hints than SetSizeHints().
"""
- def SetMinSize(self, size: Size) -> None:
+ def SetMinSize(self, size: Union[Size, _TwoInts]) -> None:
"""
SetMinSize(size) -> None
@@ -52194,7 +52194,7 @@
"""
@overload
- def SetSizeHints(self, minSize: Size, maxSize: Size=DefaultSize, incSize: Size=DefaultSize) -> None:
+ def SetSizeHints(self, minSize: Union[Size, _TwoInts], maxSize: Union[Size, _TwoInts]=DefaultSize, incSize: Union[Size, _TwoInts]=DefaultSize) -> None:
...
@overload
@@ -52378,7 +52378,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_DIALOG_STYLE, name: str=DialogNameStr) -> None:
+ def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_DIALOG_STYLE, name: str=DialogNameStr) -> None:
...
@overload
@@ -52415,7 +52415,7 @@
Centres the dialog box on the display.
"""
- def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_DIALOG_STYLE, name: str=DialogNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_DIALOG_STYLE, name: str=DialogNameStr) -> bool:
"""
Create(parent, id=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_DIALOG_STYLE, name=DialogNameStr) -> bool
@@ -52819,7 +52819,7 @@
This class represents the directory chooser dialog.
"""
- def __init__(self, parent: Optional[Window], message: str=DirSelectorPromptStr, defaultPath: str='', style: int=DD_DEFAULT_STYLE, pos: Point=DefaultPosition, size: Size=DefaultSize, name: str=DirDialogNameStr) -> None:
+ def __init__(self, parent: Optional[Window], message: str=DirSelectorPromptStr, defaultPath: str='', style: int=DD_DEFAULT_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, name: str=DirDialogNameStr) -> None:
"""
DirDialog(parent, message=DirSelectorPromptStr, defaultPath='', style=DD_DEFAULT_STYLE, pos=DefaultPosition, size=DefaultSize, name=DirDialogNameStr) -> None
@@ -52887,7 +52887,7 @@
# end of class DirDialog
-def DirSelector(message: str=DirSelectorPromptStr, default_path: str='', style: int=0, pos: Point=DefaultPosition, parent: Optional[Window]=None) -> str: """
+def DirSelector(message: str=DirSelectorPromptStr, default_path: str='', style: int=0, pos: Union[Point, _TwoInts]=DefaultPosition, parent: Optional[Window]=None) -> str: """
DirSelector(message=DirSelectorPromptStr, default_path='', style=0, pos=DefaultPosition, parent=None) -> str
Pops up a directory selector dialog.
@@ -52923,7 +52923,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, dir: str=DirDialogDefaultFolderStr, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DIRCTRL_DEFAULT_STYLE, filter: str='', defaultFilter: int=0, name: str=TreeCtrlNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, dir: str=DirDialogDefaultFolderStr, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DIRCTRL_DEFAULT_STYLE, filter: str='', defaultFilter: int=0, name: str=TreeCtrlNameStr) -> None:
...
@overload
@@ -52950,7 +52950,7 @@
Collapses the entire tree.
"""
- def Create(self, parent: Window, id: int=ID_ANY, dir: str=DirDialogDefaultFolderStr, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DIRCTRL_DEFAULT_STYLE, filter: str='', defaultFilter: int=0, name: str=TreeCtrlNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, dir: str=DirDialogDefaultFolderStr, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DIRCTRL_DEFAULT_STYLE, filter: str='', defaultFilter: int=0, name: str=TreeCtrlNameStr) -> bool:
"""
Create(parent, id=ID_ANY, dir=DirDialogDefaultFolderStr, pos=DefaultPosition, size=DefaultSize, style=DIRCTRL_DEFAULT_STYLE, filter='', defaultFilter=0, name=TreeCtrlNameStr) -> bool
@@ -53150,7 +53150,7 @@
"""
@overload
- def __init__(self, parent: GenericDirCtrl, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0) -> None:
+ def __init__(self, parent: GenericDirCtrl, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0) -> None:
...
@overload
@@ -53160,7 +53160,7 @@
DirFilterListCtrl(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0) -> None
"""
- def Create(self, parent: GenericDirCtrl, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0) -> bool:
+ def Create(self, parent: GenericDirCtrl, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0) -> bool
"""
@@ -53211,7 +53211,7 @@
This class represents the file chooser dialog.
"""
- def __init__(self, parent: Optional[Window], message: str=FileSelectorPromptStr, defaultDir: str='', defaultFile: str='', wildcard: str=FileSelectorDefaultWildcardStr, style: int=FD_DEFAULT_STYLE, pos: Point=DefaultPosition, size: Size=DefaultSize, name: str=FileDialogNameStr) -> None:
+ def __init__(self, parent: Optional[Window], message: str=FileSelectorPromptStr, defaultDir: str='', defaultFile: str='', wildcard: str=FileSelectorDefaultWildcardStr, style: int=FD_DEFAULT_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, name: str=FileDialogNameStr) -> None:
"""
FileDialog(parent, message=FileSelectorPromptStr, defaultDir='', defaultFile='', wildcard=FileSelectorDefaultWildcardStr, style=FD_DEFAULT_STYLE, pos=DefaultPosition, size=DefaultSize, name=FileDialogNameStr) -> None
@@ -53688,7 +53688,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
+ def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
...
@overload
@@ -53708,7 +53708,7 @@
Centres the frame on the display.
"""
- def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> bool:
"""
Create(parent, id=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr) -> bool
@@ -53884,7 +53884,7 @@
message, with a choice of OK, Yes, No and Cancel buttons.
"""
- def __init__(self, parent: Optional[Window], message: str, caption: str=MessageBoxCaptionStr, style: int=OK|CENTRE, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str=MessageBoxCaptionStr, style: int=OK|CENTRE, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
"""
MessageDialog(parent, message, caption=MessageBoxCaptionStr, style=OK|CENTRE, pos=DefaultPosition) -> None
@@ -54022,7 +54022,7 @@
@ExtendedMessage.setter
def ExtendedMessage(self, value: str, /) -> None: ...
@property
- def HelpLabel(self) -> MessageDialogButtonLabel: ...
+ def HelpLabel(self) -> str: ...
@HelpLabel.setter
def HelpLabel(self, value: MessageDialogButtonLabel, /) -> None: ...
@property
@@ -54034,7 +54034,7 @@
@property
def NoLabel(self) -> str: ...
@property
- def OKLabel(self) -> MessageDialogButtonLabel: ...
+ def OKLabel(self) -> str: ...
@OKLabel.setter
def OKLabel(self, value: MessageDialogButtonLabel, /) -> None: ...
@property
@@ -54056,7 +54056,7 @@
message, with a choice of OK, Yes, No and Cancel buttons.
"""
- def __init__(self, parent: Optional[Window], message: str, caption: str=MessageBoxCaptionStr, style: int=OK|CENTRE, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str=MessageBoxCaptionStr, style: int=OK|CENTRE, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
"""
GenericMessageDialog(parent, message, caption=MessageBoxCaptionStr, style=OK|CENTRE, pos=DefaultPosition) -> None
@@ -54194,7 +54194,7 @@
@ExtendedMessage.setter
def ExtendedMessage(self, value: str, /) -> None: ...
@property
- def HelpLabel(self) -> MessageDialogButtonLabel: ...
+ def HelpLabel(self) -> str: ...
@HelpLabel.setter
def HelpLabel(self, value: MessageDialogButtonLabel, /) -> None: ...
@property
@@ -54206,7 +54206,7 @@
@property
def NoLabel(self) -> str: ...
@property
- def OKLabel(self) -> MessageDialogButtonLabel: ...
+ def OKLabel(self) -> str: ...
@OKLabel.setter
def OKLabel(self, value: MessageDialogButtonLabel, /) -> None: ...
@property
@@ -54584,7 +54584,7 @@
Create method for two-step creation.
"""
- def Position(self, ptOrigin: Point, sizePopup: Size) -> None:
+ def Position(self, ptOrigin: Union[Point, _TwoInts], sizePopup: Union[Size, _TwoInts]) -> None:
"""
Position(ptOrigin, sizePopup) -> None
@@ -54676,7 +54676,7 @@
Shows simple text in a popup tip window on creation.
"""
- def SetBoundingRect(self, rectBound: Rect) -> None:
+ def SetBoundingRect(self, rectBound: Union[Rect, _FourInts]) -> None:
"""
SetBoundingRect(rectBound) -> None
@@ -54760,14 +54760,14 @@
(slider).
"""
- def SetColour(self, colour: Colour) -> None:
+ def SetColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(colour) -> None
Sets the default colour for the colour dialog.
"""
- def SetCustomColour(self, i: int, colour: Colour) -> None:
+ def SetCustomColour(self, i: int, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetCustomColour(i, colour) -> None
@@ -54800,7 +54800,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
# end of class ColourData
@@ -54859,7 +54859,7 @@
"""
@overload
- def __init__(self, evtType: EventType, dialog: ColourDialog, colour: Colour) -> None:
+ def __init__(self, evtType: EventType, dialog: ColourDialog, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
...
@overload
@@ -54878,7 +54878,7 @@
Retrieve the colour the user has just selected.
"""
- def SetColour(self, colour: Colour) -> None:
+ def SetColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(colour) -> None
@@ -54887,11 +54887,11 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
# end of class ColourDialogEvent
-def GetColourFromUser(parent: Window, colInit: Colour, caption: str='', data: Optional[ColourData]=None) -> Colour: """
+def GetColourFromUser(parent: Window, colInit: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], caption: str='', data: Optional[ColourData]=None) -> Colour: """
GetColourFromUser(parent, colInit, caption='', data=None) -> Colour
Shows the colour selection dialog and returns the colour selected by
@@ -54916,11 +54916,11 @@
"""
@overload
- def __init__(self, parent: Optional[Window], message: str, caption: str, choices: List[str], style: int=CHOICEDLG_STYLE, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str, choices: List[str], style: int=CHOICEDLG_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
...
@overload
- def __init__(self, parent: Optional[Window], message: str, caption: str, n: int, choices: str, style: int=CHOICEDLG_STYLE, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str, n: int, choices: str, style: int=CHOICEDLG_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
"""
MultiChoiceDialog(parent, message, caption, n, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition) -> None
MultiChoiceDialog(parent, message, caption, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition) -> None
@@ -54970,7 +54970,7 @@
allows the user to select one.
"""
- def __init__(self, parent: Optional[Window], message: str, caption: str, choices: List[str], style: int=CHOICEDLG_STYLE, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str, choices: List[str], style: int=CHOICEDLG_STYLE, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
"""
PySingleChoiceDialog(parent, message, caption, choices, style=CHOICEDLG_STYLE, pos=DefaultPosition) -> None
@@ -55126,7 +55126,7 @@
wxFindReplaceData holds the data for wxFindReplaceDialog.
"""
- def __init__(self, flags: Uint32=0) -> None:
+ def __init__(self, flags: int=0) -> None:
"""
FindReplaceData(flags=0) -> None
@@ -55161,7 +55161,7 @@
Set the string to find (used as initial value by the dialog).
"""
- def SetFlags(self, flags: Uint32) -> None:
+ def SetFlags(self, flags: int) -> None:
"""
SetFlags(flags) -> None
@@ -55179,9 +55179,9 @@
@FindString.setter
def FindString(self, value: str, /) -> None: ...
@property
- def Flags(self) -> Uint32: ...
+ def Flags(self) -> int: ...
@Flags.setter
- def Flags(self, value: Uint32, /) -> None: ...
+ def Flags(self, value: int, /) -> None: ...
@property
def ReplaceString(self) -> str: ...
@ReplaceString.setter
@@ -55296,7 +55296,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE|VSCROLL|HSCROLL, name: str=FrameNameStr) -> None:
+ def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE|VSCROLL|HSCROLL, name: str=FrameNameStr) -> None:
...
@overload
@@ -55338,7 +55338,7 @@
Arranges the MDI child windows in a cascade.
"""
- def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE|VSCROLL|HSCROLL, name: str=FrameNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE|VSCROLL|HSCROLL, name: str=FrameNameStr) -> bool:
"""
Create(parent, id=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE|VSCROLL|HSCROLL, name=FrameNameStr) -> bool
@@ -55421,7 +55421,7 @@
"""
@overload
- def __init__(self, parent: Optional[MDIParentFrame], id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
+ def __init__(self, parent: Optional[MDIParentFrame], id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
...
@overload
@@ -55441,7 +55441,7 @@
Activates this MDI child frame.
"""
- def Create(self, parent: MDIParentFrame, id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> bool:
+ def Create(self, parent: MDIParentFrame, id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> bool:
"""
Create(parent, id=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr) -> bool
@@ -55582,7 +55582,7 @@
only).
"""
- def SetColour(self, colour: Colour) -> None:
+ def SetColour(self, colour: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> None:
"""
SetColour(colour) -> None
@@ -55621,7 +55621,7 @@
@property
def Colour(self) -> Colour: ...
@Colour.setter
- def Colour(self, value: Colour, /) -> None: ...
+ def Colour(self, value: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], /) -> None: ...
@property
def InitialFont(self) -> Font: ...
@InitialFont.setter
@@ -55720,7 +55720,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> None:
...
@overload
@@ -55733,7 +55733,7 @@
enable or disable them.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) -> bool
@@ -55796,7 +55796,7 @@
"""
@overload
- def __init__(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> None:
+ def __init__(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> None:
...
@overload
@@ -55809,7 +55809,7 @@
allowing to move the items in it.
"""
- def Create(self, parent: Window, id: int=ID_ANY, pos: Point=DefaultPosition, size: Size=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, order: List[int]=[], items: List[str]=[], style: int=0, validator: Validator=DefaultValidator, name: str=RearrangeListNameStr) -> bool:
"""
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) -> bool
@@ -55843,7 +55843,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], message: str, title: str='', order: List[int]=[], items: List[str]=[], pos: Point=DefaultPosition, name: str=RearrangeDialogNameStr) -> None:
+ def __init__(self, parent: Optional[Window], message: str, title: str='', order: List[int]=[], items: List[str]=[], pos: Union[Point, _TwoInts]=DefaultPosition, name: str=RearrangeDialogNameStr) -> None:
...
@overload
@@ -55855,7 +55855,7 @@
A dialog allowing the user to rearrange the specified items.
"""
- def Create(self, parent: Window, message: str, title: str='', order: List[int]=[], items: List[str]=[], pos: Point=DefaultPosition, name: str=RearrangeDialogNameStr) -> bool:
+ def Create(self, parent: Window, message: str, title: str='', order: List[int]=[], items: List[str]=[], pos: Union[Point, _TwoInts]=DefaultPosition, name: str=RearrangeDialogNameStr) -> bool:
"""
Create(parent, message, title='', order=[], items=[], pos=DefaultPosition, name=RearrangeDialogNameStr) -> bool
@@ -55908,7 +55908,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=CAPTION|RESIZE_BORDER, name: str=FrameNameStr) -> None:
+ def __init__(self, parent: Optional[Window], id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=CAPTION|RESIZE_BORDER, name: str=FrameNameStr) -> None:
...
@overload
@@ -55920,7 +55920,7 @@
A miniframe is a frame with a small title bar.
"""
- def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=CAPTION|RESIZE_BORDER, name: str=FrameNameStr) -> bool:
+ def Create(self, parent: Window, id: int=ID_ANY, title: str='', pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=CAPTION|RESIZE_BORDER, name: str=FrameNameStr) -> bool:
"""
Create(parent, id=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=CAPTION|RESIZE_BORDER, name=FrameNameStr) -> bool
@@ -55950,7 +55950,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], message: str, caption: str=GetTextFromUserPromptStr, value: str='', style: int=TextEntryDialogStyle, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str=GetTextFromUserPromptStr, value: str='', style: int=TextEntryDialogStyle, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
...
@overload
@@ -55963,7 +55963,7 @@
from the user.
"""
- def Create(self, parent: Window, message: str, caption: str=GetTextFromUserPromptStr, value: str='', style: int=TextEntryDialogStyle, pos: Point=DefaultPosition) -> bool:
+ def Create(self, parent: Window, message: str, caption: str=GetTextFromUserPromptStr, value: str='', style: int=TextEntryDialogStyle, pos: Union[Point, _TwoInts]=DefaultPosition) -> bool:
"""
Create(parent, message, caption=GetTextFromUserPromptStr, value='', style=TextEntryDialogStyle, pos=DefaultPosition) -> bool
"""
@@ -56027,7 +56027,7 @@
string from the user.
"""
- def __init__(self, parent: Optional[Window], message: str, caption: str=GetPasswordFromUserPromptStr, defaultValue: str='', style: int=TextEntryDialogStyle, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, caption: str=GetPasswordFromUserPromptStr, defaultValue: str='', style: int=TextEntryDialogStyle, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
"""
PasswordEntryDialog(parent, message, caption=GetPasswordFromUserPromptStr, defaultValue='', style=TextEntryDialogStyle, pos=DefaultPosition) -> None
@@ -56069,7 +56069,7 @@
"""
@overload
- def __init__(self, parent: Optional[Window], message: str, prompt: str, caption: str, value: int, min: int, max: int, pos: Point=DefaultPosition) -> None:
+ def __init__(self, parent: Optional[Window], message: str, prompt: str, caption: str, value: int, min: int, max: int, pos: Union[Point, _TwoInts]=DefaultPosition) -> None:
...
@overload
@@ -56082,7 +56082,7 @@
user.
"""
- def Create(self, parent: Window, message: str, prompt: str, caption: str, value: int, min: int, max: int, pos: Point=DefaultPosition) -> bool:
+ def Create(self, parent: Window, message: str, prompt: str, caption: str, value: int, min: int, max: int, pos: Union[Point, _TwoInts]=DefaultPosition) -> bool:
"""
Create(parent, message, prompt, caption, value, min, max, pos=DefaultPosition) -> bool
"""
@@ -56105,7 +56105,7 @@
# end of class NumberEntryDialog
-def GetNumberFromUser(message: str, prompt: str, caption: str, value: int, min: int=0, max: int=100, parent: Optional[Window]=None, pos: Point=DefaultPosition) -> int: """
+def GetNumberFromUser(message: str, prompt: str, caption: str, value: int, min: int=0, max: int=100, parent: Optional[Window]=None, pos: Union[Point, _TwoInts]=DefaultPosition) -> int: """
GetNumberFromUser(message, prompt, caption, value, min=0, max=100, parent=None, pos=DefaultPosition) -> int
Shows a dialog asking the user for numeric input.
@@ -56432,7 +56432,7 @@
This function enables or disables all top level windows.
"""
-def FindWindowAtPoint(pt: Point) -> Window: """
+def FindWindowAtPoint(pt: Union[Point, _TwoInts]) -> Window: """
FindWindowAtPoint(pt) -> Window
Find the deepest window at the given mouse position in screen
@@ -57054,7 +57054,7 @@
"""
@overload
- def MouseMove(self, point: Point) -> bool:
+ def MouseMove(self, point: Union[Point, _TwoInts]) -> bool:
...
@overload
@@ -57251,7 +57251,7 @@
section.
"""
- def DisplayTextPopup(self, text: str, pos: Point) -> bool:
+ def DisplayTextPopup(self, text: str, pos: Union[Point, _TwoInts]) -> bool:
"""
DisplayTextPopup(text, pos) -> bool
@@ -57310,7 +57310,7 @@
If the viewer is running, quits it by disconnecting.
"""
- def SetFrameParameters(self, titleFormat: str, size: Size, pos: Point=DefaultPosition, newFrameEachTime: bool=False) -> None:
+ def SetFrameParameters(self, titleFormat: str, size: Union[Size, _TwoInts], pos: Union[Point, _TwoInts]=DefaultPosition, newFrameEachTime: bool=False) -> None:
"""
SetFrameParameters(titleFormat, size, pos=DefaultPosition, newFrameEachTime=False) -> None
@@ -57331,9 +57331,9 @@
Sets detailed viewer information.
"""
@property
- def FrameParameters(self) -> str: ...
+ def FrameParameters(self) -> Tuple[Frame, Size, Point, bool]: ...
@FrameParameters.setter
- def FrameParameters(self, value: str, /) -> None: ...
+ def FrameParameters(self, value: Tuple[Frame, Size, Point, bool], /) -> None: ...
@property
def ParentWindow(self) -> Window: ...
@ParentWindow.setter
@@ -57391,7 +57391,7 @@
Shows help for the given window.
"""
- def ShowHelpAtPoint(self, window: WindowBase, point: Point, origin: HelpEvent.Origin) -> bool:
+ def ShowHelpAtPoint(self, window: WindowBase, point: Union[Point, _TwoInts], origin: HelpEvent.Origin) -> bool:
"""
ShowHelpAtPoint(window, point, origin) -> bool
@@ -57504,7 +57504,7 @@
when pressed, puts the application into context-help mode.
"""
- def __init__(self, parent: Window, id: int=ID_CONTEXT_HELP, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0) -> None:
+ def __init__(self, parent: Window, id: int=ID_CONTEXT_HELP, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0) -> None:
"""
ContextHelpButton(parent, id=ID_CONTEXT_HELP, pos=DefaultPosition, size=DefaultSize, style=0) -> None
@@ -57793,7 +57793,7 @@
"""
@staticmethod
- def SelectLightDark(colForLight: Colour, colForDark: Colour) -> Colour:
+ def SelectLightDark(colForLight: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None], colForDark: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> Colour:
"""
SelectLightDark(colForLight, colForDark) -> Colour
@@ -57985,7 +57985,7 @@
"""
@staticmethod
- def GetBitmap(id: ArtID, client: ArtClient=ART_OTHER, size: Size=DefaultSize) -> Bitmap:
+ def GetBitmap(id: ArtID, client: ArtClient=ART_OTHER, size: Union[Size, _TwoInts]=DefaultSize) -> Bitmap:
"""
GetBitmap(id, client=ART_OTHER, size=DefaultSize) -> Bitmap
@@ -57993,7 +57993,7 @@
"""
@staticmethod
- def GetBitmapBundle(id: ArtID, client: ArtClient=ART_OTHER, size: Size=DefaultSize) -> BitmapBundle:
+ def GetBitmapBundle(id: ArtID, client: ArtClient=ART_OTHER, size: Union[Size, _TwoInts]=DefaultSize) -> BitmapBundle:
"""
GetBitmapBundle(id, client=ART_OTHER, size=DefaultSize) -> BitmapBundle
@@ -58001,7 +58001,7 @@
"""
@staticmethod
- def GetIcon(id: ArtID, client: ArtClient=ART_OTHER, size: Size=DefaultSize) -> Icon:
+ def GetIcon(id: ArtID, client: ArtClient=ART_OTHER, size: Union[Size, _TwoInts]=DefaultSize) -> Icon:
"""
GetIcon(id, client=ART_OTHER, size=DefaultSize) -> Icon
@@ -58111,7 +58111,7 @@
one can be set)
"""
- def CreateBitmap(self, id: ArtID, client: ArtClient, size: Size) -> Bitmap:
+ def CreateBitmap(self, id: ArtID, client: ArtClient, size: Union[Size, _TwoInts]) -> Bitmap:
"""
CreateBitmap(id, client, size) -> Bitmap
@@ -58119,7 +58119,7 @@
requested art resource.
"""
- def CreateBitmapBundle(self, id: ArtID, client: ArtClient, size: Size) -> BitmapBundle:
+ def CreateBitmapBundle(self, id: ArtID, client: ArtClient, size: Union[Size, _TwoInts]) -> BitmapBundle:
"""
CreateBitmapBundle(id, client, size) -> BitmapBundle
@@ -58187,11 +58187,11 @@
"""
@overload
- def BeginDrag(self, hotspot: Point, window: Window, boundingWindow: Window) -> bool:
+ def BeginDrag(self, hotspot: Union[Point, _TwoInts], window: Window, boundingWindow: Window) -> bool:
...
@overload
- def BeginDrag(self, hotspot: Point, window: Window, fullScreen: bool=False, rect: Optional[Rect]=None) -> bool:
+ def BeginDrag(self, hotspot: Union[Point, _TwoInts], window: Window, fullScreen: bool=False, rect: Optional[Union[Rect, _FourInts]]=None) -> bool:
"""
BeginDrag(hotspot, window, fullScreen=False, rect=None) -> bool
BeginDrag(hotspot, window, boundingWindow) -> bool
@@ -58213,7 +58213,7 @@
Hides the image.
"""
- def Move(self, pt: Point) -> bool:
+ def Move(self, pt: Union[Point, _TwoInts]) -> bool:
"""
Move(pt) -> bool
@@ -58277,11 +58277,11 @@
"""
@overload
- def BeginDrag(self, hotspot: Point, window: Window, boundingWindow: Window) -> bool:
+ def BeginDrag(self, hotspot: Union[Point, _TwoInts], window: Window, boundingWindow: Window) -> bool:
...
@overload
- def BeginDrag(self, hotspot: Point, window: Window, fullScreen: bool=False, rect: Optional[Rect]=None) -> bool:
+ def BeginDrag(self, hotspot: Union[Point, _TwoInts], window: Window, fullScreen: bool=False, rect: Optional[Union[Rect, _FourInts]]=None) -> bool:
"""
BeginDrag(hotspot, window, fullScreen=False, rect=None) -> bool
BeginDrag(hotspot, window, boundingWindow) -> bool
@@ -58289,7 +58289,7 @@
Start dragging the image, in a window or full screen.
"""
- def DoDrawImage(self, dc: DC, pos: Point) -> bool:
+ def DoDrawImage(self, dc: DC, pos: Union[Point, _TwoInts]) -> bool:
"""
DoDrawImage(dc, pos) -> bool
@@ -58304,7 +58304,7 @@
Call this when the drag has finished.
"""
- def GetImageRect(self, pos: Point) -> Rect:
+ def GetImageRect(self, pos: Union[Point, _TwoInts]) -> Rect:
"""
GetImageRect(pos) -> Rect
@@ -58319,7 +58319,7 @@
Hides the image.
"""
- def Move(self, pt: Point) -> bool:
+ def Move(self, pt: Union[Point, _TwoInts]) -> bool:
"""
Move(pt) -> bool
@@ -58333,7 +58333,7 @@
Shows the image.
"""
- def UpdateBackingFromWindow(self, windowDC: DC, destDC: MemoryDC, sourceRect: Rect, destRect: Rect) -> bool:
+ def UpdateBackingFromWindow(self, windowDC: DC, destDC: MemoryDC, sourceRect: Union[Rect, _FourInts], destRect: Union[Rect, _FourInts]) -> bool:
"""
UpdateBackingFromWindow(windowDC, destDC, sourceRect, destRect) -> bool
@@ -58389,7 +58389,7 @@
with buttons and a zoom control.
"""
- def __init__(self, preview: PrintPreview, buttons: int, parent: Window, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str="panel") -> None:
+ def __init__(self, preview: PrintPreview, buttons: int, parent: Window, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str="panel") -> None:
"""
PreviewControlBar(preview, buttons, parent, pos=DefaultPosition, size=DefaultSize, style=0, name="panel") -> None
@@ -58447,7 +58447,7 @@
system to display the preview.
"""
- def __init__(self, preview: PrintPreview, parent: Window, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str="canvas") -> None:
+ def __init__(self, preview: PrintPreview, parent: Window, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=0, name: str="canvas") -> None:
"""
PreviewCanvas(preview, parent, pos=DefaultPosition, size=DefaultSize, style=0, name="canvas") -> None
@@ -58478,7 +58478,7 @@
interface.
"""
- def __init__(self, preview: PrintPreview, parent: Optional[Window], title: str="PrintPreview", pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
+ def __init__(self, preview: PrintPreview, parent: Optional[Window], title: str="PrintPreview", pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_FRAME_STYLE, name: str=FrameNameStr) -> None:
"""
PreviewFrame(preview, parent, title="PrintPreview", pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr) -> None
@@ -58813,7 +58813,7 @@
application document.
"""
- def FitThisSizeToPage(self, imageSize: Size) -> None:
+ def FitThisSizeToPage(self, imageSize: Union[Size, _TwoInts]) -> None:
"""
FitThisSizeToPage(imageSize) -> None
@@ -58823,7 +58823,7 @@
rectangle.
"""
- def FitThisSizeToPageMargins(self, imageSize: Size, pageSetupData: PageSetupDialogData) -> None:
+ def FitThisSizeToPageMargins(self, imageSize: Union[Size, _TwoInts], pageSetupData: PageSetupDialogData) -> None:
"""
FitThisSizeToPageMargins(imageSize, pageSetupData) -> None
@@ -58832,7 +58832,7 @@
margins set in the given wxPageSetupDialogData object.
"""
- def FitThisSizeToPaper(self, imageSize: Size) -> None:
+ def FitThisSizeToPaper(self, imageSize: Union[Size, _TwoInts]) -> None:
"""
FitThisSizeToPaper(imageSize) -> None
@@ -59069,7 +59069,7 @@
aborting the printing process.
"""
- def __init__(self, parent: Optional[Window], documentTitle: str, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=DEFAULT_DIALOG_STYLE, name: str="dialog") -> None:
+ def __init__(self, parent: Optional[Window], documentTitle: str, pos: Union[Point, _TwoInts]=DefaultPosition, size: Union[Size, _TwoInts]=DefaultSize, style: int=DEFAULT_DIALOG_STYLE, name: str="dialog") -> None:
"""
PrintAbortDialog(parent, documentTitle, pos=DefaultPosition, size=DefaultSize, style=DEFAULT_DIALOG_STYLE, name="dialog") -> None
@@ -59740,14 +59740,14 @@
Same as Text() but doesn't interpret the string as containing markup.
"""
- def Foreground(self, foreground: Colour) -> BusyInfoFlags:
+ def Foreground(self, foreground: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> BusyInfoFlags:
"""
Foreground(foreground) -> BusyInfoFlags
Sets the foreground colour of the title and text strings.
"""
- def Background(self, background: Colour) -> BusyInfoFlags:
+ def Background(self, background: Union[Colour, wx.Colour, _ThreeInts, _FourInts, str, _None]) -> BusyInfoFlags:
"""
Background(background) -> BusyInfoFlags
@@ -59776,7 +59776,7 @@
"""
@overload
- def __init__(self, window: Window, size: Size) -> None:
+ def __init__(self, window: Window, size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -59795,7 +59795,7 @@
"""
@overload
- def Create(self, window: Window, size: Size) -> bool:
+ def Create(self, window: Window, size: Union[Size, _TwoInts]) -> bool:
...
@overload
@@ -59822,7 +59822,7 @@
"""
@overload
- def Move(self, pt: Point) -> None:
+ def Move(self, pt: Union[Point, _TwoInts]) -> None:
...
@overload
@@ -59835,7 +59835,7 @@
"""
@overload
- def SetSize(self, size: Size) -> None:
+ def SetSize(self, size: Union[Size, _TwoInts]) -> None:
...
@overload
@@ -59914,9 +59914,9 @@
@property
def Position(self) -> Point: ...
@property
- def Size(self) -> int: ...
+ def Size(self) -> Size: ...
@Size.setter
- def Size(self, value: int, /) -> None: ...
+ def Size(self, value: Union[Size, _TwoInts], /) -> None: ...
@property
def Window(self) -> Window: ...
# end of class Caret
@@ -60176,7 +60176,7 @@
constructor.
"""
- def MouseHitTest(self, pos: Point) -> int:
+ def MouseHitTest(self, pos: Union[Point, _TwoInts]) -> int:
"""
MouseHitTest(pos) -> int
@@ -60190,14 +60190,14 @@
Must be overridden to react to mouse clicks.
"""
- def MouseDragBegin(self, item: int, pos: Point) -> bool:
+ def MouseDragBegin(self, item: int, pos: Union[Point, _TwoInts]) -> bool:
"""
MouseDragBegin(item, pos) -> bool
Must be overridden to allow or deny dragging of the item.
"""
- def MouseDragging(self, item: int, pos: Point) -> None:
+ def MouseDragging(self, item: int, pos: Union[Point, _TwoInts]) -> None:
"""
MouseDragging(item, pos) -> None
@@ -60205,7 +60205,7 @@
dragged.
"""
- def MouseDragEnd(self, item: int, pos: Point) -> None:
+ def MouseDragEnd(self, item: int, pos: Union[Point, _TwoInts]) -> None:
"""
MouseDragEnd(item, pos) -> None
@@ -61114,7 +61114,7 @@
@overload
@staticmethod
- def IsBMP(value: Uint32) -> bool:
+ def IsBMP(value: int) -> bool:
...
@overload
@@ -61129,7 +61129,7 @@
@overload
@staticmethod
- def IsSupplementary(value: Uint32) -> bool:
+ def IsSupplementary(value: int) -> bool:
...
@overload
@@ -61144,7 +61144,7 @@
@overload
@staticmethod
- def HighSurrogate(value: Uint32) -> Uint16:
+ def HighSurrogate(value: int) -> Uint16:
...
@overload
@@ -61158,7 +61158,7 @@
@overload
@staticmethod
- def LowSurrogate(value: Uint32) -> Uint16:
+ def LowSurrogate(value: int) -> Uint16:
...
@overload
|
There are some dubious looking changes, in some of the .pyi files, but i think they result from preexisting wrong/unhelpfull annotations in other parts, e.g. the setter functions, which then get reused in the property hints |
I also plan to make some improvements to the |
- Clean up path joining
Separate, smaller PRs are generally better. I'm not sure I have an opinion about pyi vs inline type hints. Perhaps someone else does? |
Although my opinion counts for very little, I would vote for pyi files. Inline type hinting makes Python code almost unreadable for me - and it can look messy in some cases. Maybe it’s just me, but I had found occurrences where I had to stop trying to understand the arguments of a function after the third parameter or so - kinda looked like a mix of C++ and Perl mumbo-jumbo. |
Build is failing on Python 3.9. I think you have to use |
The only difference I would see if if we didn't have infrastructure to package the .pyi files yet, or before Python 3.14. Now, with 3.14, the typing annotations will finally be only text, not parsed, to avoid a runtime overhead when only tools like type checkers make use of it. It was delayed a bit. For the pure python files I agree with you that it can become unreadable at one point. The .pyi files allow a more concise syntax especially for overloads. But on another, having it separated from the implementation also needs we need to be careful to keep them updated in future PRs. Maybe we would need to implement a stubs test check to continuously verify that the stubs still describe the code. Take a look at https://mypy.readthedocs.io/en/stable/stubtest.html, with the drawbacks and suggestions, maybe mypy checks for these files will still be needed. |
Oh, I understand it. Line 253 of tweaker_tools is the signature of a function added. Just import in that file, above all others ( from __future__ import annotations It's only an internal build script, so no worries of effects on user code. |
Ah yeah, dumb mistake; i opted to adapt the style to the existing codebase and use |
Thanks for the link! I have not used stubtest before and cannot comment how difficult/usefull it would be for a rather complex project with lots of runtime magic as wxPython. There may also be a test-runtime concern maybe? I am also unsure how much code stubtest actually needs to execute. |
Ya... I don't know. But I don't think the test coverage is very robust here yet. Maybe starting to run mypy (gradually) would help. As what I understand, at runtime, the types could be different and only represent one of the possibilities, not really type-checking the flow of code. Concerning type checkers, there's two new ones. The astral.sh's ty (developped from inside the ruff codebase initially, but getting more serious and go a name recently). Otherwise, the traditional mypy or node-based Pyright, that is also really useful. |
One argument for inline hints could be that (at least in the
Generated by this horrible bash onelinerrg -U --multiline-dotall -I -N --trim 'def [\w]*?\(.*?\).*?:' wx/lib/agw/** -t py | tr -d '\n' | sed 's/:/:\n/g' | awk '{print gsub(/,|[^(])/, "")}' | sort -g | uniq -c And i don't really feel comfortable to contribute an automated test which verifies the integrity of .pyi files should that be a hard requirement. otoh it would be kinda cool to be able to generate a new "version" of the type stubs without going through all the build steps, so iteration can be faster? Again i am unsure if this is feasible for once and necessary second and whether this requires separate .pyi files, as the regular .py files are not part of the expensive build steps anyways iiuc |
I think what's missing for this PR are the second and third checkboxes in the description with the 3rd one being pretty important i think, as this leads to different .pyi files being generated in local development depending on if you build the first time or already have intermediate files flying around. I can only think of one "good" solution: Track the origin etg file inside the cache and update only the corresponding part of the cache when executing an etg file. If you agree with this analysis and the solution sounds reasonable then i am going to give it a try. But please suggest easier alternatives if you have got any! 😄 |
The cache file contents look like this for one of my runs (don't know if they depend on platform/python version/...)
Uint32
to pythonint
Example changes for illustration:
Open Questions/Todos:
sip/gen
as json file. Is there a better location?The cache file is currently never cleaned. It should probably be deleted by build.py after the etg stage finished.sys.argv
when executing the etg module scripts feels kind of hacky. Is this okay, or are there better solutions?Fixes #2775
Fixes #2733