Comments (6)
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.
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.
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.
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.
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.
Original comment by [email protected]
on 6 Sep 2011 at 11:15
- Added labels: 8-bit
from gtkdialog.
Related Issues (20)
- Initially hidden widgets can leave artifacts depending on widget HOT 1
- Connect-up button-press and button-release to the comboboxentry entry child widget HOT 1
- Save tree widget data complete rather than just the exported column HOT 2
- Save selection on TREE widget HOT 4
- Progress bar pulse function HOT 2
- Tree selected-row(s) tag HOT 1
- Using arbitrary images on trees
- Change variable from shell
- String length of input file in tree widget
- stock icons with ltr and rtl versions do not work correctly in the window tag
- treeview should not temper data when saving
- variable in edit display HOT 2
- threading
- splitter like feature
- Option to set the GTK floating hint on dialog HOT 1
- Clearify the meaning of function in widget reference
- Attempt to unlock mutex that was not locked HOT 6
- Installing gtkdialog on Solaris 10
- Can this project be compiled with gtk3?
- How can I purge a broken install from Ubuntu 14.04 64bit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkdialog.