home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / Tools / twit / xxtwit_mod.py < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.2 KB  |  48 lines  |  [TEXT/Pyth]

  1. #
  2. # Window-dependent part of Module Browser window.
  3. #
  4. import sys
  5. import TwitCore
  6.  
  7.  
  8. class ModuleBrowser(TwitCore.ModuleBrowser):
  9.     """The module-browser dialog - Window-dependent part"""
  10.     def open(self, module):
  11.         pass # Open our window, initialize widgets
  12.  
  13.         self.mi_open(module)    
  14.         
  15.     def setsource(self, msg):
  16.         """Set source-window to self.cur_source, or display msg if None"""
  17.         if self.cur_source:
  18.             pass # Show current source, fill source window
  19.         else:
  20.             pass # Show msg, clear source window
  21.  
  22.     def source_setbreaks(self, list):
  23.         """Show linenumbers in list to contain breakpoints"""
  24.         pass # Show breakpoints at linenumbers in list
  25.  
  26.     def setmodulenames(self):
  27.         """Load self.cont_modules into module selector list"""
  28.         pass
  29.  
  30.     def module_select(self, number):
  31.         """Select module number"""
  32.         pass
  33.  
  34.     def setvars(self):
  35.         """Load self.cont_varnames, self.cont_varvalues into browser"""
  36.         pass 
  37.         
  38.     def close(self):
  39.         """Close our window"""
  40.         self.parent.module_dialog = None
  41.         pass
  42.  
  43.     # Callbacks:
  44.     # self.click_module(name) when a module is selected
  45.     # self.click_var(var) when a var is double-clicked
  46.     # self.click_source(lineno, inborber) when a source line is clicked
  47.     # self.click_edit() when the edit button is clicked
  48.