Esempio n. 1
0
def show_settings():
    """ shows a settings window """
    import settings
    s = settings.GUI(
        "script-%s-settings.xml" % (__scriptname__.replace(" ", "_"), ),
        os.getcwd(), "Default")
    s.doModal()
    del s
Esempio n. 2
0
 def change_settings( self ):
     self.getControl( 100 ).setVisible( False )
     self.getControl( 110 ).setVisible( False )
     self.getControl( 120 ).setVisible( False )
     import settings
     settings = settings.GUI( "script-%s-settings.xml" % ( __scriptname__.replace( " ", "_" ), ), os.getcwd(), "Default" )
     settings.doModal()
     ok = False
     if ( settings.changed ):
         self.get_settings()
         if ( settings.restart ):
             ok = xbmcgui.Dialog().yesno( __scriptname__, _( 240 ), "", _( 241 ) % ( __scriptname__, ), _( 256 ), _( 255 ) )
         if ok:
             self.exit_script( True )
     del settings
     self.getControl( 100 ).setVisible( True )
     self.getControl( 110 ).setVisible( True )
     self.getControl( 120 ).setVisible( True )
Esempio n. 3
0
	def document_type_clicked (self, widget):
		import settings
		settings.GUI(self.db, 'document_types')
Esempio n. 4
0
 def settings_window(self, widget):
     import settings
     settings.GUI(self.db)