Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module cubecolourdialog :: Class CubeColourDialog |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |TopLevelWindow
--+ |Dialog
--+ | CubeColourDialog
Method Summary | |
---|---|
Default class constructor. | |
Common code to handle spin control changes. | |
Calculates the RGB colour cube vertices. | |
Calculates the brightness control user-selected rect. | |
Calculates the line slopes in the RGB colour cube. | |
Layouts all the controls in the CubeColourDialog . | |
Draws all the custom controls after a colour change. | |
Refreshes the alpha channel control. | |
Refreshes the brightness control. | |
Refreshes the HSB colour wheel. | |
Draws the markers for all the controls. | |
Refreshes the RGB colour cube. | |
Returns a wxPython compatible wx.ColourData. | |
Returns a 4-elements tuple of hue, saturation, brightness, alpha components. | |
Returns a 4-elements tuple of red, green, blue, alpha components. | |
Initialize the CubeColourDialog . | |
OnAddCustom(self,
event)
| |
Handles the wx.EVT_SPINCTRL event for the alpha channel. | |
Handles the Cancel wx.EVT_BUTTON event for CubeColourDialog . | |
User canceled the dialog. | |
OnKeyUp(self,
event)
| |
Handles the Ok wx.EVT_BUTTON event for CubeColourDialog . | |
Shows/hides the alpha channel control in CubeColourDialog . | |
Handles the wx.EVT_SPINCTRL event for RGB and HSB colours. | |
Sets the HTML/MS Access codes (if any) in the text controls. | |
Assigns colours to the colour panels. | |
Sets some initial properties (sizes, values). | |
Sets the values for all the spin controls. | |
Sets the CubeColourDialog window style flags. | |
Overridden wx.Dialog.ShowModal. |
Property Summary |
---|
Class Variable Summary |
---|
Instance Method Details |
---|
__init__(self,
parent,
colourData=None,
style=1)
Default class constructor.
|
AssignColourValue(self, attribute, colourVal, maxVal, position)Common code to handle spin control changes. |
CalcCuboid(self)Calculates the RGB colour cube vertices. |
CalcRects(self)Calculates the brightness control user-selected rect. |
CalcSlopes(self)Calculates the line slopes in the RGB colour cube. |
DoLayout(self)Layouts all the controls in theCubeColourDialog .
|
DrawAll(self)Draws all the custom controls after a colour change. |
DrawAlpha(self)Refreshes the alpha channel control. |
DrawBright(self)Refreshes the brightness control. |
DrawHSB(self)Refreshes the HSB colour wheel. |
DrawMarkers(self, dc=None)Draws the markers for all the controls. |
DrawRGB(self)Refreshes the RGB colour cube. |
GetColourData(self)Returns a wxPython compatible wx.ColourData. |
GetHSVAColour(self)Returns a 4-elements tuple of hue, saturation, brightness, alpha components. |
GetRGBAColour(self)Returns a 4-elements tuple of red, green, blue, alpha components. |
InitDialog(self)Initialize theCubeColourDialog .
|
OnAlphaSpin(self, event)Handles the wx.EVT_SPINCTRL event for the alpha channel. |
OnCancel(self, event)Handles the Cancel wx.EVT_BUTTON event forCubeColourDialog .
|
OnCloseWindow(self, event)User canceled the dialog. |
OnOk(self, event)Handles the Ok wx.EVT_BUTTON event forCubeColourDialog .
|
OnShowAlpha(self, event)Shows/hides the alpha channel control inCubeColourDialog .
|
OnSpinCtrl(self, event)Handles the wx.EVT_SPINCTRL event for RGB and HSB colours. |
SetCodes(self)Sets the HTML/MS Access codes (if any) in the text controls. |
SetPanelColours(self)Assigns colours to the colour panels. |
SetProperties(self)Sets some initial properties (sizes, values). |
SetSpinVals(self)Sets the values for all the spin controls. |
SetWindowStyleFlag(self, style)Sets theCubeColourDialog window style flags.
|
ShowModal(self)Overridden wx.Dialog.ShowModal.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:51:26 2009 | http://epydoc.sf.net |