Glade3 Gtk Python Tutorial Errors
08 Feb 2014 08:39 #43631
by rggrieger
Glade3 Gtk Python Tutorial Errors was created by rggrieger
Hi:
I have installed LinuxCNC 2.5.3. I have not installed pyngcgui.
I have some errors when trying the Glade3 tutorial and finished tutorial 1 and 2. I have redone glade3 tutorial lesson and repeated the errors.. I have attached the screens showing my input matches the tutorial instructions and the glade3.py.
The Terminal error message is:
bob@probotix-desktop:~/glade_tutorial$ python glade3.py
glade3.py:11: RuntimeWarning: missing handler 'on_clear_status_activate'
self.builder.connect_signals(self)
Even with the error the glade3.py screen show up. I click view and see the message count increase when Push Status is clicked; Pop Status decreased when clicked and Clear Status does not do anything.
Thanks for your help,
Bon
I have installed LinuxCNC 2.5.3. I have not installed pyngcgui.
I have some errors when trying the Glade3 tutorial and finished tutorial 1 and 2. I have redone glade3 tutorial lesson and repeated the errors.. I have attached the screens showing my input matches the tutorial instructions and the glade3.py.
The Terminal error message is:
bob@probotix-desktop:~/glade_tutorial$ python glade3.py
glade3.py:11: RuntimeWarning: missing handler 'on_clear_status_activate'
self.builder.connect_signals(self)
Even with the error the glade3.py screen show up. I click view and see the message count increase when Push Status is clicked; Pop Status decreased when clicked and Clear Status does not do anything.
Thanks for your help,
Bon
Please Log in or Create an account to join the conversation.
08 Feb 2014 19:26 - 08 Feb 2014 19:29 #43640
by BigJohnT
Replied by BigJohnT on topic Glade3 Gtk Python Tutorial Errors
Your missing the on_clear_status_activate function from part b of the tutorial. And I see how you missed it... it is not in the all together part of the py.
Edit: the web page has been corrected.
JT
Edit: the web page has been corrected.
JT
Last edit: 08 Feb 2014 19:29 by BigJohnT.
Please Log in or Create an account to join the conversation.
09 Feb 2014 10:29 #43650
by rggrieger
Replied by rggrieger on topic Glade3 Gtk Python Tutorial Errors
Thanks John. It works correctly now.
Bob
Bob
Please Log in or Create an account to join the conversation.
09 Feb 2014 11:27 - 09 Feb 2014 12:12 #43651
by rggrieger
Replied by rggrieger on topic Glade3 Gtk Python Tutorial Errors
Hi:
Glade Tutorial 4a part 4.
Tutorial instruction states:
"Next we will add a unique name and a signal to our button.
Change the button Name: to sfm_button.
Add the on_sfm_button_clicked signal to the GtkButton clicked signal handler and don’t forget to press the enter key so the signal is saved."
The image below this is not in sync with the above text. Which is correct?
I have attached an image which is almost in sync with the text.
Bob
Edit:
When I corrected the sfm_butto label to read sfm_button it caused the Signal to read on_sfm_button _clicked in the glade4.glade. This caused the terminal start up of glade4.py to report an error:
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
glade4.py:12: RuntimeWarning: missing handler 'on_sfm_button _clicked' <<< space after button
self.builder.connect_signals(self)
^CTraceback (most recent call last):
File "glade4.py", line 58, in <module>
gtk.main()
KeyboardInterrupt
I corrected this by removing the space in glade4.glade program and the glade4.py ran OK.
Bob
Glade Tutorial 4a part 4.
Tutorial instruction states:
"Next we will add a unique name and a signal to our button.
Change the button Name: to sfm_button.
Add the on_sfm_button_clicked signal to the GtkButton clicked signal handler and don’t forget to press the enter key so the signal is saved."
The image below this is not in sync with the above text. Which is correct?
I have attached an image which is almost in sync with the text.
Bob
Edit:
When I corrected the sfm_butto label to read sfm_button it caused the Signal to read on_sfm_button _clicked in the glade4.glade. This caused the terminal start up of glade4.py to report an error:
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
glade4.py:12: RuntimeWarning: missing handler 'on_sfm_button _clicked' <<< space after button
self.builder.connect_signals(self)
^CTraceback (most recent call last):
File "glade4.py", line 58, in <module>
gtk.main()
KeyboardInterrupt
I corrected this by removing the space in glade4.glade program and the glade4.py ran OK.
Bob
Last edit: 09 Feb 2014 12:12 by rggrieger. Reason: Corrected Signal but it caused space character error.
Please Log in or Create an account to join the conversation.
09 Feb 2014 20:08 - 09 Feb 2014 20:20 #43659
by BigJohnT
Replied by BigJohnT on topic Glade3 Gtk Python Tutorial Errors
Looks like the screen shot is totally wrong as it is using on_sfm_button_activate... was the space in the zip file?
JT
JT
Last edit: 09 Feb 2014 20:20 by BigJohnT.
Please Log in or Create an account to join the conversation.
10 Feb 2014 03:51 #43679
by rggrieger
Replied by rggrieger on topic Glade3 Gtk Python Tutorial Errors
In the Glade tutorial I repeated 4a and the assignment of sfm_button to Calc name seemed to have a complete sfm_botton spelling. I added the Signal for clicked "on_sfm_button_clicked". I save it and also saved it as glade4.glade. I ran python glade4.py and received the error:
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
glade4.py:12: RuntimeWarning: missing handler 'on_sfm_butto_clicked'
self.builder.connect_signals(self)
quit with cancel
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
calculate rpm clicked
Note the Signal clicked now reads "on_sfm_butto_clicked". I rechecked the tutorial-4.glade and found the sfm_button misspelled. I looked at glade4.glade and had to reload it. I then save it and saved it again as glade4.glade. I ran glade4.py and it ran without errors. The calc now worked.
Unfortunately I could not capture all the screen shots as I redid 4a. I can only say I redid 4a and ran into the same misspelled button with the "n" missing. I replaced the end in Signal clicked and/or glade4.glade. It then worked. I found it difficult to record all the steps to show how the error crept into the code.
I guess we have to wait until someone else reports the same error.
Any way I tried to accurately report the error.
Bob
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
glade4.py:12: RuntimeWarning: missing handler 'on_sfm_butto_clicked'
self.builder.connect_signals(self)
quit with cancel
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
calculate rpm clicked
Note the Signal clicked now reads "on_sfm_butto_clicked". I rechecked the tutorial-4.glade and found the sfm_button misspelled. I looked at glade4.glade and had to reload it. I then save it and saved it again as glade4.glade. I ran glade4.py and it ran without errors. The calc now worked.
Unfortunately I could not capture all the screen shots as I redid 4a. I can only say I redid 4a and ran into the same misspelled button with the "n" missing. I replaced the end in Signal clicked and/or glade4.glade. It then worked. I found it difficult to record all the steps to show how the error crept into the code.
I guess we have to wait until someone else reports the same error.
Any way I tried to accurately report the error.
Bob
Please Log in or Create an account to join the conversation.
10 Feb 2014 05:02 - 14 Feb 2014 06:54 #43680
by rggrieger
Replied by rggrieger on topic Glade3 Gtk Python Tutorial Errors
Glade3 Tutorial 5b
I did 5a and 5b. When I ran python glade5.py it had the errors:
bob@probotix-desktop:~/glade_tutorial$ chmod +x glade5.py
bob@probotix-desktop:~/glade_tutorial$ python glade5.py
glade5.py:11: RuntimeWarning: missing handler 'on_pop_status_activate'
self.builder.connect_signals(self)
glade5.py:11: RuntimeWarning: missing handler 'on_push_status_activate'
self.builder.connect_signals(self)
^CTraceback (most recent call last):
File "glade5.py", line 55, in <module>
gtk.main()
KeyboardInterrupt
bob@probotix-desktop:~/glade_tutorial$
I checked the glade5.py, see attached, and it does nott have either on_pop_status or on_push_status_activate. Glade5.py is a direct copy from the tutorial web page.
Bob
P.S. I fixed it and it works.
Bob
I did 5a and 5b. When I ran python glade5.py it had the errors:
bob@probotix-desktop:~/glade_tutorial$ chmod +x glade5.py
bob@probotix-desktop:~/glade_tutorial$ python glade5.py
glade5.py:11: RuntimeWarning: missing handler 'on_pop_status_activate'
self.builder.connect_signals(self)
glade5.py:11: RuntimeWarning: missing handler 'on_push_status_activate'
self.builder.connect_signals(self)
^CTraceback (most recent call last):
File "glade5.py", line 55, in <module>
gtk.main()
KeyboardInterrupt
bob@probotix-desktop:~/glade_tutorial$
I checked the glade5.py, see attached, and it does nott have either on_pop_status or on_push_status_activate. Glade5.py is a direct copy from the tutorial web page.
Bob
P.S. I fixed it and it works.
Bob
Last edit: 14 Feb 2014 06:54 by rggrieger. Reason: It now works.
Please Log in or Create an account to join the conversation.
10 Feb 2014 05:47 - 10 Feb 2014 05:49 #43683
by rggrieger
Replied by rggrieger on topic Glade3 Gtk Python Tutorial Errors
Glade Tutorial 6a-3
"Select window1 from the tree and in the Signals tab add the on_window1_destroy handler to the GtkObject destroy signal."
Can not set Signal to GtkObject destroy signal as instructed because it does not show up.
Bob
"Select window1 from the tree and in the Signals tab add the on_window1_destroy handler to the GtkObject destroy signal."
Can not set Signal to GtkObject destroy signal as instructed because it does not show up.
Bob
Last edit: 10 Feb 2014 05:49 by rggrieger. Reason: Missing attached file.
Please Log in or Create an account to join the conversation.
10 Feb 2014 05:47 #43684
by BigJohnT
If you change the spelling of the signal handler then you have to change the python file as well. I double checked 4 and everything is correct.
JT
Replied by BigJohnT on topic Glade3 Gtk Python Tutorial Errors
In the Glade tutorial I repeated 4a and the assignment of sfm_button to Calc name seemed to have a complete sfm_botton spelling. I added the Signal for clicked "on_sfm_button_clicked". I save it and also saved it as glade4.glade. I ran python glade4.py and received the error:
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
glade4.py:12: RuntimeWarning: missing handler 'on_sfm_butto_clicked'
self.builder.connect_signals(self)
quit with cancel
bob@probotix-desktop:~/glade_tutorial$ python glade4.py
calculate rpm clicked
Note the Signal clicked now reads "on_sfm_butto_clicked". I rechecked the tutorial-4.glade and found the sfm_button misspelled. I looked at glade4.glade and had to reload it. I then save it and saved it again as glade4.glade. I ran glade4.py and it ran without errors. The calc now worked.
Unfortunately I could not capture all the screen shots as I redid 4a. I can only say I redid 4a and ran into the same misspelled button with the "n" missing. I replaced the end in Signal clicked and/or glade4.glade. It then worked. I found it difficult to record all the steps to show how the error crept into the code.
I guess we have to wait until someone else reports the same error.
Any way I tried to accurately report the error.
Bob
If you change the spelling of the signal handler then you have to change the python file as well. I double checked 4 and everything is correct.
JT
Please Log in or Create an account to join the conversation.
10 Feb 2014 05:50 #43685
by BigJohnT
You do have to click on the arrow to make hidden handlers show up...
JT
Replied by BigJohnT on topic Glade3 Gtk Python Tutorial Errors
Glade Tutorial 6a-3
"Select window1 from the tree and in the Signals tab add the on_window1_destroy handler to the GtkObject destroy signal."
Can not set Signal to GtkObject destroy signal as instructed because it does not show up.
Bob
You do have to click on the arrow to make hidden handlers show up...
JT
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.112 seconds