I am getting an error while writing my first app as shown in developer get-started tutorial

Posted by TrickyJ on Ask Ubuntu See other posts from Ask Ubuntu or by TrickyJ
Published on 2012-09-23T17:39:21Z Indexed on 2012/09/26 9:52 UTC
Read the original article Hit count: 270

I am trying to learn to develop apps in ubuntu and currently i am going through this tutorial.

As shown in the video I am writing the below given codes:

self.refreshbutton = self.builder.get_object("refreshbutton")
def on_refreshbutton_clicked(self, widget):
print "Refresh"

As soon as I try to run my application it is giving me an error :

I type this command to run my application : quickly run

(trickybrowser:4418): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1971:11: Not using units is deprecated. Assuming 'px'.

(trickybrowser:4418): Gtk-WARNING **: Failed to parse /usr/share/themes/mac-os-lion-theme-v2/gtk-3.0/settings.ini: Key file contains line '/* ' which is not a key-value pair, group, or comment
Traceback (most recent call last):
  File "bin/trickybrowser", line 32, in <module>
    import trickybrowser
  File "/home/tricky/trickybrowser/trickybrowser/__init__.py", line 14, in <module>
    from trickybrowser import TrickybrowserWindow
  File "/home/tricky/trickybrowser/trickybrowser/TrickybrowserWindow.py", line 32
    print "Refresh"
        ^
IndentationError: expected an indented block

© Ask Ubuntu or respective owner

Related posts about application-development