Failure on Gnipsel's Custom GUI Tutorial ?

More
10 years 5 months ago #75160 by bladekel
Hi to all...

I am trying to learn how to build a custom GUI from gnipsel's lessons.

But on the first tutor, there is a fault. I am using it's original files but it didnt work.

Here is the lesson :
Custom GUI Tutorial Part 1b

Here is the original code :
Code:
#!/usr/bin/env python import gtk import gladevcp.makepins from gladevcp.gladebuilder import GladeBuilder import hal class gui_one(object): def on_window1_destroy(self, widget, data=None): print "quit with cancel" gtk.main_quit() def on_gtk_quit_activate(self, menuitem, data=None): print "quit from menu" gtk.main_quit() def __init__(self): self.builder = gtk.Builder() self.builder.add_from_file("gui1.glade") halcomp = hal.component("gui01") self.builder.connect_signals(self) self.window = self.builder.get_object("window1") self.window.show() panel = gladevcp.makepins.GladePanel( halcomp, "gui1.glade", self.builder, None) halcomp.ready() if __name__ == "__main__": app = gui_one() gtk.main()

And here is my fault :

Attachment not found



Can anyone help me ?

Please Log in to join the conversation.

More
10 years 5 months ago #75174 by BigJohnT
Are you running the real time kernel? Type uname -r in a terminal and see what it says.

JT

Please Log in to join the conversation.

More
10 years 5 months ago #75181 by bladekel

BigJohnT wrote: Are you running the real time kernel? Type uname -r in a terminal and see what it says.

JT

Hi dude,
I ran the code that you have written, and the output is :

3.4-9-rtai-686-pae

Please Log in to join the conversation.

More
10 years 5 months ago #75182 by BigJohnT
I just downloaded the two files from my website and started an Axis sim then executed the gui1.py file with no errors on the 3.4-9-rtai-686-pae kernel. I can only reproduce your error when I don't follow the instructions in the tutorial...

JT

Please Log in to join the conversation.

More
10 years 5 months ago #75183 by bladekel

BigJohnT wrote: I just downloaded the two files from my website and started Axis then executed the gui1.py file with no errors on the 3.4-9-rtai-686-pae kernel. I can only reproduce your error when I don't follow the instructions in the tutorial...

JT


So what is your opinion, why am i getting that error ?
I didnt do anything else, only downloaded those files and ran the .py file.

I also get this error by the gui2.py ....

Please Log in to join the conversation.

More
10 years 5 months ago #75184 by BigJohnT
It's plain and simple you didn't follow the instructions in the tutorial nor did you read my reply.

JT

Please Log in to join the conversation.

More
10 years 5 months ago #75185 by bladekel

BigJohnT wrote: It's plain and simple you didn't follow the instructions in the tutorial nor did you read my reply.

JT


I read them, but let me check again....

Please Log in to join the conversation.

More
10 years 5 months ago #75186 by BigJohnT
I didn't say you didn't read the instructions but that you didn't follow them.

JT

Please Log in to join the conversation.

More
10 years 4 months ago #75549 by bladekel
Hi John.

As you sad before I missed the part "running axis before new GUI" .

Everything works now.

Thanks for your tutorial and help .....

Please Log in to join the conversation.

Time to create page: 0.572 seconds
Powered by Kunena Forum