It looks like what you want is:
def divide(self):
newWindow = window(self.x/2, self.y/2, self.width/2, self.height/2)
return newWindow
To create an instance of a class, you call it, like window(...)
, passing whatever arguments it needs.
You should read the Python tutorial to familiarze yourself with the basics of Python.