def on_click(self):
    "\n            On click or 'Enter' get the regions\n            from the input and call the add_regions\n            method of the main window\n        "
    regions = self.textbox.text().split(' ')
    self.main_window.add_regions(regions, self.alpha_textbox.text(), self.color_textbox.text())
    self.close()
On click or 'Enter' get the regions
from the input and call the add_regions
method of the main window
def on_click(self):
    "\n            On click or 'Enter' get the regions\n            from the input and call the add_regions\n            method of the main window\n        "
    regions = self.textbox.text().split(' ')
    self.main_window.add_regions(regions, self.alpha_textbox.text(), self.color_textbox.text())
    self.close()