Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45387
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'parameters': 0.04; 'list?': 0.07; 'squares': 0.07; 'subject:Question': 0.07; 'grid': 0.09; 'learn,': 0.09; 'utilizing': 0.09; 'window?': 0.09; 'cc:addr :python-list': 0.11; 'pygame': 0.16; 'somehow.': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'numerical': 0.19; 'pointed': 0.19; '(the': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'now?': 0.24; 'specify': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'andrew': 0.30; 'code': 0.31; 'that.': 0.31; '>>>>': 0.31; 'object.': 0.31; 'them?': 0.31; 'week.': 0.33; 'worked': 0.33; 'minimal': 0.33; "i'd": 0.34; 'could': 0.34; "can't": 0.35; 'advice': 0.35; 'something': 0.35; 'but': 0.35; 'really': 0.36; 'being': 0.38; 'thank': 0.38; 'question,': 0.38; 'pm,': 0.38; 'how': 0.40; 'ian': 0.60; 'color': 0.61; 'utilize': 0.61; 'new': 0.61; 'entire': 0.61; "you're": 0.61; "you'll": 0.62; 'show': 0.63; 'information': 0.63; 'such': 0.63; 'refer': 0.63; 'more': 0.64; '(that': 0.65; 'received:74.208': 0.68; 'received:74.208.4.194': 0.84; 'to:none': 0.92 |
| Date | Wed, 15 May 2013 21:20:31 -0400 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
| MIME-Version | 1.0 |
| CC | python-list@python.org |
| Subject | Re: Question re: objects and square grids |
| References | <CAPp_YbVwiK1RBk_fLP32Kzv56GjYUf4TL=Ogzo5qsOKtrd8kGg@mail.gmail.com> <5193CC16.80304@davea.name> <5193E8C0.1060004@davea.name> <CAPp_YbVBm2444Ea-pUy2Zn2YbB1mKmDoasmNXp7DPAbs8Sra4g@mail.gmail.com> <CAPp_YbVk4NwSxSpVEASCk0w=1mPoRii+RjccnXNLP+8igf3H2g@mail.gmail.com> <519425AC.3070605@davea.name> <CAPp_YbWPP-ptEuhnsqt7SvmBB2Ft_5XpiTV1dARMe9Ef=eYwhQ@mail.gmail.com> |
| In-Reply-To | <CAPp_YbWPP-ptEuhnsqt7SvmBB2Ft_5XpiTV1dARMe9Ef=eYwhQ@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:dL13/3251UtgsvPphUTQBTM9bWW+urQtSZYMJdgIlXI cFzPT/7PJDWI9EcOvvmX8LVSpZ2fDVNbibsPWoy0SpKcR11anb VQTy1qWhtn0Mmu4PNKHjSyasvhjJAqsXsGb4XatiF0wTb925iJ y0CrB2Q09kfc3RqlNX+uuHsqMPbddajkU3OlB1YtpZIcba7Ldv F1v2QIOALowzECqOFXfvNfJJyr97VwnwV7iNaXV9kXhWWbY8vQ cCCc+RleVrqHfOmZdVJz6yv6jL+9xTlTXEOJ5pEllYAqPyLEQc 3Px+KjB1Cyb1zuO1iJt/NYGYQ0KhktD60TrPY/aj2N0e7QaSQ= = |
| 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.1729.1368667255.3114.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1368667255 news.xs4all.nl 15892 [2001:888:2000:d::a6]:52777 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45387 |
Show key headers only | View raw
On 05/15/2013 08:53 PM, Andrew Bradley wrote: >> >> >> <SNIP> >> >> So now, how can I utilize this new grid list? Thank you for the >>>> help so far, I feel like the entire grid is now being worked out. >>>> -Andrew >>>> >>>> >> That's a Pygame question, and I told you at the beginning, I can't really >> help with that. I'd like to learn, but not this week. >> >> Others - can you show some minimal code to use these grid parameters to >> color selected squares of the pygame window? >> >> > Yes, I would very much like some help or general advice now about utilizing > this grid thing. How can I refer to these square's new numerical values to > do things with them? Will I be using things like "grid[0][1]" in specific > functions and methods to refer to squares now? Yes, exactly. Any place in your code (the part I cannot help with) that you need to specify a rect, you can specify something like grid[3][18]. Eventually, as Ian pointed out, you'll want to store more information about each cell. But at that time, you could have a more complex object (that YOU define) instead of just a rect. I just don't think you're ready for defining such an object. > That is what I would like to > do, somehow. > -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Question re: objects and square grids Dave Angel <davea@davea.name> - 2013-05-15 21:20 -0400
csiph-web