Home Download Buy Blog Forum Support

"unicode object is not callable" error using .statusMessage

"unicode object is not callable" error using .statusMessage

Postby guillermooo on Sat Sep 19, 2009 8:45 am

Hi,

Code: Select all
import sublime, sublimeplugin

def onDone(s):
   sublime.statusMessage("AAA")
   sublime.setClipboard(s)
def onCancel():
   sublime.messageBox("Cancelled.")

class SampleCommand(sublimeplugin.TextCommand):
   def run(self, view, args):
      view.window().showInputPanel(
                     "Hello","Initial text", onDone, None, onCancel)


I get an error saying that "unicode object is not callable" for the 4th line (statusMessage). According to the API reference, you only need to pass in a string to the method. What's the problem here?
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: "unicode object is not callable" error using .statusMessage

Postby guillermooo on Sat Sep 19, 2009 9:43 am

Hm... Restarting SU worked.

I think I did
Code: Select all
statusMessage = myArgument
at some point, yes...
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests