def update_compress(self):
    if wbt.get_compress_rasters():
        wbt.set_compress_rasters(False)
        self.filemenu.entryconfig(3, label='Compress Output TIFFs')
    else:
        wbt.set_compress_rasters(True)
        self.filemenu.entryconfig(3, label='Do Not Compress Output TIFFs')
def update_compress(self):
    if wbt.get_compress_rasters():
        wbt.set_compress_rasters(False)
        self.filemenu.entryconfig(3, label='Compress Output TIFFs')
    else:
        wbt.set_compress_rasters(True)
        self.filemenu.entryconfig(3, label='Do Not Compress Output TIFFs')