from PySide.QtCore import *
from PySide.QtGui import *
import sys
import stackwid
class Dialog(QDialog,stackwid.Ui_Dialog):
def __init__(self,parent = None):
You don't connect the signal to your set()
-function, but to it's return value. You just need to remove the parenthesis, then it should work:
self.camButton.clicked.connect(self.set)
Passing extra arguments to slots, this may help you ,good luck!
self.camButton.clicked.connect(lambda: self.set(index))
def set(self, index):
self.stackedWidget.setCurrentIndex(index)