hi all,
i've got some problems using tot ...
it seems that tot is loosing messages. e.g. if i add several entries to a listbox with |tot .- insert end $1( and try to run a tcl/tk script to sort the entries the script won't run. i have to delay the message to invoke the script by a short time (100 ms) before it will run...
i'm not shure where the problem is, either tot doesn't accept the message or the tcl/tk communication is too slow... it's on win32, devel_0_37 without the threaded gui patch...
any hints?
cheers .... tim
hi Tim,
I think you are likely to be better off using the -listvariable option, instead of directly handling items with listbox widget commands. Make sure the name of a variable is unique, and that it is always written fully qualified into some namespace. Create a
[widget listbox <widname> -listvariable <varname> <otheroptions>]
and lappend, linsert, lsort, etc. through that variable. Not only things are easier, and faster that way -- first of all, the contents of your widget will be stored beyond widget's lifetime, e.g. after closing of a subpatch window (the -variable option is implicit for simple widget types defined by toxy, but listbox is not one of them).
Btw, a scriptlet cannot be longer than 20000 chars, which is the only limit imposed by toxy itself (it is there, because this is the max chunk of data pdgui layer is able to swallow at once). However, there is a warning printed to the console, so the toxy limit is unlikely to be the cause. If pdgui choked, you would most probably know about that being the case, too...
Are you sure, the sorting script is not run? Perhaps, it is run before any items are insterted into a listbox? How do you invoke the messages?
Krzysztof
Tim Blechmann wrote: ...
it seems that tot is loosing messages. e.g. if i add several entries to a listbox with |tot .- insert end $1( and try to run a tcl/tk script to sort the entries the script won't run. i have to delay the message to invoke the script by a short time (100 ms) before it will run...
i'm not shure where the problem is, either tot doesn't accept the message or the tcl/tk communication is too slow... it's on win32, devel_0_37 without the threaded gui patch...
Are you sure, the sorting script is not run? Perhaps, it is run before any items are insterted into a listbox? How do you invoke the messages?
well, there are several positions where i experienced a strange behaviour, this one is only one of them:
| |route bang| | | |pipe 100| | | | |sort( |tot .- insert end $1( |__________| | |tow patch listbox bla( |
it gets one symbol after the other followed by a bang... if i don't use the pipe 100, i will have problems ...
using -listvariable is probably a good idea (i must admit, i started learning tcl/tk just one week ago to write a gui for an installation) ... probably i should rewrite the patch ...
but still i think there is something strange going on somewhere on that machine, either in tow or in wish ...
cheers.... tim
hi list my question: i want cut a word in separate letters, for exemple: "hello" in a symbol-box will give five separate symbol-boxes:"h" "e" "l" "l" "o"....... i dont have found a solution..... thanks for any helps... greetings moritz~~~~~~
erstens@gmx.ch wrote:
hi list my question: i want cut a word in separate letters, for exemple: "hello" in a symbol-box will give five separate symbol-boxes:"h" "e" "l" "l" "o"....... i dont have found a solution.....
[symbol2list] (or short [s2l]) from zexy does this, if you give a an empty symbol as delimiter (right inlet)
my question: could you please start new threads when starting a new thread ? (e.g.: do "compose" instead of "reply"+changing the subject line
mfg.a.sdr IOhannes
another way could be to use iemlib's "stripfilename".
i haven't got its precise features present, but i'm sure you can extract for example the first letter of a word and sort of "feedback" the result to "stripfilename" again until you have extracted the last letter.
just a thought, haven't tried it myself ...
oliver
Quoting IOhannes m zmoelnig zmoelnig@iem.at:
erstens@gmx.ch wrote:
hi list my question: i want cut a word in separate letters, for exemple: "hello" in a symbol-box will give five separate symbol-boxes:"h" "e" "l" "l" "o"....... i dont have found a solution.....
[symbol2list] (or short [s2l]) from zexy does this, if you give a an empty symbol as delimiter (right inlet)
my question: could you please start new threads when starting a new thread ? (e.g.: do "compose" instead of "reply"+changing the subject line
mfg.a.sdr IOhannes
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
sent through klingt.org webmail
HI
i am having a wee bit of difficulty getting 3D text to work with video in the same patch. (OS X10.2.8 g4 opt) They both work extremely well seperately and i would like to include them in a basic kiosk patch for a show does anyone have an simple example of these working together.?
cheers
Pat
Patrick Pagano, B.S., M.F.A. candidate Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2082