(self, **kw)
Configure the image.
Configure the image.
Configure the image .
def configure(self, **kw):
        """Configure the image."""
        res = ()
        for k, v in _cnfmerge(kw).items():
            if v is not None:
                if k[-1] == '_': k = k[:-1]
                if callable(v):
                    v = self._register(v)
                res = res + ('-'+k, v)
        self.tk.call((self.name, 'config') + res)
def configure ( self , * * kw ) : res = ( ) for k , v in _cnfmerge ( kw ) . items ( ) : if v is not None : if k [ - 1 ] == '_' : k = k [ : - 1 ] if callable ( v ) : v = self . _register ( v ) res = res + ( '-' + k , v ) self . tk . call ( ( self . name , 'config' ) + res )