def __init__( self, path, title="Select path", cancelLabel="Cancel", confirmLabel="OK" ) :
	
		GafferUI.Dialogue.__init__( self, title )
		
		self.__path = path
		
		self.__pathChooserWidget = GafferUI.PathChooserWidget( path )
		self._setWidget( self.__pathChooserWidget )
		self.__pathChooserSelectedConnection = self.__pathChooserWidget.pathSelectedSignal().connect( self.__pathChooserSelected )

		self.__cancelButton = self._addButton( cancelLabel )
		self.__cancelButtonConnection = self.__cancelButton.clickedSignal().connect( self.__buttonClicked )
		self.__confirmButton = self._addButton( confirmLabel )
		self.__confirmButtonConnection = self.__confirmButton.clickedSignal().connect( self.__buttonClicked )
		
		self.__pathSelectedSignal = Gaffer.ObjectSignal()
示例#2
0
    def pathChangedSignal(self):

        if not hasattr(self, "_Path__pathChangedSignal"):
            self.__pathChangedSignal = Gaffer.ObjectSignal()

        return self.__pathChangedSignal