Glade3 Gtk Python Tutorial Errors

More
12 Feb 2014 06:43 #43781 by BigJohnT
I fixed the file name and the link.

Thanks
JT

Please Log in or Create an account to join the conversation.

More
12 Feb 2014 06:52 #43782 by rggrieger
Hi JT:

I did 9f and the dialog box appears but only the Fuuy selection works. The Slimy retains the Furry choices. I can not see the bottom links do anything.
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Feb 2014 07:25 #43783 by rggrieger
Glade3 Tutorial Part 10 Setting Up Python

Setup Python and it display the dialog for file menu, see attachment. It also produced errors:

bob@probotix-desktop:~/glade_tutorial/glade10$ chmod +x gtk10.py
bob@probotix-desktop:~/glade_tutorial/glade10$ python gtk10.py
gtk10.py:9: RuntimeWarning: missing handler 'gtk_widget_hide' <<<<<<<<<<<<<< Error
self.builder.connect_signals(self)

Bob
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Feb 2014 07:45 - 12 Feb 2014 08:05 #43784 by rggrieger
Hi:

Glade3 Gtk Python 10 Setting Up Python

Removed pass from the file options and received the following error:

bob@probotix-desktop:~/glade_tutorial/glade10$ chmod +x gtk10.py
bob@probotix-desktop:~/glade_tutorial/glade10$ python gtk10.py
File "gtk10.py", line 15
def on_file_open_activate(self, menuitem, data=None):
^
IndentationError: expected an indented block <<<<<<< Error
bob@probotix-desktop:~/glade_tutorial/glade10$

See attached gtk10.py

Bob

P.S. Added back in "pass" except for file_open. replace the " def on_file_open_activate(self, menuitem, data=None):
" with expanded def that I had put lower in the file.

I ran gtk10.py and the dialog showed up. I clicked on File > Open and the file selection dialog box showed up.

It still has an earlier error warning:

bob@probotix-desktop:~/glade_tutorial/glade10$ python gtk10.py
gtk10.py:9: RuntimeWarning: missing handler 'gtk_widget_hide' <<<<<< Warning
self.builder.connect_signals(self)
^CTraceback (most recent call last):
File "gtk10.py", line 41, in <module>
gtk.main()
KeyboardInterrupt
bob@probotix-desktop:~/glade_tutorial/glade10$ ^C

Bob
Last edit: 12 Feb 2014 08:05 by rggrieger. Reason: Found the cause of the errors and corrected them.

Please Log in or Create an account to join the conversation.

More
12 Feb 2014 08:52 - 12 Feb 2014 09:30 #43786 by rggrieger
Hi:

Glade3 Part 11 Setting up Python

Set up python and it ran with warning error:

bob@probotix-desktop:~/glade_tutorial/glade11$ chmod +x gtk11.py
bob@probotix-desktop:~/glade_tutorial/glade11$ python gtk11.py
gtk11.py:9: RuntimeWarning: missing handler 'on_rb1_toggled'
self.builder.connect_signals(self)
^CTraceback (most recent call last):
File "gtk11.py", line 22, in <module>
gtk.main()
KeyboardInterrupt
bob@probotix-desktop:~/glade_tutorial/glade11$

Radio buttons work.

Bob

P.S. Glade11 works! See attachments. This the end except for any remaining clean up items.

Bob
Attachments:
Last edit: 12 Feb 2014 09:30 by rggrieger. Reason: Corrected errors and warning and it works OK

Please Log in or Create an account to join the conversation.

More
13 Feb 2014 02:05 - 13 Feb 2014 02:07 #43807 by gww250
How did you get past Glade 3 part 9? When I follow the Glade 3 tutorial link it ends with part 9f.
I'm following the link gnipsel.com/glade/ which I just cleared the cache and refreshed my browser.
Last edit: 13 Feb 2014 02:07 by gww250. Reason: link problem

Please Log in or Create an account to join the conversation.

More
13 Feb 2014 20:04 #43823 by BigJohnT
There is indeed 11 parts so far...

JT

Please Log in or Create an account to join the conversation.

More
14 Feb 2014 04:59 #43837 by rggrieger
Glade3 part 4

I unziped part 4b, the glade4.py and the blank after on_button_clicked was not there. I ran glade4.py and it ran OK. Problem solved except that several times in other gladen.glade General and switch parts I could not type the full Name or switch did not have the full name. I corrected the gladen.py once i knew what to look for and it worked.

Bob

Please Log in or Create an account to join the conversation.

More
14 Feb 2014 20:29 - 14 Feb 2014 20:29 #43853 by BigJohnT
I'm glad you know what you said cause you lost me... there is no "on_button_clicked" in glade4.py. I have no idea what gladen.glade and gladen.py are... but I'm glad you got it to work.

JT
Last edit: 14 Feb 2014 20:29 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
14 Feb 2014 21:01 #43858 by gww250
I think what the op is talking about is a problem I've also had with Glade when trying to provide new names to the buttons. Often the last few text characters will not show up. For example you type Mode_MDI and get Mode_MD or just MOD_M, It's very frustrating but you if reload the glade file it usually allows you to correctly enter data on the next session. There is fix on the net that says something about clicking on adjacent button names in the list...etc., etc. but it doesn't work all of the time.

Please Log in or Create an account to join the conversation.

Moderators: HansU
Time to create page: 0.105 seconds
Powered by Kunena Forum