This method returns the currently selected color model as a
concrete class implementing ColorModel. The
self.__radioVar control variable contains the
index of the currently selected model.
# - - - M o d e l S e l e c t o r . g e t M o d e l
def getModel ( self ):
"""Returns self's current color model.
"""
#-- 1 --
# [ modelx := index in self.__radioList of the currently
# selected color model ]
modelx = self.__radioVar.get()
#-- 2--
return self.__modelList[modelx]