Re: [PyQt] Run code after the QtDialog shows

2012-05-24 Thread starglider.dev
Sorry gmail send it automatic. Hi, I need to "emulate" a terminal and need to automaticly run the code after the QDialog shows and close the QDialog after it ends the task. The best I find was this: class ConsoleClass(QDialog): ... def main(): app = QApplication(sys.argv) main.form = Con

[PyQt] Run code after the QtDialog shows

2012-05-24 Thread starglider.dev
Hi, I need to "emulate" a terminal and need to automaticly run the code after the QDialog shows and close the QDialog after it ends the task. How can I do that, the best I made was this: class ConsoleClass(QDialog): ... def main(): app = QApplication(sys.argv) main.form = ConsoleClass()