What am I doing wrong in this simple tkinter example?

2013-03-16 Thread Yves S. Garret
Hi all, I'm well into "Python Programming for the Absolute Beginner" in order to become more acquainted with the language. However, when I got to page 304 and did my first example: http://bin.cakephp.org/view/1107093008 And this is the error that I'm getting: http://bin.cakephp.org/view/3997

Re: What am I doing wrong in this simple tkinter example?

2013-03-16 Thread Yves S. Garret
On Saturday, March 16, 2013 11:10:07 AM UTC-4, Mitya Sirenef wrote: > On 03/16/2013 10:53 AM, Yves S. Garret wrote: > > > Hi all, I'm well into "Python Programming for the Absolute Beginner" in > > order to > > > become more acquainted with the langu

Re: What am I doing wrong in this simple tkinter example?

2013-03-16 Thread Yves S. Garret
On Saturday, March 16, 2013 11:08:24 AM UTC-4, Chris Angelico wrote: > On Sun, Mar 17, 2013 at 1:53 AM, Yves S. Garret > > wrote: > > > Hi all, I'm well into "Python Programming for the Absolute Beginner" in > > order to > > > become more acqua

Re: What am I doing wrong in this simple tkinter example?

2013-03-16 Thread Yves S. Garret
On Saturday, March 16, 2013 11:23:07 AM UTC-4, Chris Angelico wrote: > On Sun, Mar 17, 2013 at 2:16 AM, Yves S. Garret > > wrote: > > > In the example that I have posted from the book it works just fine. > > > > Yep, I just checked the book's version aga

Having a hard time installing pygame on Win7.

2013-03-16 Thread Yves S. Garret
Hi all, got a small problem. As I'm going through "Python Programming for the Absolute Beginner", I got to chapter 11 and as I'm working through it, I can't seem to get pygame/livewires installed... I don't even know how to go about installing it (the book is skimpy on details). I'm using Pyt

[Python 2.7.3] What's the difference between these two uses of "for"?

2013-03-17 Thread Yves S. Garret
N00b question. But here is the code: http://bin.cakephp.org/view/709201806 In the first example, the first for-loop is run and then the list is assigned to the tricky variable. But, what happens in the second example? Does the loop after "in" get run only once or multiple number of times? -

Re: [Python 2.7.3] What's the difference between these two uses of "for"?

2013-03-17 Thread Yves S. Garret
On Sunday, March 17, 2013 9:18:12 PM UTC-4, Gary Herron wrote: > On 03/17/2013 05:58 PM, Yves S. Garret wrote: > > > N00b question. But here is the code: > > > > > > http://bin.cakephp.org/view/709201806 > > > > > > In the first example

Re: [Python 2.7.3] What's the difference between these two uses of "for"?

2013-03-17 Thread Yves S. Garret
On Sunday, March 17, 2013 9:28:56 PM UTC-4, Roy Smith wrote: > In article <485a3093...@googlegroups.com>, > > "Yves S. Garret" wrote: > > > > > N00b question. But here is the code: > > > > > > http://bin.cakephp.org/view/7092018

Re: [Python 2.7.3] What's the difference between these two uses of "for"?

2013-03-17 Thread Yves S. Garret
I don't get why it's posting what I said twice... -- http://mail.python.org/mailman/listinfo/python-list

Re: What are some other way to rewrite this if block?

2013-03-18 Thread Yves S. Garret
On Monday, March 18, 2013 9:56:16 AM UTC-4, Santosh Kumar wrote: > This simple script is about a public transport, here is the code: > > > > def report_status(should_be_on, came_on): > > if should_be_on < 0.0 or should_be_on > 24.0 or came_on < 0.0 or > > came_on > 24.0: > > retur

[Python 3.3.0] Getting tkinter to work on Python 3

2013-03-18 Thread Yves S. Garret
Hi. I'm having a problem trying to get this to work well. Basically, whenever I try to import tkinter, this is the issue that I have: >>> import tkinter Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.3/tkinter/__init__.py", line 40, in import _tkint

Re: [Python 3.3.0] Getting tkinter to work on Python 3

2013-03-18 Thread Yves S. Garret
PM, Ritchie Flick wrote: > Seems tkinter is missing in standard installation in ubuntu. Try: > sudo apt-get install python3-tk > > > On Mon, Mar 18, 2013 at 6:17 PM, Yves S. Garret < > yoursurrogate...@gmail.com> wrote: > >> Hi. I'm having a problem trying to

Re: [Python 3.3.0] Getting tkinter to work on Python 3

2013-03-18 Thread Yves S. Garret
On Monday, March 18, 2013 2:39:57 PM UTC-4, Lele Gaifax wrote: > "Yves S. Garret" writes: > > > I have. This is what I did and the result that I'm seeing. > > > > $ sudo apt-get install python3-tk > > You installed a "custom" python 3.3

help

2007-04-13 Thread pierre-yves guido
hello (I hope my english is not so bad), I'm doing a training course and I'm a newbie in Python. My problem : I have a form, and when I click, I make an update. But all the parameters are all required to make the update. So I'd like to put in my code something like [optional]... My code (simply

HELP PARAMETERS IN SQL QUERY

2007-04-13 Thread pierre-yves guido
hello, I'm doing a training course and I'm a newbie in Python. My problem : I have a form, and when I click, I make an update. But all the parameters are all required to make the update. So I'd like to put in my code something like [optional]... My code (simplyfied) : prg.ev_ind_update(wf_pk_ev_

UML reverse engineering

2008-04-04 Thread pierre-yves . dupont
Hello, Do you know a free software witch can compute a UML class diagram from a python code. I tested many free UML softwares like BoUML, ArgoUML, Dia, PNSource (not found), UMLet and others ... But I didn't found what I needed. -- Pierre-Yves Dupont-- http://mail.python.org/ma

<    1   2