pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
PathGetter

PathGetter - 6.0

josmiley / Luke spywoker (mutualaccount)

Tags:

Description

This is a function that allows the user to enter a valid file path like in a file browser.
It returns a string.
Browse with mouse or keyboard. It supports tab-completion.
You can also display a resizable and rotatable image preview.

Usage is very simple:
     In a python script: PathGetter(path='',mode=None,caption='Path Getter')

mode = None ==> any path
mode = 1 ==> file path
mode = 2 ==> directory path

The code is executed in a separated window using the subprocess module.
Therefore, it's independent of the size of your window.

see example_pathgetter.py for example

thanks to Jouni Järvinen and spacemax for testing and optimization.


Changes

some bugfixes and some changes

Links

Home Page: http://joel-murielle.perso.sfr.fr
Source: http://joel-murielle.perso.sfr.fr/PathGetter.zip

Screenshot


click to view original size

Releases

PathGetter - 6.6 - Jul 2, 2011
PathGetter - 6.5 - Jul 1, 2011
PathGetter - 6.4 - Jun 23, 2011
PathGetter - 6.3 - Jun 22, 2011
PathGetter - 6.2 - Jun 12, 2011
PathGetter - 6.1 - Jun 11, 2011
PathGetter - 6.0 - May 30, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

May 6, 2011 5:23am - Boris Tatarintsev - nickname: (risboo) - 5/5
Very useful thing. Maybe I will use it in one of my projects. Thanks
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 22, 2014

Jul 21, 2014


Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)