Skip to content

Commit f0769ae

Browse files
committed
yes, there should have been an underscore after locals
1 parent fded1cc commit f0769ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eval-file-pyqt5-set-value/python/input-number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ def get_the_value(locals_):
22
from PyQt5.QtWidgets import QInputDialog
33
num, ok = QInputDialog.getInt(None, 'The number to be set', 'enter a number')
44
if ok:
5-
locals['set_the_answer'](num)
5+
locals_['set_the_answer'](num)
66

77
if __name__ == '__main__':
88
from PyQt5.QtWidgets import QApplication

0 commit comments

Comments
 (0)