I want to read data from a text field. The name of the text field is not defined of found in the other class with methods of reading the text field. The textfield is defined in the Design class. now how do I access this field from another class, so I can read data from it. Thanks!!
Edit:
I have 2 Classes: FeatureImportCommonWidget(QtGui.QWidget) and MetaDataBrowser. FeatureImportCommonWidget contains a Text Field called placesGroupBox. I want to access this text field in the MetaDataBrowser Class.
I tried it using "filename = get_metadata.placesGroupBox.text()", but it gives an error about placesGroupBox not being defined in the MetaDataBrowser class.
If the field's an ordinary attribute called text and your Design instance is called design, you can access (read/write) it from anywhere as design.text.
Python Referencing