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 trying to follow the 'creating your first ubuntu app' tutorial. I'm making a text entry box and every time I hit enter it doesn't work. Here is my code:

def on_urlentry_activate(self, widget):
    url = widget.get_text()

    print url()

and this is what I get:

File "/home/leife/mybrowser1/mybrowser1/Mybrowser1Window.py", line 50, in on_urlentry_activate
print url()
TypeError: 'str' object is not callable

I tried seeing if compiling the glade source code would help, but someone else said it wouldn't.

share|improve this question
print url not print url() –  hbdgaf Jan 6 '13 at 3:35
do you know where the GTK standard library is? so I can find out where he found all those functions and learn them. –  user116943 Jan 6 '13 at 3:53
That's general programming not language or library understanding. –  hbdgaf Jan 6 '13 at 3:54
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.