On Wed Oct 17 0:08 , Frank Barknecht sent:
Hallo, Atte André Jensen hat gesagt: // Atte André Jensen wrote:
My paths section in my preferences is full, and I need to ad another. remember there was some discussion recently about how to add more, but I can't seem to find it. Could anyone refresh my memory?
Hm, this gets asked (and answered) once every 1.5 weeks. What can we do about it?
maybe a little help or hint link inside the preference dialogue that points to http://puredata.info/docs/tutorials/TipsAndTricks#add-more-entries-to-the-pa...
would help a lot.
any tcl/tk heroes around?
eni
On Oct 17, 2007, at 6:14 AM, Enrique Erne wrote:
On Wed Oct 17 0:08 , Frank Barknecht sent:
Hallo, Atte André Jensen hat gesagt: // Atte André Jensen wrote:
My paths section in my preferences is full, and I need to ad
another. remember there was some discussion recently about how to add
more, but I can't seem to find it. Could anyone refresh my memory?Hm, this gets asked (and answered) once every 1.5 weeks. What can we do about it?
maybe a little help or hint link inside the preference dialogue
that points to http://puredata.info/docs/tutorials/TipsAndTricks#add-more-entries- to-the-path-and-library-dialogswould help a lot.
any tcl/tk heroes around?
It would be much better to actually create a preferences pane that
can handle more than 10 items. If someone handles building the GUI,
I'll help make it work in Pd. If you've done any kind of GUI
building, then it's quite straightforward. You don't really have to
know Tcl at all.
http://pure-data.cvs.sourceforge.net/pure-data/pd/src/u_main.tk? view=markup
At line 4124, you'll see proc pdtk_path_dialog {id extrapath
verbose}, that's the function that draws the preference pane. "wm"
is the sets the window properties, "frame" is a frame for GUI
elements, like Swing or any other GUI toolkit, "pack" gathers
together the elements into a unit. "button" is a button,
"checkbutton" is a checkbox, "entry" is a textfield, etc.
You can edit that file in your Pd install (/usr/local/lib/pd/bin/
pd.tk, /Applications/Pd-extended.app/Contents/Resources/bin/pd.tk, or
C:\Program Files\pd\bin\pd.tk)
.hc
eni
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin
Hans-Christoph Steiner wrote:
You can edit that file in your Pd install (/usr/local/lib/pd/bin/ pd.tk, /Applications/Pd-extended.app/Contents/Resources/bin/pd.tk, or
C:\Program Files\pd\bin\pd.tk)
the problem is, that pd(-engine) won't send more than 10 paths to the pd-gui; so you can add as many slots as you want, but you will still lose you changes once you re-open the path-dialog and save.
that's why i (as total tcl/tk noob) did this patch: https://sf.net/tracker/index.php?func=detail&aid=1810951&group_id=55...
mfga.sdr IOhannes
On Oct 17, 2007, at 12:32 PM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
You can edit that file in your Pd install (/usr/local/lib/pd/bin/
pd.tk, /Applications/Pd-extended.app/Contents/Resources/bin/pd.tk,
or C:\Program Files\pd\bin\pd.tk)the problem is, that pd(-engine) won't send more than 10 paths to
the pd-gui; so you can add as many slots as you want, but you will
still lose you changes once you re-open the path-dialog and save.that's why i (as total tcl/tk noob) did this patch: https://sf.net/tracker/index.php? func=detail&aid=1810951&group_id=55736&atid=478072
Looks interesting, it would be much easier for us to test it if you
check it into packages/patches, then it'll be in all the autobuilds. :D
I have two comments on it:
a scrollable text field of fixed size, like 10 elements or so. Then
that textfield can handle unlimited numbers of paths. Then there
would be a + and - button to add and remove things.
it seems like it would be much cleaner if pd_startup (and pd_path for
that matter) were array or list references.
.hc
mfga.sdr IOhannes
I spent 33 years and four months in active military service and
during that period I spent most of my time as a high class muscle man
for Big Business, for Wall Street and the bankers. - General
Smedley Butler
Hans-Christoph Steiner wrote:
Looks interesting, it would be much easier for us to test it if you
check it into packages/patches, then it'll be in all the autobuilds. :D
yes, feel free to add it :-)
I have two comments on it:
- Instead of having an 'entry' for each line, I think there should be
a scrollable text field of fixed size, like 10 elements or so. Then
that textfield can handle unlimited numbers of paths. Then there
would be a + and - button to add and remove things.
yes of course. however it was too complicated for my limited knowledge of tcl/tk and time.
- instead of having pd_startup0 thru pd_startupN as global variables,
it seems like it would be much cleaner if pd_startup (and pd_path for
that matter) were array or list references.
again my limited skills! btw, "pd_startup" and "pd_path" _are_ list references. i just didn't bother how to add elements of a global list variable as storage for the text entries.
the good thing is that with my patch, at least the infrastructure at the C-side is independent of the number of paths.
just take my code and modify it to your needs.
fgma.r IOhannes