Results 1 to 3 of 3

Thread: object is not callable

  1. #1
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Lightbulb object is not callable

    keep getting error object is not callable on this

    Qt Code:
    1. redb.clicked[bool].connect(self.setColor)
    To copy to clipboard, switch view to plain text mode 

    i am learning PyQt4 on windows 7 x86

    Update: i figured out the problem
    Last edited by krystosan; 30th November 2012 at 07:30.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: object is not callable

    You figured it out? Great! And thanks for showing us the solution...
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Nov 2012
    Posts
    35
    Thanks
    1
    Thanked 7 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: object is not callable

    well, I am learning PyQt4 from zetcode and i just missed defining the method that was being called...

Similar Threads

  1. how to add a linux C compiled object file to my qt object ?
    By saman_artorious in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2012, 10:45
  2. How to call a function in the mother object from a child object?
    By Momergil in forum General Programming
    Replies: 4
    Last Post: 18th December 2011, 15:49
  3. Replies: 1
    Last Post: 8th November 2011, 22:27
  4. Replies: 4
    Last Post: 15th July 2011, 18:31
  5. Replies: 4
    Last Post: 20th August 2010, 13:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.