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

PURPOSE --
  Build a widget for selecting a directory.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
o Initial implementation 7/24/03
o updated to grab/release focus. dc 10/6/03
o when browse is selected, start at the Browse_dir.  dc 4/25/07

 
Modules
       
Tix
os
re
sys
tkMessageBox
_tkinter

 
Classes
       
dir_selection_menu

 
class dir_selection_menu
    A GUI for selecting a directory.
 
  Methods defined here:
__init__(self, parent, comment, Browse_Opt=0, Browse_dir='', must_exist_flag=1)
Create a Tix Label Entry widget with an optional browse button.
The entry widget is only editable if there is a browse button.
cancel(self)
clear(self, event=None)
Clear the input file.
create(self)
get_entry(self)
Return the selected file.
select_dir_cmd(self)
set_entry(self, dir, must_exist=1)
Set the directory in the entry box.
 
If the 'must_exist' flag is true, the gui will produce an error
box if the input directory does not exist.

 
Data
        ACTIVE = 'active'
ALL = 'all'
ANCHOR = 'anchor'
ARC = 'arc'
BASELINE = 'baseline'
BEVEL = 'bevel'
BOTH = 'both'
BOTTOM = 'bottom'
BROWSE = 'browse'
BUTT = 'butt'
CASCADE = 'cascade'
CENTER = 'center'
CHAR = 'char'
CHECKBUTTON = 'checkbutton'
CHORD = 'chord'
COMMAND = 'command'
CURRENT = 'current'
DISABLED = 'disabled'
DOTBOX = 'dotbox'
E = 'e'
END = 'end'
EW = 'ew'
EXCEPTION = 8
EXTENDED = 'extended'
FALSE = 0
FIRST = 'first'
FLAT = 'flat'
False = 0
GROOVE = 'groove'
HIDDEN = 'hidden'
HORIZONTAL = 'horizontal'
INSERT = 'insert'
INSIDE = 'inside'
LAST = 'last'
LEFT = 'left'
MITER = 'miter'
MOVETO = 'moveto'
MULTIPLE = 'multiple'
N = 'n'
NE = 'ne'
NO = 0
NONE = 'none'
NORMAL = 'normal'
NS = 'ns'
NSEW = 'nsew'
NUMERIC = 'numeric'
NW = 'nw'
OFF = 0
ON = 1
OUTSIDE = 'outside'
PAGES = 'pages'
PIESLICE = 'pieslice'
PROJECTING = 'projecting'
Pmw = <Pmw.Pmw_1_3_3.lib.PmwLoader.PmwLoader instance>
RADIOBUTTON = 'radiobutton'
RAISED = 'raised'
READABLE = 2
RIDGE = 'ridge'
RIGHT = 'right'
ROUND = 'round'
S = 's'
SCROLL = 'scroll'
SE = 'se'
SEL = 'sel'
SEL_FIRST = 'sel.first'
SEL_LAST = 'sel.last'
SEPARATOR = 'separator'
SINGLE = 'single'
SOLID = 'solid'
SUNKEN = 'sunken'
SW = 'sw'
StringTypes = (<type 'str'>, <type 'unicode'>)
TOP = 'top'
TRUE = 1
TclVersion = 8.6
TkVersion = 8.6
True = 1
UNDERLINE = 'underline'
UNITS = 'units'
VERTICAL = 'vertical'
W = 'w'
WORD = 'word'
WRITABLE = 4
X = 'x'
Y = 'y'
YES = 1
__version__ = '4/25/07'
false = 0
true = 1
wantobjects = 1