I have written a class to display rectangles (the cell class). I would like to have functions inside the class to call in another class (i.e. calling cell.paintEvent(s
Well, you would need to import the cell object. To that you need to
from yourFileNameWithCellObject import cell
To initialize a cell, you simply need to do
newCell = cell(args_here)
or to make the newCell as a part of self (Window)
self.newCell = cell(args_here)
To call methods in the cell object is quite simple.
self.newCell.paintEvent(args_here)