import os import sys import shutil import traceback import hal import signal import subprocess from optparse import Option, OptionParser from PyQt5 import QtWidgets, QtCore # Set up the base logger # We have do do this before importing other modules because on import # they set up their own loggers as children of the base logger. from qtvcp import logger LOG = logger.initBaseLogger('QTvcp', log_file=None, log_level=logger.INFO) from qtvcp.core import Status, Info, QComponent, Path from qtvcp.lib import xembed try: from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView except: try: from PyQt5.QtWebKitWidgets import QWebView except: if sys.version_info.major > 2: LOG.error( 'Qtvcp Error with loading webView - is python3-pyqt5.qtwebengine installed?' ) else:
import os import sys import shutil import traceback import hal import signal from optparse import Option, OptionParser from PyQt5 import QtWidgets, QtCore from qtvcp.core import Status, Info from qtvcp.lib import xembed # Set up the base logger # We have do do this before importing other modules because on import # they set up their own loggers as children of the base logger. from qtvcp import logger log = logger.initBaseLogger('QTvcp', log_file=None, log_level=logger.DEBUG) # If log_file is none, logger.py will attempt to find the log file specified in # INI [DISPLAY] LOG_FILE, failing that it will log to $HOME/<base_log_name>.log # Note: In all other modules it is best to use the `__name__` attribute # to ensure we get a logger with the correct hierarchy. # Ex: log = logger.getLogger(__name__) STATUS = Status() INFO = Info() options = [ Option( '-c', dest='component', metavar='NAME' , help="Set component name to NAME. Default is basename of UI file") , Option( '-a', action='store_true', dest='always_top', default=False , help="set the window to always be on top")
import os import sys import shutil import traceback import hal import signal from optparse import Option, OptionParser from PyQt5 import QtWidgets, QtCore from qtvcp.core import Status, Info from qtvcp.lib import xembed # Set up the base logger # We have do do this before importing other modules because on import # they set up their own loggers as children of the base logger. from qtvcp import logger log = logger.initBaseLogger('QTvcp', log_file=None, log_level=logger.DEBUG) # If log_file is none, logger.py will attempt to find the log file specified in # INI [DISPLAY] LOG_FILE, failing that it will log to $HOME/<base_log_name>.log # Note: In all other modules it is best to use the `__name__` attribute # to ensure we get a logger with the correct hierarchy. # Ex: log = logger.getLogger(__name__) STATUS = Status() INFO = Info() ERROR_COUNT = 0 options = [ Option('-c', dest='component',
import hal from optparse import Option, OptionParser import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gdk import signal # Set up the base logger # We have do do this before importing other modules because on import # they set up their own loggers as children of the base logger. from qtvcp import logger LOG = logger.initBaseLogger('GladeVCP', log_file=None, log_level=logger.INFO) import gladevcp.makepins from gladevcp.gladebuilder import GladeBuilder from gladevcp import xembed from gladevcp.core import Status GSTAT = Status() options = [ Option('-c', dest='component', metavar='NAME', help="Set component name to NAME. Default is basename of UI file"), Option('-d', action='store_true', dest='debug', help="Enable debug output"),