Hey, I've been working on a project for a while now. What it does is, it reads data from a website every five minutes, then updates itself. Thing is, I'm having a little trouble getting it to wait five minutes. This is what I have been using in python:

Code:
x = 1
        while x == 1:
            self.get_data
            time.sleep(300)
It's a tkinter application I'm running this through basically, but that's what I was doing to get it to go every 5 minutes. Unfortunately, whenever I do, I get the error:
"AttributeError: 'str' object has no attribute 'sleep'"
Which makes no sense to me, because I'm importing from the time module.