<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>...well in a burst of inspiration, or was that the caffeine,...I hit upon<br>something that works....essentially bypassing the middleman, so to speak...instead of calling addMail(),...I just do what addMail does/<br>did before...<br>So, now,..my code snippet looks like this<br><br>def addNewRecord(self):<br> print("adding new record")<br> dialog = popup.AddNewRecordDialog(self.record,self)<br> if dialog.exec_():<br> self.record = dialog.DoIt()<br> print(self.record)<br> recPart = self.record.split(",")<br>
self.proxyModel.insertRow(0)<br> self.proxyModel.setData(self.proxyModel.index(0, 0), recPart[0])<br> self.proxyModel.setData(self.proxyModel.index(0, 1), recPart[1])<br> self.proxyModel.setData(self.proxyModel.index(0, 2), recPart[2])<br> etc<br> etc<br><br>...so this works, but ideally so,....It appears to overwrite some<br>data in the model,...but when I change filter settings and the<br>model refreshes, I can see all the data now....so, still some work<br>to do...<sigh><br><br>...and I'm still a little fuzzy about how Python handles modules,<br>namespaces, and passing data around to
functions...<br><br><br><br><br></td></tr></table><br>