Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 04 Mar 2015, 04:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
A few gtkdialog electronic panels
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 17:52    Post_subject:  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.com/trainer-board-homemade/
meter_panel.png
 Description   
 Filesize   40.24 KB
 Viewed   69 Time(s)

meter_panel.png


Edited_time_total
Back to top
View user's profile Send_private_message Visit_website YIM 
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 17:54    Post_subject: Some electronic panels  

Easy to adapt to our needs.









__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
meter.tar.gz
Description 
gz

 Download 
Filename  meter.tar.gz 
Filesize  62.64 KB 
Downloaded  1 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website YIM 
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 17:58    Post_subject: Now I'm working on this  

Now I'm working on this






__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
display.jpg
 Description   
 Filesize   6.53 KB
 Viewed   60 Time(s)

display.jpg


Edited_time_total
Back to top
View user's profile Send_private_message Visit_website YIM 
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:00    Post_subject: Now I'm working on this  

Also easily modify








__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
display.tar.gz
Description 
gz

 Download 
Filename  display.tar.gz 
Filesize  1.74 KB 
Downloaded  7 Time(s) 
Back to top
View user's profile Send_private_message Visit_website YIM 
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:50    Post_subject: 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.com/trainer-board-homemade/
meter.png
 Description   
 Filesize   13.98 KB
 Viewed   46 Time(s)

meter.png

Back to top
View user's profile Send_private_message Visit_website YIM 
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:56    Post_subject: 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:

Code:

#!/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.com/trainer-board-homemade/
Back to top
View user's profile Send_private_message Visit_website YIM 
mister_electronico


Joined: 20 Jan 2008
Posts: 729
Location: Asturias_ España

PostPosted: Sun 01 Mar 2015, 18:58    Post_subject: The pet  

easy program to modify








__________________________________________________________________________
My Blog

https://misterelectronicoes.wordpress.com/trainer-board-homemade/
meter.pet
Description 
pet

 Download 
Filename  meter.pet 
Filesize  1.29 KB 
Downloaded  8 Time(s) 
Back to top
View user's profile Send_private_message Visit_website YIM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0630s ][ Queries: 12 (0.0073s) ][ GZIP on ]