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

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/m/o/modrana-HEAD/modules/device_modules/base_device_module.py   modrana(Download)
        :rtype: a (theme_id, theme_name) tuple
        """
        return constants.DEFAULT_THEME_ID, constants.DEFAULT_THEME_NAME
 
#  def getAutorotationSupported(self):

src/m/o/modrana-HEAD/modules/gui_modules/gui_qml/gui_qml.py   modrana(Download)
            splitPath = iconPath.split("/")
            if not os.path.exists(fullIconPath):
                if splitPath[0] == constants.DEFAULT_THEME_ID:
                    # already on default theme and icon path does not exist
                    return None
                else:  # try to get the icon from default theme
                    splitPath[0] = constants.DEFAULT_THEME_ID

src/m/o/modrana-HEAD/modules/gui_modules/gui_qt5/gui_qt5.py   modrana(Download)
 
            if not os.path.exists(fullIconPath):
                if splitPath[0] == constants.DEFAULT_THEME_ID:
                    # already on default theme and icon path does not exist
                    print("Icon not found in default theme:")
                    print(fullIconPath)
                    return None
                else:  # try to get the icon from default theme
                    splitPath[0] = constants.DEFAULT_THEME_ID

src/m/o/modrana-HEAD/modules/mod_options/mod_options.py   modrana(Download)
            if theme:
                group = addGroup("Themes", "themes", catView, "generic")
                defaultTheme = constants.DEFAULT_THEME_ID
                themeList = theme.getAvailableThemeIds()
                # check if current theme as set in options exists

src/m/o/modrana-HEAD/modules/mod_icons.py   modrana(Download)
    def __init__(self, m, d, i):
        RanaModule.__init__(self, m, d, i)
 
        self.defaultTheme = constants.DEFAULT_THEME_ID
        self.cantLoad = []