I want create a simple graphical (Qt, Gtk, …) dialog, concretly a simple print dialog, as a “frontend” to lpr, in bash.
What I want? How many pages per page, printing interval. It’s (at least) two options.
What is the best util(s) to solve this problem?
I’ve searched what dialog creators are. I found yad and with this I can set my desired options:
And when I choose “2 pages per sheet” and pages “1-12” and after click
OKthe output will2|1-12|.This is what I desired. Zenity or Xdialog can do similar?