A few gtkdialog electronic panels
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
A few gtkdialog electronic panels
I'm always looking to make panels for various electronic applications I use, so'll show here does anyone if it is useful.
The first thing I made a while and programmed in gtkdialog:
_________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
The first thing I made a while and programmed in gtkdialog:
_________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- meter_panel.png
- (40.24 KiB) Downloaded 703 times
Last edited by mister_electronico on Sun 01 Mar 2015, 21:56, edited 1 time in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Some electronic panels
Easy to adapt to our needs.
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- meter.tar.gz
- (62.64 KiB) Downloaded 375 times
Last edited by mister_electronico on Tue 03 Mar 2015, 21:26, edited 2 times in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Now I'm working on this
Now I'm working on this
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- display.jpg
- (6.53 KiB) Downloaded 581 times
Last edited by mister_electronico on Sun 01 Mar 2015, 22:01, edited 1 time in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Now I'm working on this
Also easily modify
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- display.tar.gz
- (1.74 KiB) Downloaded 347 times
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
The next panel
The following program hize one pet, the structure of the files in this pet is:7
./root/temporal/temp/gtkrc
./root/temporal/temp/timer
./usr/bin/meter
We have opened a terminal and type meter and it opens the following program:
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
./root/temporal/temp/gtkrc
./root/temporal/temp/timer
./usr/bin/meter
We have opened a terminal and type meter and it opens the following program:
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- meter.png
- (13.98 KiB) Downloaded 558 times
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
The next panel
Any number that we introduce in entry is displayed on the screen after pressing the button Getin
The code is as follows:
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
The code is as follows:
Code: Select all
#!/bin/sh
export WORKDIR=$HOME/temporal/tmp
export GTK2_RC_FILES=$WORKDIR/gtkrc:/root/.gtkrc-2.0 #include theme stuff with system themes
function getin()
{
echo $1 > /dev/shm/data.dat
}
echo " 0" > /dev/shm/data.dat #graba archivo memoria ram virtual de control
export -f getin
###############################################
# #
# M A I N G U I #
# #
###############################################
export diagnostico='
<window title="Panel_meter" default_height="200" icon-name="gtk-no">
<vbox>
<entry name="timer" width-request="420" height-request="65" editable="false" xalign="1">
<variable>ENTRY1</variable>
<input>cat '/dev/shm/data.dat'</input>
</entry>
<frame Enter a value between 0 and 9999>
<hbox>
<text width-chars="10" height-request="42"><label>""</label></text>
<entry width-request="0" max_length="7" height-request="25" Expand="no" Fill="no">
<variable>numero</variable>
</entry>
</hbox>
<hbox>
<button>
<label>Get in</label>
<action>getin $numero</action>
</button>
</hbox>
</frame>
<timer milliseconds="true" interval="250" visible="false">
<action type="refresh">TIMER</action>
<action type="refresh">ENTRY1</action>
</timer>
<hbox>
<button width-request="70" height-request="48">
<label> Exit </label>
<action>"killall contador"</action>
<action>exit:Exit</action>
</button>
</hbox>
</vbox>
</window>'
gtkdialog4 -p diagnostico
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
The pet
easy program to modify
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- meter.pet
- (1.29 KiB) Downloaded 336 times
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Other four displays
Continuing with the mount display this program with four displays and can be activated four blue, red, green and white colors display.
besides you can do to mark each of the decimal points in the four digits.
This program is a pet to make sure that is placed in the directory
/ usr / bin
It is the Display4 that by itself does nothing is an executable.
Whose mission is to create an SVG image into / tmp / display with the name:
num.svg
This image can then be embedded in any our program through a pixmap within our program gtkdialog.
How does the execution of this is:
number display (four-digit) number (indicating the decimal position)
The color of the display must previously stored in:
/tmp/display/colour.dat
Having options blue green red white even if we can create many more.
Well the executable is this pet.
______________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
besides you can do to mark each of the decimal points in the four digits.
This program is a pet to make sure that is placed in the directory
/ usr / bin
It is the Display4 that by itself does nothing is an executable.
Whose mission is to create an SVG image into / tmp / display with the name:
num.svg
This image can then be embedded in any our program through a pixmap within our program gtkdialog.
How does the execution of this is:
number display (four-digit) number (indicating the decimal position)
The color of the display must previously stored in:
/tmp/display/colour.dat
Having options blue green red white even if we can create many more.
Well the executable is this pet.
______________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- display4.pet
- (4.13 KiB) Downloaded 312 times
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Application program
The program to use the previous program and see how it works can be done like this:
The look of it is:
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
The look of it is:
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- display4.png
- (35.21 KiB) Downloaded 494 times
Last edited by mister_electronico on Wed 11 Mar 2015, 09:30, edited 1 time in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
panel_display
The program we have put 4 digits long, no less and always numbers without commas
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- panel_display.tar.gz
- (1.09 KiB) Downloaded 327 times
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Thanks
I would like to thank all the people gtkdialog forum has taught me so much withyours post, to Sigmund Berglund where Ptiming kick panel. to don570 whose post about SVG has given me many ideas for my programs and all the people this forum.
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
Last edited by mister_electronico on Wed 06 May 2015, 13:48, edited 1 time in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
Hi.
Hi don570 Thanks to your posts SVG I can make these programs now
Now I am working in this light panel:
https://www.youtube.com/watch?v=-B6hQdiPCaM
But I have to handle many details of the code so then I'm doing it in C.
Regards
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
Now I am working in this light panel:
https://www.youtube.com/watch?v=-B6hQdiPCaM
But I have to handle many details of the code so then I'm doing it in C.
Regards
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- LIGHT_PANEL.png
- (20.36 KiB) Downloaded 441 times
Last edited by mister_electronico on Wed 06 May 2015, 13:49, edited 1 time in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
One panel control.
Someone programming forum wondered how to perform a control panel, and I was happened to this program.
This code is thanks to the people on the forum "gtkdialog-tips", but I adapted to this control panel, I wanted to put it here, because in the future want to make control panel for electronic equipment and fits well with this open post.
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
This code is thanks to the people on the forum "gtkdialog-tips", but I adapted to this control panel, I wanted to put it here, because in the future want to make control panel for electronic equipment and fits well with this open post.
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- PANEL.png
- (10.03 KiB) Downloaded 326 times
Last edited by mister_electronico on Wed 06 May 2015, 13:49, edited 1 time in total.
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
how works.
I hope he can be transferred to other computers without problems since it may different settings do not work desktops.
You have to download the compressed file, decompress and get into the /PANEL directory and run by:
./panel.sh
You may need to give permission
chmod 777 panel.sh
And itch with the mouse in the panel buttons.
Greatings.
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
You have to download the compressed file, decompress and get into the /PANEL directory and run by:
./panel.sh
You may need to give permission
chmod 777 panel.sh
And itch with the mouse in the panel buttons.
Greatings.
__________________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- panel.tar.gz
- (1.44 KiB) Downloaded 251 times
From other thread:
Thanks!
greengeek wrote: I do notice that it requires a long press on the mouseclick button - if I do my normal click it does not respond so I have to hold my finger on the button a little bit longer than usual.
I see you have now dropped this to 50, but that is still too slow on my machine - I dropped it further to 10 and now it responds quickly to the mouse.mister_electronico wrote:Try this, change timer time in the line of program code, I put 100 of time to ensure that work on slower computers, but you can put in 80, 60, 50 or less and the click of mouse will be faster.Thanks for check it and reply.Code: Select all
<timer visible="false" milliseconds="true" interval="100"
Thanks!
- mister_electronico
- Posts: 969
- Joined: Sun 20 Jan 2008, 20:20
- Location: Asturias_ España
- Contact:
when the program becomes more complex ...
Anyway when the program gtkdialog and SVG are made larger, the program become in too slow.
The work with large pictures in SVG with gtkdialog makes processes are very slow.
The only way to make it faster is to make the program much like C or other powerful programming language.
In the program I made this knob thanks to the overwhelming support of the forum "gtkdialog tips" in the end the only way I found to do it a little faster, was doing the biggest part of the code in C.
I'm glad I got this knob for surely it has used in the electronic panels.
This is the link to downdload it.
http://www.murga-linux.com/puppy/viewto ... 367#840367
______________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
The work with large pictures in SVG with gtkdialog makes processes are very slow.
The only way to make it faster is to make the program much like C or other powerful programming language.
In the program I made this knob thanks to the overwhelming support of the forum "gtkdialog tips" in the end the only way I found to do it a little faster, was doing the biggest part of the code in C.
I'm glad I got this knob for surely it has used in the electronic panels.
This is the link to downdload it.
http://www.murga-linux.com/puppy/viewto ... 367#840367
______________________________________________________________________
My Blog
https://misterelectronicoes.wordpress.c ... -homemade/
- Attachments
-
- knob.png
- (17.75 KiB) Downloaded 235 times