Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/cl_break_selection_menu.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Mon Apr 11 06:29:33 2016
Кодировка:
Python: module cl_break_selection_menu
 
 
cl_break_selection_menu (version 15.10.21)
index
cl_break_selection_menu.py

PURPOSE --
This is a Command Loader break times menu that is driven by a counter.
 
DEVELOPER --
K. Clark and Don Chance
 
MODIFICATION HISTORY --
o Initial implementation 7/10/03
o fix bug dc 10/6/03
o fix disappearing load break problem.  dc 4/5/06
o Time_Entry moved from time_util to spss_tk_util drc 10/15/14
o import LOAD_BREAK_TYPES from pass_product. drc 10/21/15

 
Modules
       
Tix
mscl_util
multi_item_selection_menu
select_option_menu
time_util

 
Classes
       
multi_item_selection_menu.multi_item_selection_menu
cl_break_selection_menu

 
class cl_break_selection_menu(multi_item_selection_menu.multi_item_selection_menu)
     Methods defined here:
__init__(self, parent, cl, begin_time, end_time)
Constructor.
This can have many sub widgets depending on the control widget
counter.
clear(self)
Clear out all entries.
create_tab(self, tab_frame, default_item=None)
Method to populate a tab with submenus.
 
Default item should be a 3-item tuple (or None) with the computer
being the first item ('486' or 'nssc'), the load break type ('fixed'
or 'forced') as the second item, and the load break time (as an
spss_time object as the last item.
set_default_entries(self, def_item_list)
Set the default item selections.
update_cl_edit_namelist(self)
Return a dictionary like that used by clstart namelist for
storing load break times.

Methods inherited from multi_item_selection_menu.multi_item_selection_menu:
get_entries(self)
Get the selected items.
manage_tabs(self, cur_num_tabs)
Method to create and destroy tabs.
set_entry_count(self, item_count)
Set the item count.

 
Data
        LOAD_BREAK_TYPES = ['fixed', 'forced']
NAMELIST_KEY_TO_OBC = {'DFEOLTM': '486', 'DFLDBRK': '486', 'NSEOLTM': 'nssc', 'NSLDBRK': 'nssc'}
NAMELIST_KEY_TO_TYPE = {'DFEOLTM': 'fixed', 'DFLDBRK': 'forced', 'NSEOLTM': 'fixed', 'NSLDBRK': 'forced'}
OBC_TYPE_TO_NML_KEY = {'486': {'fixed': 'DFEOLTM', 'forced': 'DFLDBRK'}, 'nssc': {'fixed': 'NSEOLTM', 'forced': 'NSLDBRK'}}
__version__ = '15.10.21'