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 |
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 |