GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.Icon — wxPython 4.3.2 Docs
|
Default constructor. |
|
Copies bmp bitmap to this icon. |
|
MSW-only method to create a wx.Icon from a native icon handle. |
|
Gets the colour depth of the icon. |
|
MSW-only method to return the native icon handle. |
|
Gets the height of the icon in physical pixels. |
|
Gets the height of the icon in logical pixels. |
|
Gets the size of the icon in logical pixels. |
|
Gets the width of the icon in logical pixels. |
|
Gets the scale factor of this icon. |
|
Gets the size of the icon in physical pixels. |
|
Gets the width of the icon in physical pixels. |
|
Returns |
|
Loads an icon from a file or resource. |
|
Properties Summary¶See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
Class API¶Possible constructors:
Icon() -> None Icon(icon) -> None Icon(name, type=BITMAP_TYPE_ANY, desiredWidth=-1, desiredHeight=-1) -> None Icon(loc) -> None Icon(bmp) -> None
An icon is a small rectangular bitmap usually used for denoting a minimized application.
__init__ (self)
Default constructor.
Constructs an icon object with no data; an assignment or another member function such as LoadFile must be called subsequently.
None
__init__ (self, icon)
Copy constructor.
icon (wx.Icon)
None
__init__ (self, name, type=BITMAP_TYPE_ANY, desiredWidth=-1, desiredHeight=-1)
Loads an icon from a file or resource.
name (string) – This can refer to a resource name or a filename under MS Windows and X. Its meaning is determined by the type parameter.
type (BitmapType) – May be one of the wx.BitmapType values and indicates which type of bitmap should be loaded. See the note in the class detailed description. Note that the ICON_DEFAULT_TYPE constant has different value under different wxWidgets ports. See the icon.h header for the value it takes for a specific port.
desiredWidth (int) – Specifies the desired width of the icon. This parameter only has an effect in Windows where icon resources can contain several icons of different sizes.
desiredHeight (int) – Specifies the desired height of the icon. This parameter only has an effect in Windows where icon resources can contain several icons of different sizes.
None
See also
__init__ (self, loc)
Loads an icon from the specified location.
loc (wx.IconLocation)
None
__init__ (self, bmp)
Construct an Icon from a Bitmap.
None
Copies bmp bitmap to this icon.
Under MS Windows the bitmap must have mask colour set.
bmp (wx.Bitmap)
None
See also
MSW-only method to create a wx.Icon from a native icon handle.
bool
Gets the colour depth of the icon.
A value of 1 indicates a monochrome icon.
int
MSW-only method to return the native icon handle.
int
int
Gets the height of the icon in physical pixels.
int
See also
Gets the height of the icon in logical pixels.
See wx.Bitmap.GetLogicalHeight .
float
Added in version 4.1/wxWidgets-3.1.6.
Gets the size of the icon in logical pixels.
See wx.Bitmap.GetLogicalSize .
Added in version 4.1/wxWidgets-3.1.6.
Gets the width of the icon in logical pixels.
See wx.Bitmap.GetLogicalWidth .
float
Added in version 4.1/wxWidgets-3.1.6.
Gets the scale factor of this icon.
See wx.Bitmap.GetScaleFactor .
float
Added in version 4.1/wxWidgets-3.1.6.
Gets the size of the icon in physical pixels.
See also
Gets the width of the icon in physical pixels.
int
See also
Returns True if icon data is present.
bool
Loads an icon from a file or resource.
name (string) – Either a filename or a Windows resource name. The meaning of name is determined by the type parameter.
type (BitmapType) – One of the wx.BitmapType values; see the note in the class detailed description. Note that the ICON_DEFAULT_TYPE constant has different value under different wxWidgets ports. See the icon.h header for the value it takes for a specific port.
desiredWidth (int) – Specifies the desired width of the icon. This parameter only has an effect in Windows where icon resources can contain several icons of different sizes.
desiredHeight (int) – Specifies the desired height of the icon. This parameter only has an effect in Windows where icon resources can contain several icons of different sizes.
bool
True if the operation succeeded, False otherwise.
None
bool
bool
See GetLogicalHeight
See GetLogicalSize
See GetLogicalWidth
See GetScaleFactor