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 Mon 01 Sep 2014, 18:20
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Gtkdialog: Function result to disable button
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
thanius

Joined: 04 Feb 2014
Posts: 8

PostPosted: Tue 04 Feb 2014, 13:28    Post subject:  Gtkdialog: Function result to disable button  

Hi there! This looks like a place where I can get some help with gtkdialog.
I'm writing a GUI for a script of mine and having trouble with some flags.

I want to have fileselect send a variable with a filepath, have it run through a md5 checker and enable an install button if md5 checks out ok.

So, fileselect to variable, have a function grab the variable and run its magic, return either true or false.
If true enable button, if false disable button.
Can this be done? I've tried creating flags within gtkdialog as well as bash function, but nothing seems to work - either returning wrong value or fileselect crashes after two failed entries.
Where can I find more advanced examples, other than those in the docs and wiki?

Cheers.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 04 Feb 2014, 15:04    Post subject:  

I don't know how familiar you are with bash scripting, but to examine pmenu-3.0.0.pet could be useful, of course.

It uses functions to enable/disable and to refresh its GUI buttons.

I have have used parts from this for some of my own scripts - really useful code to find in there!

Good luck with the your scripting-project!

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
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.0403s ][ Queries: 12 (0.0065s) ][ GZIP on ]