self.updateView()
QDialog.show(self)
+ def readContent(self):
+ raise ValueError("readContent needs to be implemented in the subclass")
+
def updateView(self):
del self.document
del self.model
self.view.setModel(self.model)
- #move the code below to rspec window
- rspec_file = config.getSliceRSpecFile()
- if not os.path.exists(rspec_file):
- return
-
- self.document.setContent(open(rspec_file,'r').read())
+ self.document.setContent(self.readContent())
if self.document.childNodes().count() == 0:
# empty document - do nothing
document.drawContents(painter)
painter.restore()
-