Hi,
For some reason I'm getting an error message window popping up when I right click on a Button widget in the Widget Tree and select Callbacks. Two widows pop up. One is a Callback List window and the other is an error window. It seems to me that I should see in the Callback List a call back for the Button, but I am not. I only see in the list a callback for an entry (one other callback which was established earlier). The Error window popping up has the following message: can't read "o_str": no such variable. I do see a callback for an entry widget in the Callback List if I go to that entry in the widget tree, and right click to select Callbacks. Callback List has this entry callback listed but no others. I don't get any error window pop up either. So I think that set up went correctly. I don't know why I don't get a similar response when I try pulling up the Callback List from the Button widget.
For what it's worth - of the options in the error window ( OK, Skip message, Stack Trace) only OK is functional. Nothing happens when I click on Skip message or Stack Traces.
Of the configuration seeting in the Attribute Editor there exists a text var setting. I don't yet know how this setting woudld be used. But, noting the error message indicates that there is an issue with a variable, I tried populating the text var field seeting and find in the support file that this new text variable is then defined as a global variable setting. This turned out to be a useless observation. The need for reading an "o_str" was not met. Can you tell me what I'm doing wrong in this case?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-07-08
When I wrote earlier I had only one entry widget and one button widget. I have created an additional 12 entry widgets. So now I have 13 entry widgets and one button widget.
Now I see that when I look for the list of callbacks for any of the widgets the callback(s) "list" only contains the callback for the given widget, not multiple callbacks for the multiple widgets. I was expecting to see multiple callback(s). Should I only see the one callback?
Aside fromt the question about number of callbacks that should be present in the Callback List window, I realize now that the problem reported above is isolated to just the button widget. In fact, the Callback(not plural) "List" window that comes up simultaneously with the Error window is showing just the entry and binding for the first Entry widget created and nothing else.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am making some changes to the callback display function. If you could send me the tcl file for the GUI giving rise to the error you see, I will test it. I have not been able to reproduce the problem you describe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2018-07-08
Thanks for the follow up. I just finished deleting all the entry bindings and callbacks, then re-created them. The problem is gone. I'm sure it was just a cockpit error.
Bye the way... Could you please tell me which option I should be picking for the binding? I have slected the <Enter> option expecting it to behave like hitting the return key. Would "Focus Out" function more like hitting the return key?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I hope I can help you here.
<Enter> refers to a mouse event, not a key event. <Enter> is for when the mouse causes the widget to raise an event because the cursor moved into it's sphere of influence. Similarly, <Leave> is then the mouse cursor leaves the widget.
I believe what you are looking for <Return> as the keypress.
Trying to use mouse movements to know when the user has left the widget is certainly do-able, but might now be a good idea as a trigger to validate the data entered. I usually use a check for a specific key.
Hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
For some reason I'm getting an error message window popping up when I right click on a Button widget in the Widget Tree and select Callbacks. Two widows pop up. One is a Callback List window and the other is an error window. It seems to me that I should see in the Callback List a call back for the Button, but I am not. I only see in the list a callback for an entry (one other callback which was established earlier). The Error window popping up has the following message: can't read "o_str": no such variable. I do see a callback for an entry widget in the Callback List if I go to that entry in the widget tree, and right click to select Callbacks. Callback List has this entry callback listed but no others. I don't get any error window pop up either. So I think that set up went correctly. I don't know why I don't get a similar response when I try pulling up the Callback List from the Button widget.
For what it's worth - of the options in the error window ( OK, Skip message, Stack Trace) only OK is functional. Nothing happens when I click on Skip message or Stack Traces.
Of the configuration seeting in the Attribute Editor there exists a text var setting. I don't yet know how this setting woudld be used. But, noting the error message indicates that there is an issue with a variable, I tried populating the text var field seeting and find in the support file that this new text variable is then defined as a global variable setting. This turned out to be a useless observation. The need for reading an "o_str" was not met. Can you tell me what I'm doing wrong in this case?
When I wrote earlier I had only one entry widget and one button widget. I have created an additional 12 entry widgets. So now I have 13 entry widgets and one button widget.
Now I see that when I look for the list of callbacks for any of the widgets the callback(s) "list" only contains the callback for the given widget, not multiple callbacks for the multiple widgets. I was expecting to see multiple callback(s). Should I only see the one callback?
Aside fromt the question about number of callbacks that should be present in the Callback List window, I realize now that the problem reported above is isolated to just the button widget. In fact, the Callback(not plural) "List" window that comes up simultaneously with the Error window is showing just the entry and binding for the first Entry widget created and nothing else.
I am making some changes to the callback display function. If you could send me the tcl file for the GUI giving rise to the error you see, I will test it. I have not been able to reproduce the problem you describe.
Thanks for the follow up. I just finished deleting all the entry bindings and callbacks, then re-created them. The problem is gone. I'm sure it was just a cockpit error.
Bye the way... Could you please tell me which option I should be picking for the binding? I have slected the <Enter> option expecting it to behave like hitting the return key. Would "Focus Out" function more like hitting the return key?
I hope I can help you here.
<Enter> refers to a mouse event, not a key event. <Enter> is for when the mouse causes the widget to raise an event because the cursor moved into it's sphere of influence. Similarly, <Leave> is then the mouse cursor leaves the widget.
I believe what you are looking for <Return> as the keypress.
Trying to use mouse movements to know when the user has left the widget is certainly do-able, but might now be a good idea as a trigger to validate the data entered. I usually use a check for a specific key.
Hope this helps.