Yes. That's what i was looking for. Thanks very much. I didn't even realize a config file was created!find a file on your system something like /root/.config/gtk-2.0/gtkfilechooser.ini
In it there is a setting `ShowHidden=false`. Change it to true.
GtkDialog - tips
press the Enter key
To explain how it is possible to press the Enter key to
input the data to your program I have written a little script.
Just look at the script and run it and you will
understand the method that Zigbert explains on the first page.
Decompress to obtain script.
_________________________________________________
input the data to your program I have written a little script.
Just look at the script and run it and you will
understand the method that Zigbert explains on the first page.
Decompress to obtain script.
_________________________________________________
- Attachments
-
- demo_script.tar.gz
- Decompress to obtain script
- (662 Bytes) Downloaded 531 times
Porteus is getting behind the gtkdialog bandwagen
http://forum.porteus.org/viewtopic.php?f=94&t=1132
Some examples
http://puppy2.org/slaxer/Porteus/Gtkdia ... color.html
_________________________________________________________
http://forum.porteus.org/viewtopic.php?f=94&t=1132
Some examples
http://puppy2.org/slaxer/Porteus/Gtkdia ... color.html
_________________________________________________________
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
To show the selection of a folder by the two possible
methods Xdialog or gtkdialog. Compare each method
and decide which is best.
I wrote a simple script to compress a folder that the user selects.
The big difference is that Xdialog adds a slash at end of path.
methods Xdialog or gtkdialog. Compare each method
and decide which is best.
I wrote a simple script to compress a folder that the user selects.
The big difference is that Xdialog adds a slash at end of path.
- Attachments
-
- compression-demo.tar.gz
- (1.32 KiB) Downloaded 457 times
Last edited by don570 on Sat 09 Jun 2012, 19:19, edited 1 time in total.
I wanted to show how it is possible to choose a folder and
enter data in another field at the same time.
To see the final application I created go HERE
Using the most recent version of gtkdialog this is possible
(See image) When the folder is choosen the time
to compress is calculated (using a simple estimate based on size)
and then displayed in box underneath.
Compare this with the old method where a
refresh button had to be clicked to make a calculation.
I've included two scripts to show the two methods.
Re quires the most recent version of gtkdialog
refresh button version...
___________________________________________________
enter data in another field at the same time.
To see the final application I created go HERE
Using the most recent version of gtkdialog this is possible
(See image) When the folder is choosen the time
to compress is calculated (using a simple estimate based on size)
and then displayed in box underneath.
Compare this with the old method where a
refresh button had to be clicked to make a calculation.
I've included two scripts to show the two methods.
Re quires the most recent version of gtkdialog
refresh button version...
___________________________________________________
- Attachments
-
- Gtkdialog-demos.tar.gz
- two scripts to demonstrate calulating time
- (1.85 KiB) Downloaded 433 times
I tried -a 0:0, then -a :hw, then -a 'hw:0,0', then -a 0:hw:0, but now, i know the right word!zigbert wrote: ...
'mpg321 /dir/file' to play a audio-file.
If you use 'ffmpeg -i "/dir/file" -f au - | aplay -D plughw' it will play mp3, ogg, wma, flac, wav, ... without including more dependencies.
...
Finally, i've found the solution! Thanks!
-=Quirky Linux -1.40=-
mpg321 -a :plughw -o alsa /folder/file.mp3
OR:
mpg321 -a 0,0:plughw -o alsa /folder/file.mp3
To share sound card which has no hardware sound mixing:
aoss mpg321 -o alsa /folder/file.mp3
To Zigbert
On the first page -----> scrolling text example
Is this line correct? Just one quote sign?
_______________________________________________
On the first page -----> scrolling text example
Is this line correct? Just one quote sign?
Code: Select all
while : ; do echo -e "x\n 100; sleep 0.5; done
I guess it should bedon570 wrote:To Zigbert
On the first page -----> scrolling text example
Is this line correct? Just one quote sign?
_______________________________________________Code: Select all
while : ; do echo -e "x\n 100; sleep 0.5; done
Code: Select all
while : ; do echo -e "x\n 100"; sleep 0.5; done
Scrolling text with <text> and <timer> widgets, added theme thrown in..
Code: Select all
#!/bin/sh
# Scrolling text & embedded timer event illustration #2
# using text and timer widgets
FG=$1 BG=$2 MSG=$3
! [ "$1" -a "$2" -a "$3" ] && echo "usage: $0 fg-color bg-color \"string\"" &&\
FG=white BG=black MSG="This is a test... I repeat: This is a test... "
echo 'style "gtkdialog-prog"
{
bg[NORMAL] = "'"$BG"'"
fg[NORMAL] = "'"$FG"'"
}
widget "*prog" style "gtkdialog-prog"
class "*" style "gtkdialog-prog"' > /tmp/gtkrc_prog
export GTK2_RC_FILES=/tmp/gtkrc_prog:/root/.gtkrc-2.0
function scrolltext() {
thestr="${1}"
echo -en "${thestr:2}${thestr:0:2}"
}
export SCROLLMSG="$MSG"
export -f scrolltext
export GTKBOX='
<window title="Embedded Timer Event #2">
<vbox width-request="300">
<text>
<variable>SCROLLMSG</variable>
<input>scrolltext "$SCROLLMSG"</input>
</text>
<timer interval="1" visible="false">
<action type="refresh">SCROLLMSG</action>
</timer>
</vbox>
</window>'
gtkdialog4 -p GTKBOX -c
unset GTKBOX
Puppy Linux Blog - contact me for access
A pity it can't refresh more often than once a second...
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
It candisciple wrote:A pity it can't refresh more often than once a second...
Code: Select all
<timer milliseconds="true" interval="200" visible="false">
Mick
I have cut down the code to give a simple-as-possible example.
Main post updated
I have cut down the code to give a simple-as-possible example.
Main post updated
Code: Select all
#!/bin/sh
export MSG="This is a test... I repeat: This is a test... "
export GTKBOX='
<vbox width-request="300">
<text>
<variable>MSG</variable>
<input>echo -en "${MSG:2}${MSG:0:2}"</input>
</text>
<timer milliseconds="true" interval="200" visible="false">
<action type="refresh">MSG</action>
</timer>
</vbox>'
gtkdialog4 -p GTKBOX
Cool!
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
restrain combobox
Two scripts AVAILABLE
I posted two scripts in programming section of forums
to demonstrate how to restrain the combobox
From a list of audio players , only the installed
audio players are shown.
________________________________________________________
I posted two scripts in programming section of forums
to demonstrate how to restrain the combobox
From a list of audio players , only the installed
audio players are shown.
________________________________________________________
- walter leonardo
- Posts: 234
- Joined: Thu 10 Dec 2009, 22:10
Help with gtk-dialog
Could you help me with mine program electricity for puppy linux I'm doing. I want to do the calculations by pressing "enter" instead of pressing the button "calculate". Could you do that for me?. Now I send the files.
I'd also like to know how to make programs in a single window with multiple tabs, each program in each tab.
I'd also like to know how to make programs in a single window with multiple tabs, each program in each tab.
- Attachments
-
- vatiohms.tar.gz
- (1 KiB) Downloaded 506 times