Or what you can do, if you know a RSS feed that provides, current stock price...you can parse that feed and collect your information.
You need to understand RSS feed format..and examine how that feed changes over the time.
I just love the fact that not a single one of the replies actually provide anything resembling an answer. Try QuoteRSS. Its a simple HTML/Text/CSV generator that provided time-delay quotes (about 20 minutes) for one or more stock symbols
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: