[Python-checkins] python/dist/src/Tools/pynche Switchboard.py,2.10,2.11

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
2002年10月21日 07:20:40 -0700


Update of /cvsroot/python/python/dist/src/Tools/pynche
In directory usw-pr-cvs1:/tmp/cvs-serv2077
Modified Files:
	Switchboard.py 
Log Message:
Fix a typo, update (only one) style improvement, whitespace
normalization.
Index: Switchboard.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/pynche/Switchboard.py,v
retrieving revision 2.10
retrieving revision 2.11
diff -C2 -d -r2.10 -r2.11
*** Switchboard.py	10 Jul 2001 21:48:51 -0000	2.10
--- Switchboard.py	21 Oct 2002 14:20:37 -0000	2.11
***************
*** 8,13 ****
 
 - When a Viewer selects a color and wishes to update all other Views, it
! should call update_views() on the Switchboard object. Not that the
! Viewer typically does *not* update itself before calling update_views(), 
 since this would cause it to get updated twice.
 
--- 8,13 ----
 
 - When a Viewer selects a color and wishes to update all other Views, it
! should call update_views() on the Switchboard object. Note that the
! Viewer typically does *not* update itself before calling update_views(),
 since this would cause it to get updated twice.
 
***************
*** 24,32 ****
 
 - colordb_changed() which takes a single argument, an instance of
! ColorDB. This is called whenever the color name database is changed and 
 gives a chance for the Viewers to do something on those events. See
 ListViewer for details.
 
! External Viewers are found dynamically. Viewer modules should have names such 
 as FooViewer.py. If such a named module has a module global variable called
 ADDTOVIEW and this variable is true, the Viewer will be added dynamically to
--- 24,32 ----
 
 - colordb_changed() which takes a single argument, an instance of
! ColorDB. This is called whenever the color name database is changed and
 gives a chance for the Viewers to do something on those events. See
 ListViewer for details.
 
! External Viewers are found dynamically. Viewer modules should have names such
 as FooViewer.py. If such a named module has a module global variable called
 ADDTOVIEW and this variable is true, the Viewer will be added dynamically to
***************
*** 65,69 ****
 fp = open(initfile)
 self.__optiondb = marshal.load(fp)
! if type(self.__optiondb) <> DictType:
 print >> sys.stderr, \
 'Problem reading options from file:', initfile
--- 65,69 ----
 fp = open(initfile)
 self.__optiondb = marshal.load(fp)
! if not isinstance(self.__optiondb, DictType):
 print >> sys.stderr, \
 'Problem reading options from file:', initfile

AltStyle によって変換されたページ (->オリジナル) /