Changeset 672fd040f6413d28c4cfa7831376d377abc57bc9


Ignore:
Timestamp:
01/06/12 11:54:37 (5 months ago)
Author:
Luper Rouch <luper.rouch@…>
Children:
5253706ae2c35f989c2eb18ee544f2ac3719b64a, 590e140e8c9e1d5aa50c0e5fba841ce6fa66f76f
Parents:
01f3d34a02f0973bb81905a9ffaaf758c27b75a2, 27525b9500535342b873d441b673327303a2ea3a
git-committer:
Luper Rouch <luper.rouch@…> (01/06/12 11:54:37)
Message:

Merge branch 'master' of luper.fr:projects

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • various/cv.html

    r04e2462 r27525b9  
    140140                    <li> 
    141141                        <span class="job-position">Développeur chez <a href="http://www.stupeflix.com">Stupeflix</a></span> 
    142                         <small>XP : (Python)+++, (Django)+++, (OpenGL)++</small> 
     142                        &ndash; <small>XP : (Python)+++, (Django)+++, (OpenGL)++</small> 
    143143                        <ul> 
    144144                            <li> 
  • pyflu/pyflu/__init__.py

    r08bf1a4 r01f3d34  
    55 
    66def version(): 
    7     return "0.9.2" 
     7    return "0.9.3" 
    88 
  • pyflu/pyflu/qt/util.py

    r2ea9020 r01f3d34  
    7171 
    7272def get_open_path(parent, settings_path=None, filter=None, 
    73         default_dir=None, default_filename=None): 
     73        default_dir=None, default_filename=None, select_directory=False): 
    7474    """ 
    7575    Shows an 'open file' dialog and returns the selected path. 
     
    8484 
    8585    If *default_filename* is given, select this file. 
     86 
     87    If *select_directory* is ``True``, a directory is selected instead of a  
     88    file. 
    8689 
    8790    Return None if the user canceled. 
     
    99102    dlg = QFileDialog(parent) 
    100103    dlg.setWindowTitle(parent.trUtf8("Open")) 
    101     dlg.setFileMode(QFileDialog.ExistingFile) 
     104    if select_directory: 
     105        dlg.setFileMode(QFileDialog.Directory) 
     106    else: 
     107        dlg.setFileMode(QFileDialog.ExistingFile) 
    102108    dlg.setAcceptMode(QFileDialog.AcceptOpen) 
    103109    dlg.setDirectory(default_dir) 
Note: See TracChangeset for help on using the changeset viewer.