AlkantarClanX12
Current Path : /lib64/python2.7/lib-tk/ |
Current File : //lib64/python2.7/lib-tk/FileDialog.pyc |
� zfc @ s� d Z d d l Td d l m Z d d l Z d d l Z i Z d d d � � YZ d e f d � � YZ d e f d � � YZ d � Z e d k r� e � n d S( sZ File selection dialog classes. Classes: - FileDialog - LoadFileDialog - SaveFileDialog i����( t *( t DialogNt FileDialogc B s� e Z d Z d Z d d � Z e j d d d d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d d � Z d � Z d � Z RS( s� Standard file selection dialog -- no checks on selected file. Usage: d = FileDialog(master) fname = d.go(dir_or_file, pattern, default, key) if fname is None: ...canceled... else: ...open file... All arguments to go() are optional. The 'key' argument specifies a key in the global dictionary 'dialogstates', which keeps track of the values for the directory and pattern arguments, overriding the values passed in (it does not keep track of the default argument!). If no key is specified, the dialog keeps no memory of previous state. Note that memory is kept even when the dialog is canceled. (All this emulates the behavior of the Macintosh file selection dialogs.) s File Selection Dialogc C s� | d k r | j } n | | _ d | _ t | � | _ | j j | � | j j | � t | j � | _ | j j d t d t � t | j � | _ | j j d t d t � | j j d | j � t | j � | _ | j j d t d t � | j j d | j � t | j � | _ | j j d t d t � t | j � | _ | j j d t d t � t | j d d d | j d f �| _ | j j d t d t d t � | j j � } | j j | d | d � | j j d | j � | j j d | j � | j j d | j d f � t | j � | _ | j j d t! d t � t | j d d d | j d f �| _"