<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>Thank you very much, ER!...that worked...<br><br><br><br>--- On <b>Tue, 3/22/11, Entity Reborn <i><entityreborn@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Entity Reborn <entityreborn@gmail.com><br>Subject: Re: [PyQt] Passing text from MainWindow to popup Dialog<br>To: "James Polk" <jpolk5001@yahoo.com><br>Cc: "pyqt@riverbankcomputing.com" <pyqt@riverbankcomputing.com><br>Date: Tuesday, March 22, 2011, 6:17 PM<br><br><div id="yiv1296267907"><div>Store your popup as a variable in the main dialog class, (self.popup = MyPopup()), and then later you can access that dialog using self.popup from your main form.</div><div><br>On Mar 22, 2011, at 2:39 PM, James Polk <<a rel="nofollow" ymailto="mailto:jpolk5001@yahoo.com" target="_blank"
 href="/mc/compose?to=jpolk5001@yahoo.com">jpolk5001@yahoo.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top"><br>I have a scenario where my MainWindow needs to call and display<br>
a popup Window...and while the window is open, processing continues<br>in the main application, and during processing needs to send a string or<br>two of text to the popup dialog.<br><br>I know how to call and display the popup window/dialog,..and I know how<br>
to send the popup a line of text *before* it pops up....and I know how to<br>get text *back* when it closes...but I can't figure out how to intermittently<br>send the popup text for it to display.<br><br>I have two files....let's call them main.py and popup.py<br>
In main.py, I do a<br><br>import popup as dialog<br><br>This works:<br>                dialog =
 popAdd.AddNewRecordDialog(stuff,None)<br>                dialog.exec_()<br><br>What I'd like to do inside of main.py is call..<br><br>                dialog.DoIt("Whatever will be, will be")<br><br>popup.py has a plainTextEdit box,...and inside a function named "DoIt"<br>
which is currently looking like this:  (though I've tried other permutations)<br><br>    def DoIt(message,self):<br>        QDialog.plainTextBox.setPlainText(message)<br><br>I've also tried from inside main.py:<br>
<br>     dialog.plainEditText.setText(message)<br><br>but that doesn't work either,...<br><br>Anybody got any ideas how to make this work?...<br>Or, if you have another suggestions, I'm all ears...<br><br>Cheers,<br>
-Jim<br><br><br></td></tr></tbody></table><br>

      </div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>PyQt mailing list    <a rel="nofollow" ymailto="mailto:PyQt@riverbankcomputing.com" target="_blank" href="/mc/compose?to=PyQt@riverbankcomputing.com"></a><a rel="nofollow" ymailto="mailto:PyQt@riverbankcomputing.com" target="_blank" href="/mc/compose?to=PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></span><br>
<span><a rel="nofollow" target="_blank" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></div></blockquote></td></tr></table><br>