def _set_propagation(self, width, height):
if width is None:<EOL><INDENT>width = <NUM_LIT:0><EOL><DEDENT>if height is None:<EOL><INDENT>height = <NUM_LIT:0><EOL><DEDENT>propagate_function = self.tk.pack_propagate<EOL>if self.layout == "<STR_LIT>":<EOL><INDENT>propagate_function = self.tk.grid_propagate<EOL><DEDENT>propagate_value = True<EOL>if isinstance(width, int):<EOL><INDENT>if width > <NUM_LIT:0>:<EOL><INDENT>propagate_value = False<EOL><DEDENT><DEDENT>if isinstance(height, int):<EOL><INDENT>if height > <NUM_LIT:0>:<EOL><INDENT>propagate_value = False<EOL><DEDENT><DEDENT>if isinstance(width, int) and isinstance(height, int):<EOL><INDENT>if (width == <NUM_LIT:0> and height > <NUM_LIT:0>) or (height == <NUM_LIT:0> and width > <NUM_LIT:0>):<EOL><INDENT>utils.error_format("<STR_LIT>".format(self.description))<EOL><DEDENT><DEDENT>propagate_function(propagate_value)<EOL>
Set the propagation value of the tk widget dependent on the width and height

:param int width:
    The width of the widget.

:param int height:
    The height of the widget.