Exemple #1
0
    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)
Exemple #2
0
 def __init__(self, *args, **kwargs):
     ReadOnlyCode.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     kwargs['lexer'] = PythonLexer(stripnl=False)
     ReadOnlyCode.__init__(self, *args, **kwargs)
Exemple #4
0
 def __init__(self, *args, **kwargs):
     ReadOnlyCode.__init__(self, *args, **kwargs)