def Set( self ):
print( '\r\n\r\n[GTK]' )
if self.verbose:
print( '{0} Setting gsettings proxy mode to manual'.format( self.date() ) )
self.mode.set_string( 'mode', 'manual' )
if self.verbose:
print( '{0} Setting http proxy for gsettings on {1}:{2}'.format( self.date(), self.host, self.port ) )
self.http_proxy.set_value( 'host', GLib.Variant( 's', self.http ) )
self.http_proxy.set_value( 'port', GLib.Variant( 'i', int( self.port ) ) )
if self.verbose:
print( '{0} Setting https proxy for gsettings on {1}:{2}'.format( self.date(), self.host, self.port ) )
self.https_proxy.set_value( 'host', GLib.Variant( 's', self.http ) )
self.https_proxy.set_value( 'port', GLib.Variant( 'i', int( self.port ) ) )
super( GTK, self ).Set()
评论列表
文章目录