Exemplo n.º 1
0
    def __fill_view_menu__(self, widget):
        v_menuNam = None
        if parseConfig.check4_config() == 2:
            message = "This looks like the first time you have started fluxStlye "
			message += "a default config has been created for you. You should edit "
			message += "this config to control the location of styles shown in the "
			message += "preview window. The config file is located in ~/.fluxStyle.rc"
            errorMessage.infoMessage(message)
Exemplo n.º 2
0
            if isfile(location+"/"+stylename+"/preview.jpg"):
                image.set_from_file(location+"/" +stylename+"/preview.jpg")
            else:
                #image.set_from_file( "/usr/share/fluxstyle-1.0/images/none.jpg")
                image.set_from_file( "./images/none.jpg")
        return image.get_pixbuf()
    def __fill_view_menu__(self, widget):
        v_menuNam = None
        if parseConfig.check4_config() == 2:
            message = "This looks like the first time you have started fluxStlye "
			message += "a default config has been created for you. You should edit "
			message += "this config to control the location of styles shown in the "
			message += "preview window. The config file is located in ~/.fluxStyle.rc"
            errorMessage.infoMessage(message)
        
        elif parseConfig.check4_config() == 3:
            message = "You do not have the config file \"~/.fluxStyle.rc\" and you do "
			message += "not have write access to the \"~/\" aka $HOME directory. If you "
			message += "find this is not accurate information please report a bug to errr@"
			message += "errr-online.com"
            errorMessage.infoMessage(message)
        elif parseConfig.check4_config() == True:
            ops = parseConfig.parse_file(expanduser("~/.fluxStyle.rc"))
			l = []
            if ops != False:
                count = 1
                view = self.view_menu
                for k,v in ops.iteritems():
                    if k == "STYLES_DIRS":
                        for x in v:
						    l.append(x.strip().split(','))