Server IP : 162.213.251.212 / Your IP : 18.220.140.29 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/lib64/python2.7/lib-tk/ |
Upload File : |
� 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 �| _"