Jun-22-2020, 11:52 AM
parallel = self.gui2.parallel_config()
parallel_text = int("".join(map(str, parallel)))
if parallel_text != int and parallel_text != '':
QMessageBox.warning(self, '', 'Please input integer only in parallel and series', buttons=QMessageBox.Yes)
return
parallel is a list.
I could not get it work.
How could I verify the the input as integer only, not other?
The problem for 'parallel' is a list.
Even I input integer, it still show warning. Thats why I change the list to integer.
Please help, thanks.
parallel_text = int("".join(map(str, parallel)))
if parallel_text != int and parallel_text != '':
QMessageBox.warning(self, '', 'Please input integer only in parallel and series', buttons=QMessageBox.Yes)
return
parallel is a list.
I could not get it work.
How could I verify the the input as integer only, not other?
The problem for 'parallel' is a list.
Even I input integer, it still show warning. Thats why I change the list to integer.
Please help, thanks.