Coder Social home page Coder Social logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
Hi 8-bit

This is your modified example:

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

Near the top you export two nonexistent variables that you haven't initialised:

export ent1 ent3

Then the you embed the nonexistent $ent3 within the XML which will result in an 
empty string:

<entry fs-folder="'$ent3'" fs-action="file"

The reason it originally worked with fs-folder="'$HOME'" is because HOME exists.

Regards,
Thunor

Original comment by [email protected] on 2 Sep 2011 at 10:31

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
When I exit the example when run from a terminal, ent3 and ent1 are shown as 
having values.  What I want to know is how to get the string value from 
folder-ent3 to be taken by the file part as the directory it is to look in for 
a file.

BTW, Not passing the string value is what made Pfind/Advanced not work.
So how does one declare the variable so it can be passed?

Original comment by [email protected] on 2 Sep 2011 at 11:35

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
I'm having difficulties completely understandng what it is that you want to do 
but I'll have a guess:

You want to use the current contents of the entry widget -- in your example it 
is the widget whose variable property is "ent1" -- as input to the fileselect 
function i.e. if the entry widget's text is "/usr/share/pixmaps" then you'd 
like the fileselect function to initially open this folder?

If the above is correct then it's not going to happen. Why? Because the 
fileselect function does not and has never extracted data from widgets to use 
as input. The only way to make the fileselect function open a particular folder 
is to use the custom tag attribute fs-folder="path", and tag attributes can't 
be changed and are only applied once at start-up.

In the examples/miscellaneous folder is fileselect_deprecated. This is the old 
example and you can try it with your old copy of gtkdialog 0.7.20 to test if 
you want. As you'll find out, the fileselect function has always opened the 
current directory. Only now is it possible to use the custom tag attribute 
fs-folder="path" to specify a folder to open.

Original comment by [email protected] on 3 Sep 2011 at 10:53

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
Which application are you currently writing that's making use of the fileselect 
action? I'm interested in looking at some of your code from one of your 
applications.

Original comment by [email protected] on 3 Sep 2011 at 1:53

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
Ok, so you're only playing with the examples and you haven't written anything 
yet.

I'll close this then.

Original comment by [email protected] on 4 Sep 2011 at 10:53

  • Changed state: Invalid

from gtkdialog.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024

Original comment by [email protected] on 6 Sep 2011 at 11:15

  • Added labels: 8-bit

from gtkdialog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.