1
$ quickly run
Traceback (most recent call last):
  File "bin/mybrowser", line 32, in <module>
    import mybrowser
  File "/home/michael/mybrowser/mybrowser/__init__.py", line 14, in <module>
    from mybrowser import MybrowserWindow
  File "/home/michael/mybrowser/mybrowser/MybrowserWindow.py", line 39
    def on_refreshbutton_clicked(self,widget):  
 ^SyntaxError: invalid syntax

I was up to 26th minute on this Youtube video:

When I was to type quickly run, I got this invalid syntax. Is there something I've done wrong?

jokerdino
  • 41,732

1 Answers1

1

Indentation is very important in python. Here you typed code without proper indentation. Retry with proper indentation. If it still doesn't work post the contents of Mybrowser.py in your question.

jokerdino
  • 41,732
Tachyons
  • 17,455