def METHOD_NAME(self, event):
    value = self._backgroundSelect.GetValue()
    try:
        ret = grast.raster_info(value)
        self._typeChoice.SetStringSelection(ret["datatype"])
    except CalledModuleError:
        return