<div dir="ltr"><span style="font-size:13px;line-height:19.5px">I have an attribute table that is around two hundred rows of data (but only two columns wide). I would like to add an attribute table to a composer with this data, and to do this I need to add multiple frames so I can add the whole attribute table to one page. Doing this manually in the composer I just add 5 frames side by side to one composer page, and I manage to get all my data on one page.</span><div style="font-size:13px;line-height:19.5px"><br></div><div style="font-size:13px;line-height:19.5px">I cannot figure out how to add an attribute table with multiple frames to a composer using PyQGIS. I am problably missing something really obvious, but I am stuck here.<div><br></div><div>When I try to define a QgsComposerFrame, I am told that I must specify the QgsComposerMultiFrame it belongs to:</div><div><br></div><div><a href="http://qgis.org/api/classQgsComposerFrame.html#ab645cf6db9a1285a6983e05541f2d28f" target="_blank" style="color:rgb(70,101,162);font-weight:bold;font-family:Roboto,sans-serif;font-size:14px;line-height:22px">QgsComposerFrame</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px;background-color:rgb(249,250,252)"> (</span><a href="http://qgis.org/api/classQgsComposition.html" target="_blank" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;line-height:22px">QgsComposition</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px;background-color:rgb(249,250,252)"> *c, </span><a href="http://qgis.org/api/classQgsComposerMultiFrame.html" target="_blank" style="color:rgb(70,101,162);font-weight:bold;text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;line-height:22px">QgsComposerMultiFrame</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px;background-color:rgb(249,250,252)"> *mf, qreal </span><a href="http://doc.qt.io/qt-4.8/qgraphicsitem.html#x" target="_blank" style="color:rgb(70,101,162);text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;line-height:22px">x</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px;background-color:rgb(249,250,252)">, qreal </span><a href="http://doc.qt.io/qt-4.8/qgraphicsitem.html#y" target="_blank" style="color:rgb(70,101,162);text-decoration:none;font-family:Roboto,sans-serif;font-size:14px;line-height:22px">y</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px;background-color:rgb(249,250,252)">, qreal width, qreal height)</span><br></div><div><br></div><div>How do I create the QgsComposerMultiFrame. It is an abstract class, I am told that it is an abstract class and cannot be instantiated. If I try </div><div><br></div><div>multiFrame = QgsComposerMultiFrame(myCompositionTable, False)<br></div><div><br></div><div>I get the following error when I run my code.</div><div><br></div><div>qgis._core.QgsComposerMultiFrame represents a C++ abstract class and cannot be instantiated<br></div><div><br></div><div>I cant find any documentation or examples on how to do this. So if someone could shed some light on this it would be most appreciated. I am happy to write up a bit of documentation once I have managed to do this.</div><div><br></div><div>Many thanks,</div><div><br></div><div>James</div></div></div>