Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45198
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bsk16@case.edu> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'scripts': 0.03; 'causing': 0.04; 'attribute': 0.07; 'subject:help': 0.08; 'executed': 0.09; 'integers': 0.09; 'received:209.85.219': 0.09; 'throws': 0.09; 'python': 0.11; 'gui': 0.12; "wouldn't": 0.14; 'attribute.': 0.16; 'wrote:': 0.18; 'alex': 0.19; 'subject:need': 0.19; 'appears': 0.22; 'to:name:python-list@python.org': 0.22; 'error': 0.23; 'integer': 0.24; 'file.': 0.24; "haven't": 0.24; 'looks': 0.24; 'skip:" 30': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'correct': 0.29; 'wondering': 0.29; "doesn't": 0.30; 'label': 0.30; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; 'code': 0.31; 'clicked': 0.31; 'subject:some': 0.31; 'file': 0.32; 'run': 0.32; '(most': 0.33; 'skip:b 30': 0.33; 'could': 0.34; "can't": 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'module.': 0.36; 'subject:regarding': 0.36; 'error.': 0.37; 'received:209': 0.37; 'somebody': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'recent': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'middle': 0.60; 'new': 0.61; 'complete': 0.62; 'making': 0.63; 'results': 0.69; 'college': 0.70; 'walk': 0.74; 'norton': 0.84; '2013': 0.98 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=8kHLIcDPYaWOs1VN+UvnuCWYp0lupGz/jtiWd8xsPz4=; b=WZWevEIVJR0D6DAUx65M7i5s/REa1euosJeainxW/urPHYjO42xw+FYUIB6r4UYZKj DO0UABUrBHFUJPmKTGv9aJ4OI+W9nO5Kt47I/bFtVJnRjpfJhHlbLs1LvvADXYuival8 +21uJCSJSw1lGVIqxikle7PICwkCi+hIMi9DDh2P55OhiampmirS7gpqPg2y3sz19mOL ehY/sRALe1wxzD8dgQda1wUu2hrkvktg7MtpySyhMBG1F12ittNJPpDc18yNneRrllrQ jNfh8hPxv104HvOfhH8kJUu9XjCDy1vqa2vYD4rjZUtViLOPghl4N3/aIXNctCTVC3pi U2Vg== |
| X-Received | by 10.60.23.9 with SMTP id i9mr2540271oef.109.1368388993384; Sun, 12 May 2013 13:03:13 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Received | by 10.60.23.9 with SMTP id i9mr2540268oef.109.1368388993314; Sun, 12 May 2013 13:03:13 -0700 (PDT) |
| In-Reply-To | <CAAQ2WQxR7yuQp3Mn+zb0zsMLW53sWaPw2sPOyca=L1PRyO5r1Q@mail.gmail.com> |
| References | <CAAQ2WQxR7yuQp3Mn+zb0zsMLW53sWaPw2sPOyca=L1PRyO5r1Q@mail.gmail.com> |
| Date | Sun, 12 May 2013 13:03:13 -0700 |
| Subject | Re: in need of some help regarding my rock paper scissors game |
| From | Benjamin Kaplan <benjamin.kaplan@case.edu> |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-Gm-Message-State | ALoCoQmIbvyDxjPM+QJH3HgneESmY9tDx8EJnPItoJl8bTWjaRcggw7/ZZnLg4f+lu4+1iwEuvsabgp6S1qFp293nRIENvsRq2Xvcj8RXVfSICFRLMTvoOliVX3iW7VzXNz01NiBNPOxy4QHdjy5Kuqdryyv/w7Hww== |
| X-Junkmail-Whitelist | YES (by domain whitelist at mpv1.tis.cwru.edu) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1593.1368389003.3114.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1368389003 news.xs4all.nl 15953 [2001:888:2000:d::a6]:60536 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45198 |
Show key headers only | View raw
On Sun, May 12, 2013 at 12:33 PM, Alex Norton <ayjayn1101@gmail.com> wrote: > 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. > > -- bWater is an int. Integers don't have a clicked attribute. So bWater.clicked.connect(water_clicked) looks for the clicked attribute of the integer bWater, can't find it, and throws an error. Also, Python scripts are executed line by line- at the time you make that call, the water_clicked function doesn't exist yet, so even if that was the correct call, it wouldn't work here. I haven't used PyQT before so I can't say what the correct way to set this up would be, but that's at least what's causing this error.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: in need of some help regarding my rock paper scissors game Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-05-12 13:03 -0700
csiph-web