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 Thu 18 Sep 2014, 03:41
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Gtkdialog Tutorial Manual
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Author Message
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Wed 16 Oct 2013, 18:08    Post subject: version 1.9 available  

version 1.9

1) Previous package had packaging problem

2) Page added to explain the building of button with a function

3) Neat text editor example added

4) Added font-family to SVG images because I found problems
in displaying text in Porteus distribution

5) I made a special version for Porteus distribution ---> It requires
a special command to open the pages with the default browser.
I posted it on first post (also on Porteus forum).
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Sat 19 Oct 2013, 15:48    Post subject:  

version 2.0

-created a 'homogeneous' page

-added a new combobox example

-texteditor example changed 'fileselect' method
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Sat 26 Oct 2013, 15:27    Post subject:  

I put together a debian version that I made on Ubuntu.
Available on first post.

_____________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Mon 28 Oct 2013, 19:41    Post subject: Gtkdialog Tutorial Manual version 2.1  

version 2.1

2 new pages

1) checkbox widget (suggested by Argolance)

2) SVG button generators

_____________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Sat 09 Nov 2013, 16:26    Post subject:  

Version 22

-added a couple more pages - refresh comboboxtext and background
processes
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1817
Location: South Australia

PostPosted: Tue 26 Nov 2013, 08:37    Post subject:  

don,

Great tutorial. I've noticed that it doesn't display the following image:
Screen-30.png as It appears to be hard coded unlike the rest of the images.

Have you got a good real time example for the progress bar.

I'm trying to get a display when transferring files with ncat. The following strings work fine in a terminal.

To send----> ncat --send-only xxx.xxx.xxx.xxx port < /root/filename
To listen--> ncat -l 192.168.0.2 port > filename

How would you convert this to a ProgressBar in gtkdialog?

Thanks

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Wed 27 Nov 2013, 14:45    Post subject:  

To Smokey:

I'll look into the progress bar. I've never used it myself. Instead
I put a yaf-splash or gtkdialog splash screen at the top of screen
to remind the user that processing is being done in background.

Then kill command can be used to close the warning window.

The problem is that only a few distros have yaf-splash installed.
Carolina doesn't., but it has gtkdialog-splash
http://www.murga-linux.com/puppy/viewtopic.php?p=424522

Here's an example in Bulldog finder

Code:


yaf-splash -timeout 0  -placement top  -bg orange  -outline 0 -margin 10 -text "$(gettext 'Examining files, please wait...')" & PID=$!


and then kill with
Code:

kill $PID
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5028
Location: Arizona, U.S.A.

PostPosted: Wed 27 Nov 2013, 17:26    Post subject:  

don570; Thanks for the: "PID=$!" I`ve not seen that, it beats parsing ps for the pid.

I posted a download Xdialog progress utility here:

http://www.murga-linux.com/puppy/viewtopic.php?p=739943#739943

Any improvements or suggestions are welcome. I`ll be posting a new one Thursday - Friday.
.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Mon 02 Dec 2013, 20:43    Post subject:  

new version 2.3
- changed /root to $HOME and sh to bash
-I changed to this example to show an interesting input directive

Code:

#! /bin/bash

export MAIN_DIALOG='
<vbox border-width="20">
       <hbox>
            <text>
            <input>[ -d $HOME ] && echo "I found folder" && echo -e "\nYou bet I did" || echo -e "\n No, I did not find the folder"</input>
            </text>
       </hbox>
       </vbox>
'
gtkdialog --program MAIN_DIALOG


________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3287
Location: Ontario

PostPosted: Tue 03 Dec 2013, 16:58    Post subject:  

version 2.4

I came up with a new example for the input directive page

Code:

#! /bin/bash

echo 5 > /tmp/value.tmp

export MAIN_DIALOG='
<vbox border-width="20">
       <hbox>
            <text>
            <input>[  $(cat /tmp/value.tmp) -gt "8"  ]  &&  echo  TRUE || echo FALSE </input>
            </text>
       </hbox>
</vbox>
'
gtkdialog --program MAIN_DIALOG


________________________________________________
Back to top
View user's profile Send private message 
koulaxizis


Joined: 17 Jul 2011
Posts: 428
Location: Greece

PostPosted: Thu 12 Dec 2013, 10:08    Post subject:  

Mirrored

PET | DEB

Thank you so much for this project of yours. It's really helpful, even for me who am clueless! Very Happy

_________________
Christos Koulaxizis
Woof woof from Greece...

[ Puppy packages | Puppy search ]
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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