Exemple #1
0
 def handlerAbout(self):
     import webgobbler_config
     wgconfig = webgobbler_config.wg_confGUI(
         None)  # Display webGobbler configuration screen.
     wgconfig.focus_set()
     wgconfig.showAbout()
     self._parent.wait_window(wgconfig.top)  # Wait for window to close.
 def handlerConfigure(self):
     import webgobbler_config       
     # FIXME: grey out menues so that user does not call the config Windows several times at once.
     wgconfig = webgobbler_config.wg_confGUI(None)  # Display webGobbler configuration screen.
     # webGobbler configuration windows will read configuration from registry or .ini file.
     wgconfig.focus_set()        
     self._parent.wait_window(wgconfig.top)  # Wait for window to close.
     if wgconfig.configChanged:
         # Configuration was changed. 
         self.config = wgconfig.config   # Get the new configuration
         # Kill the old assembler:
         self.assembler.shutdown()   
         #self.assembler.join()
         
         # Set the new proxy address (if any)
         self.config = webgobbler.setUrllibProxy(log=None,CONFIG=self.config)
         
         # Start a new assembler with this new configuration:
         self.assembler = webgobbler.assembler_superpose(pool=webgobbler.imagePool(config=self.config),config=self.config)
         self.assembler.start()
Exemple #3
0
    def handlerConfigure(self):
        import webgobbler_config
        # FIXME: grey out menues so that user does not call the config Windows several times at once.
        wgconfig = webgobbler_config.wg_confGUI(
            None)  # Display webGobbler configuration screen.
        # webGobbler configuration windows will read configuration from registry or .ini file.
        wgconfig.focus_set()
        self._parent.wait_window(wgconfig.top)  # Wait for window to close.
        if wgconfig.configChanged:
            # Configuration was changed.
            self.config = wgconfig.config  # Get the new configuration
            # Kill the old assembler:
            self.assembler.shutdown()
            #self.assembler.join()

            # Set the new proxy address (if any)
            self.config = webgobbler.setUrllibProxy(log=None,
                                                    CONFIG=self.config)

            # Start a new assembler with this new configuration:
            self.assembler = webgobbler.assembler_superpose(
                pool=webgobbler.imagePool(config=self.config),
                config=self.config)
            self.assembler.start()
 def handlerAbout(self):
     import webgobbler_config       
     wgconfig = webgobbler_config.wg_confGUI(None)  # Display webGobbler configuration screen.
     wgconfig.focus_set()        
     wgconfig.showAbout()
     self._parent.wait_window(wgconfig.top)  # Wait for window to close.