Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
singleton for Themes class
    

        def get_instance():
    '''singleton for Themes class
    '''
    global __instance

    if __instance is None:
        __instance = AdiumThemes()

    return __instance
        


src/e/m/emesene-HEAD/mesinyer/gui/base/Theme.py   emesene(Download)
        self.theme_path = os.path.join("themes", "images", self.image_name)
        self.conv_themes_path = os.path.join(os.getcwd(), "themes/conversations")
        self.conv_themes = AdiumThemes.get_instance()
        self.conv_themes.add_themes_path(self.conv_themes_path)