f



newbie question: Tk::Tree 'open' setting doesn't work?

I have the following on my Tree object:

$ctree->add('Baby Items', -text => 'Baby Items', -at => 0);
$ctree->add('Baby Items.Bibs', -text => 'Bibs', -at => 1);
$ctree->add('Baby Items.Blankets', -text => 'Blankets', -at => 2);
$ctree->add('Doilies', -text => 'Doilies', -at => 3);
$ctree->add('Doilies.Small Circular', -text => 'Small Circular', -at => 4);
$ctree->autosetmode;
$ctree->setmode('Baby Items', 'open');
$ctree->setmode('Doilies', 'open');

The entries all come up branched correctly, and the indicators actually
show +, in that they're set to 'open', and I have to click twice on them to
get them to close, which tells me they're actually supposedly set
correctly.

The problem is, the sub-paths are displayed yet.  It's expanded, even
though the indicator (and other behaviours) are correct.

I've even tried adding $ctree->autoset; and had no success.

Would someone please take pity on me and tell me where I'm going wrong?  :)

TIA...

-- 
Vorxion - Member of The Vortexa Elite
0
vorxion
5/12/2004 10:38:10 AM
comp.lang.perl.tk 4721 articles. 0 followers. pharrendorf (19) is leader. Post Follow

0 Replies
383 Views

Similar Articles

[PageSpeed] 40

Reply:

Similar Artilces:

Can't get passed 'use tk;' in my 1st perl/tk program.
I'm trying to run my 1st perl/tk program and can't get passed the "use Tk;" command. I get error, "Can't locate Tk.pm" and if I add a "use lib" pointer to directory containing Tk.pm, I get error message "Can't locate loadable object for module Tk::Event". SEE BELOW for actual scripts and error messages. Environment: Mac OS x 10.3.8; perl version 5.8.1; Tk directory Tk-804.027. Experince level: Used to write lots of perl code, 15 years ago on Sun/unix. Just wrote my 1st perl code on MAC. This is my first try at pe...

Perl/Tk: can't get -command=> \&function to work 'on-the-fly'!!
Please Help! I am trying to define buttons 'on-the-fly' mostly because their number is determined in a config file - I don't know how many I will need. It's ROYALLY NOT WORKING. I think Tk.pm is having issues. And it's all driving me very... verrrryyy... batty. *** I WANT THIS TO WORK *** (pseudo-code) for i=1;i<100,i++ { $handle[i] = menubar->command(-label => "test_i", %somecolors, -command => Move2Folder(i)); *** IS THIS TOO MUCH TO ASK??? *** 1) If I 'unroll it' (see end of this message) AND wrap the Move2Folder function...

noob 'why doesn't this work' question
Hi and greetings to all group members! I'm a new Ruby user with a background in Applescript, Hypertalk (Supercard), and a little Unix. I was intrigued by Matt Neuburg's article about Applescript and Ruby, and that's what got me reading some intro books on Ruby. I just bought Textmate and I am lovin' it! Anyway, I am wondering why this seemingly simple script fails: sizeList = [0,1,2,3,4,5,6] countarray = [3,4,6] countarray.each {|x| sizeList.delete_at(x)} what I want to happen is that sizelist gets deleted at the positions specified in countArray, but the result I am gettin...

[Tk] grid manager with '-', 'x', '^'
Just curious about special char with grid manager: On Tcl/Tk: grid .a - - grid ^ .b x This first line of TCL could translate on Ruby/Tk as: Tk.grid a, '-', '-' # a.path == '.a' There is no way to tranlate the second line without using any :row, :column, :rowspan, coloumnspan. Because TkGrid.configure want the first parameter is *win*. So, grid manager with relative placement on Ruby/Tk works only when the "first" is *win*. Is this right or do we have other trick for it ? Thanks. Hi! email55555 email55555 wrote: > > Just curious about special...

__getattribute__ doesn't work on 'type' type for '__class__'
I'm running this version of Python: Python 2.4.3 (#1, May 18 2006, 07:40:45) [GCC 3.3.3 (cygwin special)] on cygwin I read in the documentation that these two expressions are interchangeable: x.__getattribute__('name') <==> x.name From "pydoc __getattribute__": ---8<--- Help on method-wrapper object: __getattribute__ = class method-wrapper(object) | Methods defined here: | | __call__(...) | x.__call__(...) <==> x(...) | | __getattribute__(...) | x.__getattribute__('name') <==> x.name --->8--- Yet when I...

why 'for' doesn't works as it should?
hi, i've got a little code: for ii=4:5 % splines in p-form splineP = GlobalData.SplineFit{ii}; % splines in B-form splineB = fn2fm(splineP, 'B-'); z(ii) = {splineB} z(1) end and what is strange in this is that this 'for' counts from 1:5! z shows me: z = [] [] [] [1x1 struct] [1x1 struct] and z(1) shows {[]} but splineB and splineP shows me only things for ii=4 and ii=5 then i need to put them in one 'thing' so i made: z(ii)= ...

'do over' doesn't work
hi, why my code doesn't work with 'do over'. thanks. ash007. DATA TABLE_BIDON; INPUT X1 X2 X3 X4 X5 $; CARDS; 2 . 5 1161 AB=C9LIEN 35 6 3 1336 ALM=C9RIC 82 1 5 1499 ;RUN; DATA TABLE_BIDON (DROP =3D _I); SET TABLE_BIDON; ARRAY A_VARNUM[*] _NUMERIC_; ARRAY A_VARCAR[*] _CHARACTER_; DO OVER A_VARNUM[*]; IF A_VARNUM[*] =3D . THEN A_VARNUM[*] =3D 0; END; DO OVER A_VARCAR[*]; IF COMPRESS(A_VARCAR[*]) IN (".","") THEN A_VARCAR[*] =3D "Z"; END; RUN; ...

Bash 'umask' builtin doesn't set 'x' permissions?
I was tinkering around with the Bash builtin command 'umask' (on a Red Hat Linux 9 box) and noticed the following behavior: [bash]$ rm -f ./try; umask 0002; touch try; ls -l try -rw-rw-r-- 1 me me 0 Jul 11 14:49 try [bash]$ umask -S u=rwx,g=rwx,o=rx Note that the 'x' bits are not turned on for the newly created file 'try'. IOW, I expected try's file permissions would be set to "-rwxrwxr-x". Why weren't they? Is this a "Bash thing" or a "Red Hat thing" or other? -- Jim To reply by email,...

OCI-8, Oracle : 'ORDER BY' doesn't work with 'bind_param'
Hello, I'm testing the gem 'ruby-oci8'/oci8 (1.0.4) under Windows with Ruby 1.8.6 patchlevel 287. I play with the user SCOTT and the table EMP of ORACLE. First, the table : --------------- Schema = SCOTT, Name =EMP Columns8 EMPNO | NUMBER(4) NOT NULL ENAME | VARCHAR2(10) JOB | VARCHAR2(9) MGR | NUMBER(4) HIREDATE | DATE SAL | NUMBER(7,2) COMM | NUMBER(7,2) DEPTNO | NUMBER(2) NOT NULL --------------- The rows : --------------- 7876,ADAMS,CLERK,7788,1983/01/12 00:00:00,1100.0,,20 7499,ALLEN,SALESMAN,7698,1981/02/20 00:00:00,1600.0,300.0,30 7698,BLAKE,MANAGER,7839,1981/05/01 00:00:0...

'is not' or '!='
A newbie question to you; what is the difference between statements like: if x is not None: and if x != None: Without any context, which one should be preferred? IMHO, the latter is more readable. On 2014-08-18 21:35, ElChino wrote: > A newbie question to you; what is the difference between statements > like: > if x is not None: > and > if x != None: > > Without any context, which one should be preferred? > IMHO, the latter is more readable. > "x == y" tells you whether x and y refer to objects that are equal. "x is y&qu...

'^=' and '~='?
Hello, What is the difference between '^=' and '~='? Thanks, Duckhye ...

Subscription setting 'No e-mail': Doesn't work !
Hi all, I switched my subscription setting to "No e-mail" but I still receive an e-mail everyday. Does one know how I could reach the google technical support ? Thanks! Catherine. ...

Newbie question on 'eval' and '{*}'
So, I'm fairly new to Tcl, and I really love the language. As I've been learning about it (through online tutorials, manuals, and books), I've come across the eval function, and the {*} function/command (expand). I am reading the book "Tcl and the Tk Toolkit," and in one of the chapters, it almost seems like using eval would be better practice. I'm just looking for some clarification, but can you tell me if that is true, and/or when might be the best time to use one or the other? Thanks! scottdware wrote: > So, I'm fairly new to Tcl, and I really...

window.opener.getElementById('myDiv').innerHTML ... doesn't work!
Dear reader.. i have a page that opens a popup window from this popup window i have to change some opener divs innerHTML content, how can i do? this is how i do, (and it doens't work): THE MAIN WINDOW: <div id="'myDiv'"></div> <input type="button" onClick="MM_openBrWindow('test.htm','testWin','width=370,height=200')" value="Open Test"> THE POPUP WINDOW (test.htm): <script language=javascript> window.opener.getElementById('myDiv').innerHTML='TEST SUCCEDED!!'; </script> ...

Web resources about - newbie question: Tk::Tree 'open' setting doesn't work? - comp.lang.perl.tk

Resources last updated: 2/7/2016 8:13:55 AM