Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm new to Ubuntu but not that new to development in modern coding to say. I've started building a app for Ubuntu mostly just to get started and I was using the guide that ubuntu.com's development section gave to me. You probably know what I am talking about. Now the problem is that the code is not working... At all. Glade is working great, running and all that suff works... Until the coding parts kicks in.

Now, I thought something was wrong after restarting the computer and so (incuding making myself 100% sure that the code was 100% right) and then it struck me that the installation must have gone wrong. Not that.

So now I'm running out of things to do and the only thing I think could be wrong is that the video is outdated and shows information that no longer is valid. Please give me something. Thanks

share|improve this question
Please, can you give us some more data. What is exactly happening when you try to run the code?. Any message errors?. –  Javier Rivera Nov 6 '12 at 8:25
When I call quickly run in the folder this message pops up when I have the new code added, otherwise it works as usual... Traceback (most recent call last): File "bin/zpoft", line 32, in <module> import zpoft File "/home/viktor/zpoft/zpoft/__init__.py", line 14, in <module> from zpoft import ZpoftWindow File "/home/viktor/zpoft/zpoft/ZpoftWindow.py", line 19, in <module> class ZpoftWindow(Window): File "/home/viktor/zpoft/zpoft/ZpoftWindow.py", line 31, in ZpoftWindow self.button = self.builder.get_object("button") NameError: name 'self' is not defined –  Xweque Nov 6 '12 at 10:48
When you have problems with code, it is essential, that you post code and error messages. The error messages you gave in the comment suggest that you forgot to have "self" as the first parameter in the method, so please post the code of ZpoftWindow so that we can actually help. –  xubuntix Nov 6 '12 at 12:37
Didn't have space for all code so just the lines where I edit... # Code for other initialization actions should be added here. self.button = self.builder.get_object("button") def on_button_clicked(self, widget): print "test" –  Xweque Nov 6 '12 at 15:59
Please post the whole code into paste.ubuntu.com –  mhall119 Nov 11 '12 at 22:47
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.