def __init__(self, parent=None):
        QtWidgets.QWidget.__init__(self, parent)
        self.ui = Ui_CreateProfile()
        self.ui.setupUi(self)

        # Connect the clicked signal of the Browse button to it's slot
        #QtCore.QObject.connect(self.ui.browseFilePathButton, QtCore.SIGNAL("clicked()"),
        #                self.popupDirectoryDialog )

        self.ui.browseFilePathButton.clicked.connect(self.popupDirectoryDialog)

        # Connect the clicked signal of the Save to it's Slot - accept
        #QtCore.QObject.connect(self.ui.createProfileButton, QtCore.SIGNAL("clicked()"),
        #                self.CreateProfile )

        self.ui.createProfileButton.clicked.connect(self.CreateProfile)

        # Connect the clicked signal of the Cancel to it's Slot - reject
        #QtCore.QObject.connect(self.ui.cancelButton, QtCore.SIGNAL("clicked()"),
        #                self.reject )

        self.ui.cancelButton.clicked.connect(self.reject)

        # Disable or Enable the Package List field
        #QtCore.QObject.connect(self.ui.installPackagesCheckBox, QtCore.SIGNAL("toggled(bool)"),
        #                self.PackageListFieldStatus )

        self.ui.installPackagesCheckBox.toggled.connect(
            self.PackageListFieldStatus)

        #QtCore.QObject.connect(self.ui.installSrcPackagesCheckBox, QtCore.SIGNAL("toggled(bool)"),
        #                self.SrcPackageListFieldStatus )
        self.ui.installSrcPackagesCheckBox.toggled.connect(
            self.SrcPackageListFieldStatus)

        #QtCore.QObject.connect(self.ui.srcBuildDeps, QtCore.SIGNAL("toggled(bool)"),
        #                self.SrcPackageListFieldStatus )
        self.ui.srcBuildDeps.toggled.connect(self.SrcPackageListFieldStatus)

        #QtCore.QObject.connect(self.ui.targetReleaseCheckBox, QtCore.SIGNAL("toggled(bool)"),
        #                self.TargetReleaseFieldStatus )
        self.ui.targetReleaseCheckBox.toggled.connect(
            self.TargetReleaseFieldStatus)

        #QtCore.QObject.connect(self.ui.upgradePackagesCheckBox, QtCore.SIGNAL("toggled(bool)"),
        #                self.UpgradeCheckStatus )
        self.ui.upgradePackagesCheckBox.toggled.connect(
            self.UpgradeCheckStatus)
 def __init__(self, parent=None):
     QtGui.QWidget.__init__(self, parent)
     self.ui = Ui_CreateProfile()
     self.ui.setupUi(self)
     
     # Connect the clicked signal of the Browse button to it's slot
     QtCore.QObject.connect(self.ui.browseFilePathButton, QtCore.SIGNAL("clicked()"),
                     self.popupDirectoryDialog )
                     
     # Connect the clicked signal of the Save to it's Slot - accept
     QtCore.QObject.connect(self.ui.createProfileButton, QtCore.SIGNAL("clicked()"),
                     self.CreateProfile )
                     
     # Connect the clicked signal of the Cancel to it's Slot - reject
     QtCore.QObject.connect(self.ui.cancelButton, QtCore.SIGNAL("clicked()"),
                     self.reject )
     
     # Disable or Enable the Package List field
     QtCore.QObject.connect(self.ui.installPackagesCheckBox, QtCore.SIGNAL("toggled(bool)"),
                     self.PackageListFieldStatus )