Logo Search packages:      
Sourcecode: eikazo version File versions  Download package

def Eikazo::Widgets::SaneDevice::enable_options (   self,
  value 
)

enable or disable the option widgets. 
    Must be called before starting a scan and after the end of
    a scan. Many backends refuse to allow the change of options
    during a scan.

Definition at line 534 of file Widgets.py.

00534                                    :
        """ enable or disable the option widgets. 
            Must be called before starting a scan and after the end of
            a scan. Many backends refuse to allow the change of options
            during a scan.
        """
        if threading.currentThread() == self.mainthread:
            self._enable_options(value)
        else:
            gtk.gdk.threads_enter()
            self._enable_options(value)
            gtk.gdk.threads_leave()
        
    
    def _enable_options(self, value):


Generated by  Doxygen 1.6.0   Back to index