X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=DbgTerminal.py;h=605c2b79612823a92f4955f935517737b142f856;hb=1a0bc6a0b5ed8f42aca890ff0ebc4adb8831b6fc;hp=c8b079fe18491567865c0d86c4c2ca9e39902e6b;hpb=e3403072dbc8f31817f6492dea70ebdf5128fcb2;p=pygdb.git diff --git a/DbgTerminal.py b/DbgTerminal.py index c8b079f..605c2b7 100644 --- a/DbgTerminal.py +++ b/DbgTerminal.py @@ -5,6 +5,7 @@ __author__ = "shuber" import gtk +import pango import pty import string import time @@ -38,6 +39,10 @@ class DbgTerminal (vte.Terminal): self.connect("cursor-moved", self.contents_changed) self.connect("child-exited", lambda *w: gtk.main_quit()) + fontdesc = pango.FontDescription("monospace 9") + self.set_font(fontdesc) + + def contents_changed(self, term): c,r = term.get_cursor_position() @@ -111,7 +116,10 @@ class DbgTerminal (vte.Terminal): def setQuit(self): raise NotImplementedError() - def setBreakpoint(self, file, lineno): + def setBreakpoint(self, file, lineno, condition=False): + raise NotImplementedError() + + def delBreakpoint(self, breakpoint): raise NotImplementedError() def getExpression(self, expr):