Help - Search - Members - Calendar
Full Version: Gui Dialog Tool?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
daniel3000
Hello,

does anyone know a command line tool, preferably based on GTK, which allows to present BUI dialogs to the user with some limited interaction?

I.e. a tool which can be used from within a shell script to let the user interact with the shell script without letting the user ever see that it IS a shell script?

Simple ialogs like "some text [OK]" and "some text [Yes] [No]" would be enough.

Thanks a lot!
daniel
Meanie
QUOTE(daniel3000 @ Nov 10 2006, 08:46 AM)
Hello,

does anyone know a command line tool, preferably based on GTK, which allows to present BUI dialogs to the user with some limited interaction?

I.e. a tool which can be used from within a shell script to let the user interact with the shell script without letting the user ever see that it IS a shell script?

Simple ialogs like "some text [OK]" and "some text [Yes] [No]" would be enough.

Thanks a lot!
daniel
*


xdialog is what you want then smile.gif it's in the feed I believe.
daniel3000
Great, thanks! :-)
daniel3000
I have a problem. Maybe someone can help? I have no knowledge about the font system in X, just read a few web pages about it but could not solve the problem:

The font in a msgbox of Xdialog is very small and fixed-width. I'd rather like to have a proportional and larger font.

So I used the Xdialog parameter --rc-file ~/.gtkrc.xdialog and created the file ~/.gtkrc.xdialog:

CODE
style "Default" {
fontset = "-misc-*-*-*-*-*-*-200-*-*-*-*-ISO8859-1"
}
class "*" style "Default"


I used xfontsel to determine that font string in the rc file.

This gives a larger font, but it looks like wrongly decoded Unicode (i.e. alternating characters with dotted boxes like this).
CODE
T_h_i_s_ _i_s_ _a_ _m_s_g_._

(underscore representing a rectangular box)

So I changed ISO8859-1 to UTF-8 which made no difference.

Then I found on the web some additional fonts to install here.

Basically, I did this:

CODE
   # cd /usr/X11R6/lib/X11/fonts
   # tar xjf /tmp/artwiz-fonts.tar.bz2
   # cd fluxbox-artwiz-fonts
   # mkfontdir
   # chkfontpath -q -a /usr/X11R6/lib/X11/fonts/fluxbox-artwiz-fonts:unscaled


(the last command chkfontpath was not available on pdaXrom, so I omitted it).

Restarting X and xfontsel: The new fonts are NOT shown.

So I am at two dead ends here:

1. How to fix the unicode problem?
2. How to install new fonts?

Any pointers are welcome! Thanks a lot!
daniel
daniel3000
Even that did not help.


Xdialog works fine, except that the fonts are too small and I am not able to configure it to use another font.

Is there an alternative to Xdialog I could try?

Thanks
daniel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.