home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-10-04 | 1.1 KB | 50 lines | [TEXT/Pyth] |
- # A stab at a python debugger
- import sys
- import TwitCore
-
- class StackBrowser(TwitCore.StackBrowser):
- """The stack-browser dialog - macTk-dependent part"""
- def open(self):
- pass # Open window, create widgets
-
- self.mi_open()
-
- def setsource(self, msg):
- if self.cur_source:
- pass # Show current source, fill source window
- else:
- pass # Show msg, clear source window
-
- def source_setbreaks(self, list):
- pass # Show breakpoints at linenumbers in list
-
- def source_setline(self, lineno, icon):
- pass # Select line 'lineno' with icon 'icon'
-
- def stack_select(self, number):
- pass # Select stackframe number (or None)
-
- def setvars(self):
- pass Load self.cont_varnames, self.cont_varvalues into browser
-
- def setexception(self, name, value):
- if name == None:
- pass # Set no exception
- else:
- pass # set exception
- if value == None:
- pass # Set value
- else:
- pass # Set no value
-
- def setprogramstate(self, msg):
- pass # Set state to "msg"
-
- def set_var_buttons(self):
- pass # Show self.show_complex and self.show_system state
-
- def close(self):
- self.parent.module_dialog = None
- pass # close window, widgets, etc.
-
-