"Returns True if the colour object is valid (the colour has been
initialised with RGB values).", "");
"Returns True if the colour object is valid (the colour has been
initialised with RGB values).", "");
DocDeclStr(
void , Set(byte red, byte green, byte blue, byte alpha=wxALPHA_OPAQUE),
DocDeclStr(
void , Set(byte red, byte green, byte blue, byte alpha=wxALPHA_OPAQUE),
"Sets the RGB intensity values using a colour name listed in
``wx.TheColourDatabase``.", "",
SetFromName);
"Sets the RGB intensity values using a colour name listed in
``wx.TheColourDatabase``.", "",
SetFromName);
DocDeclStr(
wxString , GetAsString(long flags = wxC2S_NAME | wxC2S_CSS_SYNTAX) const,
"Return the colour as a string. Acceptable flags are:
DocDeclStr(
wxString , GetAsString(long flags = wxC2S_NAME | wxC2S_CSS_SYNTAX) const,
"Return the colour as a string. Acceptable flags are:
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get(True))
def __repr__(self): return 'wx.Colour' + str(self.Get(True))
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
def __str__(self): return str(self.Get(True))
def __repr__(self): return 'wx.Colour' + str(self.Get(True))
- def __nonzero__(self): return self.Ok()
+ def __len__(self): return len(self.Get())
+ def __getitem__(self, index): return self.Get()[index]
+ def __nonzero__(self): return self.IsOk()
__safe_for_unpickling__ = True
def __reduce__(self): return (Colour, self.Get(True))
}
__safe_for_unpickling__ = True
def __reduce__(self): return (Colour, self.Get(True))
}