Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45196 > unrolled thread

in need of some help regarding my rock paper scissors game

Started byAlex Norton <ayjayn1101@gmail.com>
First post2013-05-12 20:33 +0100
Last post2013-05-13 20:36 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  in need of some help regarding my rock paper scissors game Alex Norton <ayjayn1101@gmail.com> - 2013-05-12 20:33 +0100
    Re: in need of some help regarding my rock paper scissors game Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-13 20:36 +0000

#45196 — in need of some help regarding my rock paper scissors game

FromAlex Norton <ayjayn1101@gmail.com>
Date2013-05-12 20:33 +0100
Subjectin need of some help regarding my rock paper scissors game
Message-ID<mailman.1592.1368387232.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

im new to python and im in the middle of making a RPS game for a college
unit.

i have used PyQt to create the GUI and i have received help regarding
adding the code to the buttons.

but its missing something as the error

'Traceback (most recent call last): File "C:\Users\Me\Desktop\testy.py",
line 174, in bWater.clicked.connect( water_clicked ) AttributeError: 'int'
object has no attribute 'clicked'' appears when i run the module.

i was wondering if somebody could walk me through making the game complete
and to add the results of the game (win/lose/stalemate) to the loutcome
label

 attached is the game file.

[toc] | [next] | [standalone]


#45262

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2013-05-13 20:36 +0000
Message-ID<kmrirn$mqd$6@dont-email.me>
In reply to#45196
On Sun, 12 May 2013 20:33:44 +0100, Alex Norton wrote:

> 'Traceback (most recent call last): File "C:\Users\Me\Desktop\testy.py",
> line 174, in bWater.clicked.connect( water_clicked ) AttributeError:
> 'int'
> object has no attribute 'clicked'' appears when i run the module.

It looks to me as if bWater is an integer value and doesn't have 
a .clicked attribute.

Where is bWater assigned, and what is it assigned to?

If you have a clickable "water" widget of some sort in your gui, what is 
the click handler for that widget defined as?

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web