I am new to Python and this is my fist Python class. I am using PyQt4 framework on Windows 7.
I don't know whether the few lines of code below is correctly written or not. I want to modify it further as:
def __init__(self, xCoord, yCoord, windowName, parent = None):
self.x = xCoord
self.y = yCoord
self.wName = windowName;
screen = QtGui.QDesktopWidget().screenGeometry()
size = self.geometry()
Can't you just use
window.setGeometry(x_pos, y_pos, width, height)? A class seem overkill in this case.
See here for documentation.