<table cellspacing="0" cellpadding="0" border="0" ><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></table><br>