def button_change_Click(self, sender, e):
    try:
        new_width = self.textBox_linewidth.Text
        for net_width in self.listBox_selection.SelectedItems:
            net = net_width.split()[0]
            for (n, (line, width)) in enumerate(self.info[self.comboBox_layer.Text][net]):
                changeLineWidth(line, new_width)
                self.info[self.comboBox_layer.Text][net][n] = (line, new_width)
        self.refreshListBox()
    except:
        logging.exception('Error')
        MessageBox.Show('Invalid Input!')
        self.refreshListBox()
def button_change_Click(self, sender, e):
    try:
        new_width = self.textBox_linewidth.Text
        for net_width in self.listBox_selection.SelectedItems:
            net = net_width.split()[0]
            for (n, (line, width)) in enumerate(self.info[self.comboBox_layer.Text][net]):
                changeLineWidth(line, new_width)
                self.info[self.comboBox_layer.Text][net][n] = (line, new_width)
        self.refreshListBox()
    except:
        logging.exception('Error')
        MessageBox.Show('Invalid Input!')
        self.refreshListBox()