Author Topic: Gui Dialog Tool?  (Read 2688 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Gui Dialog Tool?
« on: November 09, 2006, 05:46:14 pm »
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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Gui Dialog Tool?
« Reply #1 on: November 09, 2006, 06:01:42 pm »
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145937\"][{POST_SNAPBACK}][/a][/div]

xdialog is what you want then  it's in the feed I believe.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Gui Dialog Tool?
« Reply #2 on: November 10, 2006, 06:54:38 am »
Great, thanks! :-)
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Gui Dialog Tool?
« Reply #3 on: November 10, 2006, 10:28:40 am »
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: [Select]
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: [Select]
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: [Select]
   # 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
« Last Edit: November 10, 2006, 10:30:28 am by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Gui Dialog Tool?
« Reply #4 on: November 11, 2006, 04:33:19 pm »
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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0