![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Does zenity provides full functionality in GUI programming? I check the zenity page it only gives some limited window option like --info, --question.
Code:
#!/bin/ksh zenity --info \ --text="Terminating Program." ![]() |
|
|||
![]() Quote:
If you want complete control, look at wxWidgets, wxPython, Tcl/Tk, or Java Swing, but if I recall correctly, you have asked this very same question more than once before. |
|
||||
![]()
It's also note worthy: unless you know programming fairly well, you should not be creating GUI based software with most tool kits (although Tk bindings might make it a different story)
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
![]()
I know what's the problem now. I have another question.
Code:
#!/bin/ksh # OPT1='zenity --entry --text="Please input the host IP:" --title "input IP address:' Problem solved. I substitute OPT1=$() Last edited by bsdnewbie999; 16th April 2009 at 06:31 AM. Reason: solved |
|
||||
![]() Code:
OPT1=`zenity --entry --text="Please input the host IP:" --title "input IP address:"` Code:
OPT1=$(zenity --entry --text="Please input the host IP:" --title "input IP address:")
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
![]()
simpe script with zenity
Code:
#!/usr/local/bin/bash input=$(zenity --text "Siapa nama anda?" --entry) case=$? case $case in 0) zenity --info --text "Nama yang anda maukan adalah : $input";; 1) zenity --info --title "batal" --text "Proses dibatalkan."; exit 0; esac |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
shell script-start another process | bsdnewbie999 | Programming | 2 | 23rd April 2009 07:48 PM |
shell script compare md5 sum | bsdnewbie999 | Programming | 1 | 11th April 2009 02:20 PM |
incrementing within a shell script? | spiderpig | Programming | 5 | 29th September 2008 08:12 PM |
Shell Script. | bsdnewbie999 | Programming | 21 | 15th July 2008 07:54 AM |
shell script with input | c0mrade | Programming | 5 | 13th July 2008 04:33 AM |