def open_input_file(self):
    name = QtGui.QFileDialog.getOpenFileName(self, 'Open input file')
    input_file = open(name, 'r')
    DIYname = QtGui.QInputDialog.getText(self, 'Name your input choice', None)
    save_name = DIYname[0]
    self.action_cb['add_input'](save_name, input_file.name)
def open_input_file(self):
    name = QtGui.QFileDialog.getOpenFileName(self, 'Open input file')
    input_file = open(name, 'r')
    DIYname = QtGui.QInputDialog.getText(self, 'Name your input choice', None)
    save_name = DIYname[0]
    self.action_cb['add_input'](save_name, input_file.name)