def __init__(self, creator): super(tlLogging, self).__init__() tlLogging._iface = creator.iface tlLogging._logDock = tlLogging._iface.mainWindow().findChild( QDockWidget, 'MessageLog') tlLogging.HEADER = Settings.getMeta('name', 'general') tlLogging._logStates = int( Settings.get("logStates", tlLogging._logStates))
def openFileInBrowser(file_name): if os.path.basename(file_name) == file_name: file_name = os.path.join(Settings.get("plugin_dir"), file_name) if os.path.exists(file_name): webbrowser.open(tlLogging.path2url(file_name))
def openFileInBrowser(file_name): if os.path.basename(file_name) == file_name: file_name = os.path.join(Settings.get("plugin_dir"),file_name) if os.path.exists(file_name): webbrowser.open(tlLogging.path2url(file_name))
def __init__(self,creator): super(tlLogging,self).__init__() tlLogging._iface = creator.iface tlLogging._logDock = tlLogging._iface.mainWindow().findChild(QDockWidget, 'MessageLog') tlLogging.HEADER = Settings.getMeta('name','general') tlLogging._logStates = int(Settings.get("logStates",tlLogging._logStates))