[Tutor] list of objects?

2011-11-15 Thread Elwin Estle
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

[Tutor] update Tkinter text widget in realtime?

2011-02-02 Thread Elwin Estle
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,

[Tutor] tkinter nested class question

2011-02-01 Thread Elwin Estle
...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

Re: [Tutor] Help with range of months spanning across years

2011-02-01 Thread Elwin Estle
--- 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,

[Tutor] search list with regex

2011-01-31 Thread Elwin Estle
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).

Re: [Tutor] Wrapping my head around global variables!!

2011-01-31 Thread Elwin Estle
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

[Tutor] oops...sorry, just top posted again

2011-01-31 Thread Elwin Estle
...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? ___

Re: [Tutor] search list with regex

2011-01-31 Thread Elwin Estle
--- 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

Re: [Tutor] oops...sorry, just top posted again

2011-01-31 Thread Elwin Estle
--- 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

Re: [Tutor] search list with regex

2011-01-31 Thread Elwin Estle
--- 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

Re: [Tutor] pywin32 help

2011-01-30 Thread Elwin Estle
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]

Re: [Tutor] Wrapping my head around global variables!!

2011-01-28 Thread Elwin Estle
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

Re: [Tutor] tkinter, create widgets during runtime?

2011-01-27 Thread Elwin Estle
? ...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

Re: [Tutor] tkinter, create widgets during runtime?

2011-01-27 Thread Elwin Estle
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

Re: [Tutor] class question

2011-01-26 Thread Elwin Estle
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

[Tutor] tkinter, create widgets during runtime?

2011-01-26 Thread Elwin Estle
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

Re: [Tutor] class question

2011-01-26 Thread Elwin Estle
--- 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

[Tutor] class question

2011-01-25 Thread Elwin Estle
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,

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Elwin Estle
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

[Tutor] python wallpapers

2011-01-22 Thread Elwin Estle
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 -

Re: [Tutor] Exercise suggestions

2011-01-22 Thread Elwin Estle
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

[Tutor] Tkinter in classes...why?

2011-01-20 Thread Elwin Estle
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

Re: [Tutor] question about manipulate images!

2011-01-17 Thread Elwin Estle
--- 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

[Tutor] errors in Python Programming for the Absolute Beginner??

2011-01-13 Thread Elwin Estle
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