Exemplo n.º 1
0
 def Configure(self):
     self._print("Configure")
     #FIXME Hard-coded GtkUI
     from conduit.gtkui.WindowConfigurator import WindowConfigurator
     from conduit.gtkui.ConfigContainer import ConfigContainer
     configurator = WindowConfigurator(None)
     container = self.dataprovider.module.get_config_container(
                     configContainerKlass=ConfigContainer,
                     name=self.dataprovider.get_name(),
                     icon=self.dataprovider.get_icon(),
                     configurator=configurator
     )
     configurator.set_containers([container])
     configurator.run(container)
Exemplo n.º 2
0
    def SinkConfigure(self):
        self._print("SinkConfigure")
        if len(self.conduit.datasinks) != 1:
            raise ConduitException("Simple exporter must only have one sink")

        dataprovider = self.conduit.datasinks[0]

        #FIXME Hard-coded GtkUI
        from conduit.gtkui.WindowConfigurator import WindowConfigurator
        from conduit.gtkui.ConfigContainer import ConfigContainer
        configurator = WindowConfigurator(None)
        container = dataprovider.module.get_config_container(
                        configContainerKlass=ConfigContainer,
                        name=dataprovider.get_name(),
                        icon=dataprovider.get_icon(),
                        configurator=configurator
        )
        configurator.set_containers([container])
        configurator.run(container)
Exemplo n.º 3
0
 def Configure(self):
     self._print("Configure")
     #FIXME Hard-coded GtkUI
     from conduit.gtkui.WindowConfigurator import WindowConfigurator
     from conduit.gtkui.ConfigContainer import ConfigContainer
     configurator = WindowConfigurator(None)
     container = self.dataprovider.module.get_config_container(
         configContainerKlass=ConfigContainer,
         name=self.dataprovider.get_name(),
         icon=self.dataprovider.get_icon(),
         configurator=configurator)
     configurator.set_containers([container])
     configurator.run(container)
Exemplo n.º 4
0
    def SinkConfigure(self):
        self._print("SinkConfigure")
        if len(self.conduit.datasinks) != 1:
            raise ConduitException("Simple exporter must only have one sink")

        dataprovider = self.conduit.datasinks[0]

        #FIXME Hard-coded GtkUI
        from conduit.gtkui.WindowConfigurator import WindowConfigurator
        from conduit.gtkui.ConfigContainer import ConfigContainer
        configurator = WindowConfigurator(None)
        container = dataprovider.module.get_config_container(
            configContainerKlass=ConfigContainer,
            name=dataprovider.get_name(),
            icon=dataprovider.get_icon(),
            configurator=configurator)
        configurator.set_containers([container])
        configurator.run(container)