Just added a button to an existed toplevel window. Error information window opens, but can't close it.
First line is:
can't access "::widgets::.top2.vTH_n::save": parent namespace doesn't exist while executing
Tried deleting the button, but still can't get the error window to close.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ye error is wajah se aa rahi hai ke button ya command ek aise namespace ko refer kar raha hai jo ab exist nahi karta.
Toplevel window ya uske saath linked procedure delete ho chuki hai.
Error window close nahi ho rahi kyun ke uska "OK" button bhi usi missing command se linked ho sakta hai.
Solution: catch use karo ya error window ko destroy command se manually band karo.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This error is occurring because the button or command is referencing a namespace that no longer exists.
The top-level window or the procedure associated with it has been deleted.
The error window is not closing because its "OK" button may also be linked to the same missing command.
Solution: Use catch or manually close the error window with the destroy command.
I'll pass this information along to Don.
Until he is able to come up with a fix, please save often. When this happens, more times than not, you either must click the "Save Error" or "Close" buttons BEFORE clicking anything else. DO NOT TRY TO SAVE at that point. Also, if you click "Dismiss", the error will probably come back and your only option at that point will be to close the terminal.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) What version of PAGE are you using?
2) What operating system are you using?
3) What is the version of PAGE was the existing Toplevel window created under?
4) Could you zip up the .tcl file that is giving the error?
If you could get this to me, I would be happy to try to figure out why you are getting this error.
Sincerely,
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2025-08-11
Have got the same issue. So I can answer your questions, Greg :-)
Hi Greg,
now with some more details (and my name, so I will recognize your answer):
It happend twice directly after my first installation.
I tried out to save the empty project after start - and then it worked about 20 clicks.
The mean thing is that Page's error dialog does not react ... after some wild clicking, I finally got an autosave.err (attached).
Best
Beo
Ok, you got me. I understand now, that I have to start from the command line in my projects directory ... but ... what is the windows start icon for? That will never start somewhere else than in my Desktop ... if I do not change the path in the icon-props to my current project.
I am fine now - there is a DEL key on my keyboard that removed that icon and I will follow your instruction.
For anybody who reads this post having the same problem: RTFM ... you will find it on your local machine ... e.g., "c:/page/docs/How To Start Page.pdf"
Cheers and ty, Greg, for answering the same question a hundred times
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2025-08-11
First, you are very welcome.
Next, Don and I have gone back and forth on "Do we get rid of the icon?" for a couple of years.
I've always suggested that we keep the icon, for legacy sake, if nothing else. It also lets the user know that PAGE has actually been installed on the user's machine. Maybe it's time to get rid of it. We are getting close to 8.1, so I'm sure the question will come back up.
In Linux, we have an easy way to create a "shortcut" for PAGE. In most (well, at least many) versions, mainly Debian based which includes Ubuntu and Linux Mint is the BASH Shell (short for "Bourne Again SHell") which is accessed when the user wants to use the terminal. This is controlled by two files. First is the .bashrc and the second is .bash_aliases. You have the ability to alias pretty much any Command Line Interface (CLI) command by simply doing something like this...
This allows you to open a terminal in any folder on your machine and simply type "page {myproject}" , and PAGE opens up. There is still the occasional Linux user that has to be reminded that resource files (like graphic images) need to be in that folder, assuming one is using images in the project), but it's pretty much a given in our world.
Windows not has powershell and is starting to adopt some Linux stuff, so it might be easier later on for Windows users.
Crazy Uncle Greggggggggie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just added a button to an existed toplevel window. Error information window opens, but can't close it.
First line is:
can't access "::widgets::.top2.vTH_n::save": parent namespace doesn't exist while executing
Tried deleting the button, but still can't get the error window to close.
Ye error is wajah se aa rahi hai ke button ya command ek aise namespace ko refer kar raha hai jo ab exist nahi karta.
Toplevel window ya uske saath linked procedure delete ho chuki hai.
Error window close nahi ho rahi kyun ke uska "OK" button bhi usi missing command se linked ho sakta hai.
Solution:
catchuse karo ya error window kodestroycommand se manually band karo.Thank you Stephen.
Here is the translation of his post...
I'll pass this information along to Don.
Until he is able to come up with a fix, please save often. When this happens, more times than not, you either must click the "Save Error" or "Close" buttons BEFORE clicking anything else. DO NOT TRY TO SAVE at that point. Also, if you click "Dismiss", the error will probably come back and your only option at that point will be to close the terminal.
Sorry for the delay in getting back to you.
Please answer the following questions...
1) What version of PAGE are you using?
2) What operating system are you using?
3) What is the version of PAGE was the existing Toplevel window created under?
4) Could you zip up the .tcl file that is giving the error?
If you could get this to me, I would be happy to try to figure out why you are getting this error.
Sincerely,
Greg
Have got the same issue. So I can answer your questions, Greg :-)
Page: v8.0 freshly downloaded today
Win11Pro 24H2
Python 3.11.9
The failure happens, when you drop the first button on the blank, unsaved top1 - so there is no saved .tcl in that moment.
Are you starting PAGE correctly? See the "How to start PAGE" document in docs\How To Start PAGE folder.
Greg
Hi Greg,
now with some more details (and my name, so I will recognize your answer):
It happend twice directly after my first installation.
I tried out to save the empty project after start - and then it worked about 20 clicks.
The mean thing is that Page's error dialog does not react ... after some wild clicking, I finally got an autosave.err (attached).
Best
Beo
Ok, you got me. I understand now, that I have to start from the command line in my projects directory ... but ... what is the windows start icon for? That will never start somewhere else than in my Desktop ... if I do not change the path in the icon-props to my current project.
I am fine now - there is a DEL key on my keyboard that removed that icon and I will follow your instruction.
For anybody who reads this post having the same problem: RTFM ... you will find it on your local machine ... e.g., "c:/page/docs/How To Start Page.pdf"
Cheers and ty, Greg, for answering the same question a hundred times
First, you are very welcome.
Next, Don and I have gone back and forth on "Do we get rid of the icon?" for a couple of years.
I've always suggested that we keep the icon, for legacy sake, if nothing else. It also lets the user know that PAGE has actually been installed on the user's machine. Maybe it's time to get rid of it. We are getting close to 8.1, so I'm sure the question will come back up.
In Linux, we have an easy way to create a "shortcut" for PAGE. In most (well, at least many) versions, mainly Debian based which includes Ubuntu and Linux Mint is the BASH Shell (short for "Bourne Again SHell") which is accessed when the user wants to use the terminal. This is controlled by two files. First is the .bashrc and the second is .bash_aliases. You have the ability to alias pretty much any Command Line Interface (CLI) command by simply doing something like this...
This allows you to open a terminal in any folder on your machine and simply type "page {myproject}" , and PAGE opens up. There is still the occasional Linux user that has to be reminded that resource files (like graphic images) need to be in that folder, assuming one is using images in the project), but it's pretty much a given in our world.
Windows not has powershell and is starting to adopt some Linux stuff, so it might be easier later on for Windows users.
Crazy Uncle Greggggggggie
haha ... maybe you should stick with that icon .. .but the icon just opens your doc/how_to_start.pdf
=:p
LOL!!!
Thanks Beo.
That's actually not a bad idea!
Crazy Uncle Gregggggggggggie