def __init__(self): QTextEdit.__init__(self) self.setFont(QFont('Consolas', 9)) self.setPlainText('import cv2\nimg = None') self.setFixedHeight(100) self.setMinimumWidth(300)
def __init__(self, params): MWB.__init__(self, params) QTextEdit.__init__(self) self.setFont(QFont('Consolas', 9)) self.textChanged.connect(self.text_changed) self.setFixedHeight(150) self.setFixedWidth(300)
def __init__(self, parent=None): QTextEdit.__init__(self, parent) BaseEditMixin.__init__(self) TracebackLinksMixin.__init__(self) GetHelpMixin.__init__(self) self.calltip_widget = CallTipWidget(self, hide_timer_on=True) self.found_results = [] # To not use Spyder calltips obtained through the monitor self.calltips = False
def __init__(self, params, base_width=50, base_height=50): MWB.__init__(self, params) QTextEdit.__init__(self) c = self.parent_node_instance.color.name() self.setStyleSheet(''' QTextEdit{ color: '''+c+'''; background: transparent; border: 1px solid '''+c+'''; border-radius: 4px; } ''') self.setFont(QFont('source code pro', 10)) self.base_width = base_width self.base_height = base_height self.setFixedSize(self.base_width, self.base_height) self.setReadOnly(True) self.hidden_size = None
def __init__(self, params, base_width=50, base_height=50): MWB.__init__(self, params) QTextEdit.__init__(self) c = self.node.color self.setStyleSheet(''' QTextEdit{ color: ''' + c + '''; background: transparent; border: none; border-radius: 4px; padding: 0px; font-family: Source Code Pro; font-size: 10pt; } ''') # border: 1px solid '''+c+'''; # self.setFont(font) self.base_width = base_width self.base_height = base_height self.setFixedSize(self.base_width, self.base_height) self.setReadOnly(True) self.hidden_size = None
def __init__(self, parent=None): QTextEdit.__init__(self, parent) BaseEditMixin.__init__(self) self.found_results = []
def __init__(self, parent=None): QTextEdit.__init__(self, parent) self.highlighter = Q7PythonEditorHighlighter(self.document()) fsz = 12 ffm = 'Courier' self.setStyleSheet("font: %dpt \"%s\";" % (fsz, ffm))
def __init__(self, parent=None): QTextEdit.__init__(self, parent)
def __init__(self, parent): QTextEdit.__init__(self, parent=parent) self.setReadOnly(True)