Ejemplo n.º 1
0
    def onShowSelector(self, *args, **kwargs):
        """
			Opens a TreeWidget sothat the user can select new values
		"""
        currentSelector = FileWidget(self.destModule, isSelector="node")
        currentSelector.selectionReturnEvent.register(self)
        conf["mainWindow"].stackWidget(currentSelector)
        self.parent()["class"].append("is_active")
Ejemplo n.º 2
0
    def onShowSelector(self, *args, **kwargs):
        """
			Opens a TreeWidget sothat the user can select new values
		"""
        if not self.currentSelector:
            fileSelector = conf.get("fileSelector")

            if not fileSelector or conf["mainWindow"].containsWidget(
                    fileSelector):
                fileSelector = FileWidget(self.destModule,
                                          selectMode="single.leaf")
            else:
                fileSelector.selectMode = "single.leaf"

            if not conf.get("fileSelector"):
                conf["fileSelector"] = fileSelector

            self.currentSelector = fileSelector

        self.currentSelector.selectionReturnEvent.register(self, reset=True)

        conf["mainWindow"].stackWidget(self.currentSelector)
        self.parent().addClass("is_active")
Ejemplo n.º 3
0
	def onClick(self, sender=None):
		currentSelector = FileWidget("file", selectMode="multi")
		currentSelector.selectionActivatedEvent.register(self)
		conf["mainWindow"].stackWidget(currentSelector)