Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'class,': 0.07; 'method.': 0.07; 'problem?': 0.07; 'skip:" 60': 0.07; 'skip:u 30': 0.07; 'main()': 0.09; 'subject:instance': 0.09; 'subject:method': 0.09; 'subject: \n ': 0.16; 'typeerror:': 0.16; 'unbound': 0.16; "where's": 0.16; 'all,': 0.19; 'module': 0.19; 'code': 0.31; 'lines': 0.31; 'file': 0.32; 'run': 0.32; '(most': 0.33; 'subject: (': 0.35; 'subject:with': 0.35; 'skip:u 20': 0.35; 'skip:" 50': 0.36; 'method': 0.36; 'two': 0.37; 'to:addr:python- list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'consists': 0.60; 'first': 0.61; 'dear': 0.65; '92,': 0.84; 'subject:nothing': 0.84 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pahlevanzadeh.org; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:Date:To:From:Subject:Message-ID; bh=eQptepsXTxIJ93fkYaNGQJyGEMHm/0/alrVX0oGXnw8=; b=E0XlkByk/F450bnzPUnrj6Xi5eqk7CIGQRJB/Hc9CqQGSXSFArIWr1tqG356OodY6rECC6Et/Ku5jdQWTE2AEemZqz2Id/5mXWt/smbEyyJJIiEkm3bT7VXzCm22oy2eQ8GLnI8jPd9TiM6L5rWpMWrwgd9/PWYxB+v5pzHjW04=; Subject: unbound method () must be called with ... instance as first argument (got nothing instead) From: Mohsen Pahlevanzadeh To: python-list@python.org Date: Wed, 04 Sep 2013 02:00:16 +0430 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-4+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - part7.royal-servers.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pahlevanzadeh.org X-Get-Message-Sender-Via: part7.royal-servers.com: authenticated_id: mohsen@pahlevanzadeh.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378243828 news.xs4all.nl 15977 [2001:888:2000:d::a6]:36866 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53586 Dear all, I have the following two lines code in my setup frame: ////////////////////// self.showHideConstructor = ui.interface.interface.ShowHide() QtCore.QObject.connect(self.pushButtonAdd, QtCore.SIGNAL(_fromUtf8("clicked()")),self.showHideConstructor,ui.interface.interface.ShowHide.showFindMaterials()) ////////////////////// and i have module ui.interface.interface , it contains ShowHide class, and it consists showFindMaterials() method. When i run program , i get the following traceback : /////////////////////////////////////////// Traceback (most recent call last): File "./main.py", line 113, in main() File "./main.py", line 94, in main interfaceObj.showMaterials() File "/home/mohsen/codes/amlak/amlak/src/ui/interface/interface.py", line 82, in showMaterials self.ui.setupUi(self.Frame) File "/home/mohsen/codes/amlak/amlak/src/ui/materialsFrame.py", line 92, in setupUi QtCore.QObject.connect(self.pushButtonAdd, QtCore.SIGNAL(_fromUtf8("clicked()")),self.showHideConstructor,ui.interface.interface.ShowHide.showFindMaterials()) TypeError: unbound method showFindMaterials() must be called with ShowHide instance as first argument (got nothing instead) /////////////////////////////////////////////// Where's problem?