I'm new to GUI programming and I'm using PySide (as 3ds Max and Maya use it). I'm having a little difficulty trying to get my head around connecting slots and signals. I can connect up single signals no problem but with more complicated signals, I start to struggle a little bit and the documentation (Signals and Slots in PySide) is a little confusing.
I have separated the GUI from the core code and I'm trying to keep it that way.
Here is the GUI code in question (I have made it as simple as possible):
from PySide import QtGui
self.setGeometry(300, 250, 270, 200)
self.example_button = QtGui.QPushButton("Export Selection")
self.freeze_checkbox = QtGui.QCheckBox("Freeze Transform")
self.del_history_checkbox = QtGui.QCheckBox("Delete History")
layout = QtGui.QVBoxLayout()
if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
app_window = GUIWindow()
# half-pseudo code
def export_selection(freeze_transform, delete_history):
for mesh in get_current_selection():
I'm trying to allow the user to customise their export process like Freezing Transforms or Deleting Histories and this connecting of signals/slots is currently what has stumped me so far.