Package muntjac :: Package addon :: Package colorpicker :: Module color_picker_application :: Class MyImageSource
[hide private]
[frames] | no frames]

Class MyImageSource

source code

                            object --+    
                                     |    
terminal.stream_resource.IStreamSource --+
                                         |
                                        MyImageSource

This class is used to represent the preview of the color selection.

Instance Methods [hide private]
 
__init__(self, fg, bg)
Instantiates a new my image source.
source code
 
getStream(self)
Returns new input stream that is used for reading the resource.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fg, bg)
(Constructor)

source code 

Instantiates a new my image source.

Parameters:
  • fg - the foreground color
  • bg - the background color
Overrides: object.__init__

getStream(self)

source code 

Returns new input stream that is used for reading the resource.

Overrides: terminal.stream_resource.IStreamSource.getStream
(inherited documentation)