<html><body bgcolor="#FFFFFF"><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 href="mailto:jpolk5001@yahoo.com">jpolk5001@yahoo.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;"><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 href="mailto:PyQt@riverbankcomputing.com"><a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></a></span><br>
<span><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></body></html>