You are very welcome. We are always glad to hear happy things.
There is an issue that sometimes pops up that has an error about accessing nonexistent objects, but for us, it only happens rarely, so it's really hard for use to figure out what's going on to cause the error. You might be the one who helps us squash this bug.
First, could you give me the version of PAGE you are using, the version of Python you are using and the OS you are using?
Also, if you could paste the .tcl file you are having issues with.
Another thing that would be helpful would be (as close as possible) the steps you are using to
a) start PAGE
b) steps that you took to edit the project file
c) the steps you took (in order) of saving and generating the Python files.
d) Is it only when you save the project file, generate the Python GUI File, or the Python Support file?
e) Are you making any changes by hand to the GUI Python file?
I know I've asked for a great deal of information, but everything that you can provide could help us squash this bug that we've been fighting for over a year.
Sincerely,
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
b) steps that you took to edit the project file
1. Start Page,
2. open the mypylog.tcl file as a project
c) the steps you took (in order) of saving and generating the Python files
I used the Menus Gen-Python GUI and
d) Is it only when you save the project file, generate the Python GUI File, or the Python Support file?
It happens if I try to add a widget and then edit the settings for another widget
e) Are you making any changes by hand to the GUI Python file?
No I remove the Python files before I restart Page
Could you please post the 4 files again. I'm having issues downloading them.
However, when you say you start PAGE using page.bat, where are you? Are you at the desktop or are you in the project folder.
You can start PAGE by using
page.bat mypylog
You don't need to include the .tcl extension.
Thank you very much for the answer to question D. That might be extra helpful.
When you say you remove the Python files before you restart PAGE...That sounds fairly strange. The two Python files don't need to be there, but the .tcl does. AND if you have written code to the support.py file, you need to keep it there, so that PAGE can update it with any changes (like creating new function callback skeletons). Maybe I'm misunderstanding your statement.
Anyway, the import thing for now is to re-upload the .tcl files.
If you get this again, go ahead and click the save and exit button on the error window to save the tracebacks. Also try to copy any messages in the Command Prompt windows to a text file as well. Then restart PAGE. It should grab the latest version from the backups and you should be able to get most of what you were doing again.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I was finally able to download the .tcl file for your project.
There is definately something wrong, since I can open the project in PAGE, but the Toplevel is completely empty and I can't add anything to it.
I will send this off to Don to see if he can make heads or tails of the reason it's not working.
In the meantime, find your .pagerc file, rename or delete it and start PAGE up again.
When the .pagerc file gets corrupt, anything can happen.
I'll let you know when I hear back from Don.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The file has been sent to Don. However, he had surgery on Thursday, so he might not be home yet and even if he is, he might not be able to sit at the computer quite yet.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks to Don, the .tcl file does work...on Windows, but not on Linux.
The problem (as far as Linux is concerned) is that you used a Windows only sytem color in your program. That colour is "SystemButtonText". This makes the program non-portable.
Once I changed this in the .tcl file (don't try this at home), I was able to get PAGE to open the file correctly, add, modify, save and generate the Python files.
So there is nothing wrong with your .tcl file, however, your .pagerc file is still suspect and the probability of the bug reoccuring is still high. We will continue to beat our heads on the keyboards and try to get it to happen on a basis that we can track it down.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you so much for creating this.
When ever I edit a previously created GUI, I can not save the results. I get some errors in the log that indicates nonexistent objects are accessed,
Hello Tommy,
You are very welcome. We are always glad to hear happy things.
There is an issue that sometimes pops up that has an error about accessing nonexistent objects, but for us, it only happens rarely, so it's really hard for use to figure out what's going on to cause the error. You might be the one who helps us squash this bug.
First, could you give me the version of PAGE you are using, the version of Python you are using and the OS you are using?
Also, if you could paste the .tcl file you are having issues with.
Another thing that would be helpful would be (as close as possible) the steps you are using to
a) start PAGE
b) steps that you took to edit the project file
c) the steps you took (in order) of saving and generating the Python files.
d) Is it only when you save the project file, generate the Python GUI File, or the Python Support file?
e) Are you making any changes by hand to the GUI Python file?
I know I've asked for a great deal of information, but everything that you can provide could help us squash this bug that we've been fighting for over a year.
Sincerely,
Greg
I am using Version 7.6
a) start PAGE
page,bat
b) steps that you took to edit the project file
1. Start Page,
2. open the mypylog.tcl file as a project
c) the steps you took (in order) of saving and generating the Python files
I used the Menus Gen-Python GUI and
d) Is it only when you save the project file, generate the Python GUI File, or the Python Support file?
It happens if I try to add a widget and then edit the settings for another widget
e) Are you making any changes by hand to the GUI Python file?
No I remove the Python files before I restart Page
Could you please post the 4 files again. I'm having issues downloading them.
However, when you say you start PAGE using page.bat, where are you? Are you at the desktop or are you in the project folder.
You can start PAGE by using
page.bat mypylog
You don't need to include the .tcl extension.
Thank you very much for the answer to question D. That might be extra helpful.
When you say you remove the Python files before you restart PAGE...That sounds fairly strange. The two Python files don't need to be there, but the .tcl does. AND if you have written code to the support.py file, you need to keep it there, so that PAGE can update it with any changes (like creating new function callback skeletons). Maybe I'm misunderstanding your statement.
Anyway, the import thing for now is to re-upload the .tcl files.
If you get this again, go ahead and click the save and exit button on the error window to save the tracebacks. Also try to copy any messages in the Command Prompt windows to a text file as well. Then restart PAGE. It should grab the latest version from the backups and you should be able to get most of what you were doing again.
Greg
Well, I was finally able to download the .tcl file for your project.
There is definately something wrong, since I can open the project in PAGE, but the Toplevel is completely empty and I can't add anything to it.
I will send this off to Don to see if he can make heads or tails of the reason it's not working.
In the meantime, find your .pagerc file, rename or delete it and start PAGE up again.
When the .pagerc file gets corrupt, anything can happen.
I'll let you know when I hear back from Don.
Greg
The file has been sent to Don. However, he had surgery on Thursday, so he might not be home yet and even if he is, he might not be able to sit at the computer quite yet.
Greg
Thanks to Don, the .tcl file does work...on Windows, but not on Linux.
The problem (as far as Linux is concerned) is that you used a Windows only sytem color in your program. That colour is "SystemButtonText". This makes the program non-portable.
Once I changed this in the .tcl file (don't try this at home), I was able to get PAGE to open the file correctly, add, modify, save and generate the Python files.
So there is nothing wrong with your .tcl file, however, your .pagerc file is still suspect and the probability of the bug reoccuring is still high. We will continue to beat our heads on the keyboards and try to get it to happen on a basis that we can track it down.
Greg