File Dialog Box

  • Thread starter Christopher Howard
  • Start date
C

Christopher Howard

I'm writing some scripts that do most everything from the command-line.
Only thing GUI that would really help is a File Dialog box for selecting
file locations. What module would give me the fastest access to one?
(I.e., shortest learning time.)

Two things that can be taken for granted:

* Script will be run on Linux system
* Script will be run under Gnome desktop environment
 
A

Anurag Priyam

I'm writing some scripts that do most everything from the command-line.
Only thing GUI that would really help is a File Dialog box for selecting
file locations. What module would give me the fastest access to one?
(I.e., shortest learning time.)

Two things that can be taken for granted:

* Script will be run on Linux system
* Script will be run under Gnome desktop environment

Zenity should do the job for you. In IRB try:

file = `zenity --file-selection` #=> '/home/yeban/foo'

Also, see man zenity for more widgets.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top