Draw the debugger gui on the screen.
(self)
| 174 | self.top.destroy() |
| 175 | |
| 176 | def make_gui(self): |
| 177 | """Draw the debugger gui on the screen.""" |
| 178 | pyshell = self.pyshell |
| 179 | self.flist = pyshell.flist |
| 180 | self.root = root = pyshell.root |
| 181 | self.top = top = ListedToplevel(root) |
| 182 | self.top.wm_title("Debug Control") |
| 183 | self.top.wm_iconname("Debug") |
| 184 | top.wm_protocol("WM_DELETE_WINDOW", self.close) |
| 185 | self.top.bind("<Escape>", self.close) |
| 186 | |
| 187 | self.bframe = bframe = Frame(top) |
| 188 | self.bframe.pack(anchor="w") |
| 189 | self.buttons = bl = [] |
| 190 | |
| 191 | self.bcont = b = Button(bframe, text="Go", command=self.cont) |
| 192 | bl.append(b) |
| 193 | self.bstep = b = Button(bframe, text="Step", command=self.step) |
| 194 | bl.append(b) |
| 195 | self.bnext = b = Button(bframe, text="Over", command=self.next) |
| 196 | bl.append(b) |
| 197 | self.bret = b = Button(bframe, text="Out", command=self.ret) |
| 198 | bl.append(b) |
| 199 | self.bret = b = Button(bframe, text="Quit", command=self.quit) |
| 200 | bl.append(b) |
| 201 | |
| 202 | for b in bl: |
| 203 | b.configure(state="disabled") |
| 204 | b.pack(side="left") |
| 205 | |
| 206 | self.cframe = cframe = Frame(bframe) |
| 207 | self.cframe.pack(side="left") |
| 208 | |
| 209 | if not self.vstack: |
| 210 | self.__class__.vstack = BooleanVar(top) |
| 211 | self.vstack.set(1) |
| 212 | self.bstack = Checkbutton(cframe, |
| 213 | text="Stack", command=self.show_stack, variable=self.vstack) |
| 214 | self.bstack.grid(row=0, column=0) |
| 215 | if not self.vsource: |
| 216 | self.__class__.vsource = BooleanVar(top) |
| 217 | self.bsource = Checkbutton(cframe, |
| 218 | text="Source", command=self.show_source, variable=self.vsource) |
| 219 | self.bsource.grid(row=0, column=1) |
| 220 | if not self.vlocals: |
| 221 | self.__class__.vlocals = BooleanVar(top) |
| 222 | self.vlocals.set(1) |
| 223 | self.blocals = Checkbutton(cframe, |
| 224 | text="Locals", command=self.show_locals, variable=self.vlocals) |
| 225 | self.blocals.grid(row=1, column=0) |
| 226 | if not self.vglobals: |
| 227 | self.__class__.vglobals = BooleanVar(top) |
| 228 | self.bglobals = Checkbutton(cframe, |
| 229 | text="Globals", command=self.show_globals, variable=self.vglobals) |
| 230 | self.bglobals.grid(row=1, column=1) |
| 231 | |
| 232 | self.status = Label(top, anchor="w") |
| 233 | self.status.pack(anchor="w") |
no test coverage detected