For Programmers: Free Programming Magazines  


Home > Archive > Tcl > February 2005 > toplevel question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author toplevel question
randy1200

2005-02-25, 3:59 am

I really hate to ask a question like this...

The first time I used the following to create a new dialog box, it worked
fine:

toplevel .writeDialog -bd 10
wm title .writeDialog $title

Great! Now I do the following to create another dialog box in a separate
area of my code:

toplevel .readDialog -bd 10
wm title .readDialog $title

Every attempt to use .readDialog results in:

Error: Bad windows path name " .readDialog "

I can't see a single character of difference between them. Any ideas what
this is really trying to tell me?

Thanks,
Randy



Bryan Oakley

2005-02-25, 3:59 am

randy1200 wrote:
> I really hate to ask a question like this...
>
> The first time I used the following to create a new dialog box, it worked
> fine:
>
> toplevel .writeDialog -bd 10
> wm title .writeDialog $title
>
> Great! Now I do the following to create another dialog box in a separate
> area of my code:
>
> toplevel .readDialog -bd 10
> wm title .readDialog $title
>
> Every attempt to use .readDialog results in:
>
> Error: Bad windows path name " .readDialog "
>
> I can't see a single character of difference between them. Any ideas what
> this is really trying to tell me?


If the above is the exact error message you get, notice that the widget
name begins and ends with a space. Widget names must begin with a ".".
Cameron Laird

2005-02-25, 3:59 am

In article < 06ac08c06db211ea3e54965f2fb87a66@localho
st.talkaboutprogramming.com>,
randy1200 <randy1200@yahoo.com> wrote:
>I really hate to ask a question like this...
>
>The first time I used the following to create a new dialog box, it worked
>fine:
>
>toplevel .writeDialog -bd 10
>wm title .writeDialog $title
>
>Great! Now I do the following to create another dialog box in a separate
>area of my code:
>
>toplevel .readDialog -bd 10
>wm title .readDialog $title
>
>Every attempt to use .readDialog results in:
>
>Error: Bad windows path name " .readDialog "
>
>I can't see a single character of difference between them. Any ideas what
>this is really trying to tell me?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com