def populate_widgets(self): self._dbg = None self.ipc = gtkextra.IPWindow(self) #self.add_button('debug', self.cb_but_debug, 'start') self.add_button('stop', self.cb_but_stop, 'Stop debugging.') self.add_button('step', self.cb_step, 'step') self.add_button('jump', self.cb_next, 'next') self.add_button('continue', self.cb_continue, 'continue') self.add_button('list', self.cb_but_list, 'Show source code context.') vp = gtk.VPaned() self.add(vp) tb = gtk.VBox() vp.pack1(tb) self.stack = StackTree(self.cb) tb.pack_start(self.stack.win) self.stack.connect_select(self.cb_stack_select) self.stack.connect_activate(self.cb_stack_activate) self.stack.connect_rightclick(self.cb_stack_rclick) nb = gtk.Notebook() vp.pack2(nb) brlb = gtk.Label() brlb.set_markup('<span size="small">Breaks</span>') self.breaks = BreakTree(self.cb) self.breaks.connect_rightclick(self.cb_breaks_rclick) nb.append_page(self.breaks.win, tab_label=brlb) loclb = gtk.Label() loclb.set_markup('<span size="small">Locals</span>') self.locs = LocalsTree(self.cb) self.locs.connect_activate(self.cb_locs_activate) nb.append_page(self.locs.win, tab_label=loclb) gllb = gtk.Label() gllb.set_markup('<span size="small">Globals</span>') self.globs = VarTree(self.cb) self.globs.connect_activate(self.cb_globs_activate) nb.append_page(self.globs.win, tab_label=gllb) self.dumpwin = DumpWindow(self.cb) self.add(self.dumpwin.win, expand=False) self.term = DebugTerminal(self.cb) self.add(self.term, expand=False) self.curindex = 0 self.menu = gtkextra.PositionPopup(self.cb, 'position') self.lfn = tempfile.mktemp('.py', 'pidatmp') self.debugger_loaded = False
def populate_widgets(self): vp = gtk.VPaned() self.add(vp) self.defs = DefTree(self.cb) vp.pack1(self.defs.win, resize=True, shrink=True) self.refwin = RefWin(self.cb) vp.pack2(self.refwin.win, resize=True, shrink=True) self.refs = self.refwin.tree self.add_button('warning', self.cb_but_pydoc, 'Look up in Pydoc') #self.add_button('profile', self.cb_but_profile, 'Run in the Python profiler') #self.add_button('debug', self.cb_but_debug, 'Run in the Python debugger') self.add_separator() self.add_button('undo', self.cb_but_undo, 'Undo last refactoring') self.add_button('rename', self.cb_but_rename, 'Rename class or method') self.add_button('find', self.cb_but_references, 'List references.') self.menu = gtkextra.PositionPopup(self.cb, 'position')