I am attempting to write a text based spider solitaire game. I have a pretty
simple card class, and a deck class, which has a list of card objects, which
are shuffled, then individual elements are put into self.dealt, which is a
'list of lists' when the cards are dealt.
I am trying to
The guy who had the post about the vowel search exercise got me to thinking
about matrices of letters, and thence to word search games, which I have made a
time or two by hand and they are a pain.
So I decided to try making a program that would put words into a word search.
This is very basic,
...at least I think it would be nested.
Anyway, I have several widget groups that I want to create inside a frame,
which is inside a class. I started to just do them with copying and pasting,
and changing the values for each one (the first one is commented out, I left it
in so you could see
--- On Tue, 2/1/11, Sean Carolan scaro...@gmail.com wrote:
From: Sean Carolan scaro...@gmail.com
Subject: [Tutor] Help with range of months spanning across years
To: Tutor@python.org
Date: Tuesday, February 1, 2011, 6:19 PM
I have a function that accepts four
arguments, namely startmonth,
Tcl's list search command has the option to search for a list element that
matches a given regex. Is there something similar in python? If not, it seems
like it should be fairly trivial for me to write my own (just wondering if I
would be re-inventing the wheel).
On 01/29/2011 07:01 PM, Elwin Estle wrote:
I found myself rather intrigued with what I perceived to be the basic
idea behind your programming attempt, so just for the heck of it, I played
around further with the idea.
Attached is what I have
...but I have an excuse. I had the thing saved in a drafts folder and just hit
send without thinking about it.
...I'll just go super glue broken glass to my hands and sprinkle itching powder
all over my body. Is that penance enough?
___
--- On Mon, 1/31/11, Wayne Werner waynejwer...@gmail.com wrote:
From: Wayne Werner waynejwer...@gmail.com
Subject: Re: [Tutor] search list with regex
To: Elwin Estle chrysalis_reb...@yahoo.com
Cc: tutor@python.org
Date: Monday, January 31, 2011, 10:20 AM
On Mon, Jan 31, 2011 at 7:07 AM, Elwin
--- On Mon, 1/31/11, David Hutto smokefl...@gmail.com wrote:
From: David Hutto smokefl...@gmail.com
Subject: Re: [Tutor] oops...sorry, just top posted again
To: Elwin Estle chrysalis_reb...@yahoo.com
Cc: tutor@python.org
Date: Monday, January 31, 2011, 10:05 AM
On Mon, Jan 31, 2011 at 8:11
--- On Mon, 1/31/11, Alan Gauld alan.ga...@btinternet.com wrote:
From: Alan Gauld alan.ga...@btinternet.com
Subject: Re: [Tutor] search list with regex
To: tutor@python.org
Date: Monday, January 31, 2011, 3:29 PM
Elwin Estle chrysalis_reb...@yahoo.com
wrote
parse various text files
I'm not 100% sure, but I think the Active State version of python comes with
pywin32...
http://www.activestate.com/activepython/downloads
...but I could be mistaken.
--- On Sun, 1/30/11, walter weston simplemin...@gmail.com wrote:
From: walter weston simplemin...@gmail.com
Subject: [Tutor]
I don't consider myself qualified to answer your question...but just in looking
at your program and the description of what it is supposed to do, I'm a bit
confused. So let me get this straight...the user is supposed to choose a
letter, and the program is supposed to tell them if it is a vowel
?
...should have said, Or am I correct in guessing tat if it IS possible, it is
probably more...
--- On Wed, 1/26/11, Elwin Estle chrysalis_reb...@yahoo.com wrote:
From: Elwin Estle chrysalis_reb...@yahoo.com
Subject: [Tutor] tkinter, create widgets during runtime?
To: tutor@python.org
Date
Thanks! That was just what I was looking for.
--- On Thu, 1/27/11, Wayne Werner waynejwer...@gmail.com wrote:
From: Wayne Werner waynejwer...@gmail.com
Subject: Re: [Tutor] tkinter, create widgets during runtime?
To: Elwin Estle chrysalis_reb...@yahoo.com
Cc: tutor@python.org
Date: Thursday
Elwin Estle wrote:
Is it better to have one large sort of do it all class, or break
the larger class up into smaller classes?
Yes.
Or no.
It's impossible to answer that question definitively without knowing more about
what it all is. But I can give some general advice:
* Python isn't Java
With Tcl/Tk, you can generate widgets on the fly during program execution,
without having to explicitly create them in your code. i.e., something like:
for {set i 0} {$i = 5} {incr i} {
label .myLabel_$i -text this is label myLabel_$i
pack .myLabel_$i
}
...which will generate five
--- On Wed, 1/26/11, Alan Gauld alan.ga...@btinternet.com wrote:
From: Alan Gauld alan.ga...@btinternet.com
Subject: Re: [Tutor] class question
To: tutor@python.org
Date: Wednesday, January 26, 2011, 1:10 PM
Is this really a series of different types of casting or a single Workpiece
going
Is it better to have one large sort of do it all class, or break the larger
class up into smaller classes? Seems to me like the one large class would be
clearer in some ways. I have something I am trying to do that have somewhere
in the neighborhood of 20 attributes that all relate together,
Well, I'm a noob myself, so perhaps take what I say with a grain or three of
salt. On the other hand, I have sort of the opposite problem, lots of ideas,
but not the time nor skill to make them happen.
Do you even necessarily have to complete a project? Sometimes just making an
attempt can
I dabble in Blender 3d. Just for the heck of it, I made some desktop
wallpapers using the python logo. Enjoy or not, as suits your fancy.
http://thepythonnoob.blogspot.com/2011/01/some-3d-python-wallpapers.html
___
Tutor maillist -
Okay, here's another one. I started this geez...30 years ago? On a Texas
Instruments 99/4A computer. I've never gotten around to doing anything further
with the idea.
It was a game called Piledriver. The idea was that in a distant future,
energy demands had become so great that there were
I have some experience in Tcl\Tk, and so far, Tkinter is striking me as harder
to use that Tk in it's native environment.
I am attempting to re-write a program I originally did in Tcl\Tk in Python. I
managed to get a GUI done using just Tkinter, and, after an initial struggle
with the Tkinter
--- On Sun, 1/16/11, zhengqing gan zhengqing...@gmail.com wrote:
From: zhengqing gan zhengqing...@gmail.com
Subject: [Tutor] question about manipulate images!
To: tutor@python.org
Date: Sunday, January 16, 2011, 11:37 PM
Hi, All:
I have a question about
manipulating images.
If
I am going through the book mentioned in the subject line, and I have found a
couple of things that don't seem to work the way the author shows in the book.
So, either I am doing something wrong, or what he is saying isn't quite right.
I am using Python 2.7.1 on Mac OS X Leopard.
The first
24 matches
Mail list logo