예제 #1
0
파일: widgets.py 프로젝트: xxoolm/Ryven
    def __init__(self):
        QTextEdit.__init__(self)

        self.setFont(QFont('Consolas', 9))
        self.setPlainText('import cv2\nimg = None')
        self.setFixedHeight(100)
        self.setMinimumWidth(300)
예제 #2
0
    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)
예제 #3
0
파일: control.py 프로젝트: zhygit/spyder
    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
예제 #4
0
    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
예제 #5
0
파일: widgets.py 프로젝트: xxoolm/Ryven
    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
예제 #6
0
파일: control.py 프로젝트: zhygit/spyder
 def __init__(self, parent=None):
     QTextEdit.__init__(self, parent)
     BaseEditMixin.__init__(self)
     self.found_results = []
예제 #7
0
 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))
예제 #8
0
 def __init__(self, parent=None):
     QTextEdit.__init__(self, parent)
예제 #9
0
 def __init__(self, parent):
     QTextEdit.__init__(self, parent=parent)
     self.setReadOnly(True)