Hi,
In the future can you please use a code sharing url of some type, for long code? Either gist or a pastebin type site would be helpful.
In this setup, you definitely want to keep a separation between the different forms, and you are doing this so far. You want the ability for forms to be reordered or extended and not have them no about each other. It's good that you just wire them up in the main window.
For form values like your text value, what you may want to do is to share a context object between all your forms, when you instantiate them. This would all you to define the data you expect each form to contribute to and all forms can access the state of the data. It could be as simple as a dictionary.
That being said, you may want to look into QWizard
http://doc.qt.io/qt-4.8/qwizard.html
It does exactly what you are after, by allowing you to define pages, validation, and form properties that can be checked across all pages. It handles checking if your page reports that it validates before letting you proceed to another page.
And since I can never resist chucking in some random code commentary...
When connecting a signal to another signal, leave off the "emit" part:
self.backButton.clicked.connect(self.showForm1Signal)
Qt is a lot smarter when you show it you are connecting a signal to another signal and can handle mismatched parameter signatures.
Also I would recommend not importing * from the Qt modules. It pollutes the current module with a massive amount of objects.
Justin
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a7bf6ef8-6dfd-45cf-9c8b-7b64f21ff6f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.