예제 #1
0
파일: widgets.py 프로젝트: oguntli/bugjar
    def __init__(self, *args, **kwargs):
        self.debugger = kwargs.pop('debugger')
        kwargs['lexer'] = PythonLexer(stripnl=False)
        ReadOnlyCode.__init__(self, *args, **kwargs)

        # Set up styles for line numbers
        self.lines.tag_configure('enabled', background='red')
        self.lines.tag_configure('disabled', background='gray')
        self.lines.tag_configure('ignored', background='green')
        self.lines.tag_configure('temporary', background='pink')

        self.line_bind('<Double-1>', self.on_line_double_click)
        self.name_bind('<Double-1>', self.on_name_double_click)
예제 #2
0
 def __init__(self, *args, **kwargs):
     ReadOnlyCode.__init__(self, *args, **kwargs)
예제 #3
0
 def __init__(self, *args, **kwargs):
     kwargs['lexer'] = PythonLexer(stripnl=False)
     ReadOnlyCode.__init__(self, *args, **kwargs)
예제 #4
0
파일: widgets.py 프로젝트: pybee/duvet
 def __init__(self, *args, **kwargs):
     ReadOnlyCode.__init__(self, *args, **kwargs)