First, I really appreciate the hardwork Don spent in creating Page, I could not have done better.
Anyways, I am here to report a bug found when embedding a TNotebook within a TNotebook
This can be reproduced as follows:
1) Create a TNotebook (parentNotebook), add a couple of pages beyond the default number of 2
2) Insert another TNotebook in page 1 (subNotebook1), and in this TNotebook, add a couple of pages
3) Add a canvas in page 1, and page 2 of subNotebook1
4) Insert a second TNotebook in page 2 of parentNotebook (call it subNotebook2), add a couple of pages to subNotebook2
5) Add a canvas in page 1, and page 2 of subNotebook2
6) Save
7) Close PAGE and restart PAGE
8) Attempt to generate python code. The following error is observed "cant read parent_geometry : no such variable
Here is the stack trace
can't read "parent_geometry": no such variable
while executing
"split $parent_geometry "x+""
(procedure "vTcl:python_source_widget" line 72)
invoked from within
"vTcl:python_source_widget $i "" $subwidget"
(procedure "vTcl:python_source_subwidgets" line 19)
invoked from within
"vTcl:python_source_subwidgets $p $p"
(procedure "vTcl:python_source_widget" line 504)
invoked from within
"vTcl:python_source_widget $i "" $subwidget"
(procedure "vTcl:python_source_subwidgets" line 19)
invoked from within
"vTcl:python_source_subwidgets $p $p"
(procedure "vTcl:python_source_widget" line 504)
invoked from within
"vTcl:python_source_widget $widget $prefix $window"
(procedure "vTcl:py_source_frame" line 18)
invoked from within
"vTcl:py_source_frame $window "" "" "
(procedure "vTcl:generate_python" line 88)
invoked from within
"vTcl:generate_python $window"
(procedure "vTcl:generate_python_UI" line 107)
invoked from within
"vTcl:generate_python_UI"
(menu invoke)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-03-16
For a quick reference, below is the .tcl file for the problem listed above (generated with 4.11 version of PAGE)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-03-16
Update:
It seems the problem occurs if the current page in view does not show the subNotebook
Example:
Assume that there is a parentTNotebook with a child subNotebook in page 1 of parentTNotebook
1) With page 1 of parentTNotebook in view, attempt to generate the python code and everything is ok.
2) However, if page 2 of parentTNotebook is in view, any attempt to generate the python code will cause an error and python code generation is not possible
In the python GUI that I am trying to build , I have a parent TNotebook with another TNotebook inside each of the pages of the parent TNotebook. Therefore, as of now, I am unable to generate the python code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, I really appreciate the hardwork Don spent in creating Page, I could not have done better.
Anyways, I am here to report a bug found when embedding a TNotebook within a TNotebook
This can be reproduced as follows:
1) Create a TNotebook (parentNotebook), add a couple of pages beyond the default number of 2
2) Insert another TNotebook in page 1 (subNotebook1), and in this TNotebook, add a couple of pages
3) Add a canvas in page 1, and page 2 of subNotebook1
4) Insert a second TNotebook in page 2 of parentNotebook (call it subNotebook2), add a couple of pages to subNotebook2
5) Add a canvas in page 1, and page 2 of subNotebook2
6) Save
7) Close PAGE and restart PAGE
8) Attempt to generate python code. The following error is observed "cant read parent_geometry : no such variable
Here is the stack trace
For a quick reference, below is the .tcl file for the problem listed above (generated with 4.11 version of PAGE)
Update:
It seems the problem occurs if the current page in view does not show the subNotebook
Example:
Assume that there is a parentTNotebook with a child subNotebook in page 1 of parentTNotebook
1) With page 1 of parentTNotebook in view, attempt to generate the python code and everything is ok.
2) However, if page 2 of parentTNotebook is in view, any attempt to generate the python code will cause an error and python code generation is not possible
In the python GUI that I am trying to build , I have a parent TNotebook with another TNotebook inside each of the pages of the parent TNotebook. Therefore, as of now, I am unable to generate the python code.
I believe the problem may be fixed with release 4.12