mikshaw


Group: Members
Posts: 4856
Joined: July 2004 |
 |
Posted: Mar. 25 2008,18:46 |
 |
Quote | the fltk filechooser returns a full path of the selected wallpaper, like /home/dsl/image.png. I just need the image.png piece of that |
use fl_filename_name()
Code Sample | image_path=fltk.fl_file_chooser("Choose an image","Image Files (*.{jp{,e}g,png,bmp,xbm,xpm,gif})",nil, nil) if image_path then my_image=fltk.fl_filename_name(image_path) print(my_image) end |
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|