Parameters for wx.BusyInfo.
This class exists only in order to make passing attributes to wx.BusyInfo constructor easier and the code doing it more readable.
All methods of this class return the reference to the object on which they are called, making it possible to chain them together, e.g. typically you would just create a temporary wx.BusyInfoFlags object and then call the methods corresponding to the attributes you want to set, before finally passing the result to wx.BusyInfo constructor, e.g.:
info = wx.BusyInfo(
wx.BusyInfoFlags()
.Parent(window)
.Icon(icon)
.Title("Some text")
.Text("Some more text")
.Foreground(wx.Colour(...))
.Background(wx.Colour(...))
)
New in version 4.1/wxWidgets-3.1.0.
Default constructor initializes all attributes to default values. |
|
Sets the background colour of wx.BusyInfo window. |
|
Sets the foreground colour of the title and text strings. |
|
Sets the icon to show in wx.BusyInfo. |
|
Same as |
|
Sets the parent for wx.BusyInfo. |
|
Sets the more detailed text, shown under the title, if any. |
|
Sets the title, shown prominently in wx.BusyInfo window. |
|
Sets the transparency of wx.BusyInfo window. |
wx.
BusyInfoFlags
(object)¶Possible constructors:
BusyInfoFlags()
Parameters for BusyInfo.
__init__
(self)¶Default constructor initializes all attributes to default values.
Call the other methods to really fill in the object.
Background
(self, background)¶Sets the background colour of wx.BusyInfo window.
background (wx.Colour) –
Foreground
(self, foreground)¶Sets the foreground colour of the title and text strings.
foreground (wx.Colour) –
Icon
(self, icon)¶Sets the icon to show in wx.BusyInfo.
icon (wx.Icon) –
Label
(self, label)¶Same as Text
but doesn’t interpret the string as containing markup.
This method should be used if the text shown in wx.BusyInfo comes from external source and so may contain characters having special meaning in simple markup, e.g. ‘<’.
label (string) –
Parent
(self, parent)¶Sets the parent for wx.BusyInfo.
parent (wx.Window) –
Text
(self, text)¶Sets the more detailed text, shown under the title, if any.
The text string may contain markup as described in wx.Control.SetLabelMarkup
.
text (string) –
Title
(self, title)¶Sets the title, shown prominently in wx.BusyInfo window.
The title string may contain markup as described in wx.Control.SetLabelMarkup
.
title (string) –
Transparency
(self, alpha)¶Sets the transparency of wx.BusyInfo window.
alpha (wx.Byte) – Value in wx.ALPHA_TRANSPARENT
(0) to wx.ALPHA_OPAQUE
(255) range.
See also