That's exactly where I checked. I don't understand what the documentation says..
More specifically I don't understand this
The list of command line arguments passed to a Python script. argv is the script name (it is operating system dependent whether this is a full pathname or not). If the command was executed using the -c command line option to the interpreter, argv is set to the string '-c'. If no script name was passed to the Python interpreter, argv is the empty string."
args = sys.argv
print( "Source file: %s" % args )
# use any of these arguments in your code
print( "Argument one: %s" % args )
print( "Argument two: %s" % args )
my output after saving this code as sysargs1.py and
entering a few arguments on the command line -->
['D:/Python25/Bull/sysargs1.py', 'myarg1', 'myarg2']
Source file: D:/Python25/Bull/sysargs1.py
Argument one: myarg1
Argument two: myarg2
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: