>> def process(): # Ordinarily this would be process(photo,wdth,hgt)
>>global wdth # but I ran into problems calling it from a button
If you want to pass arguments to a command called when a button is
clicked, you have to use 'lambda' in tkinter.
>>global hgt #command with parameters...
>
>>tabuleiro[lin][col] = peca
use peca.copy() here or else a deep copy is made.
On Tue, Sep 15, 2015 at 4:45 PM, Rafael David wrote:
> Hi guys,
>
> I'm newbie in Python (but not a newbie developer). I'm facing a problem with
> a bidimensional list (list of lists) containing dictionaries. I don't
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote:
> In article
> ,
> C Smith wrote:
>> I had python 2.7.6 installed on OS X yosemite, which has always worked
>> fine, until I tried to install matplotlib with pip. I got the same
>> error below and upgraded to 2.7.9,
On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote:
> On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote:
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so,
>> 2): Symbol not found: __gfortran_
I had python 2.7.6 installed on OS X yosemite, which has always worked
fine, until I tried to install matplotlib with pip. I got the same
error below and upgraded to 2.7.9, used pip to upgrade all the
packages, but still get the same error.
>>> import matplotlib
Traceback (most recent call last):
, 2014 12:35:32 PM UTC-8, John Gordon wrote:
>> C Smith writes:
>>
>> > I was wondering if I could get some feedback on the biggest thing I
>> > have done as an amateur Python coder.
>>
>> Comments.
>>
>> You need a *lot* more comments.
>>
I was wondering if I could get some feedback on the biggest thing I
have done as an amateur Python coder. The sidepots algorithm isn't
correct yet, but I haven't worked on it in a while and thought I would
get some advice before diving back in.
import random, os
###
Steven D'Aprano wrote:
>>With two numbers, 15 and 30, all you really need is five test cases:
My solution assumed integers also, but after I posted it, I thought:
"What about floating points?"
On Tue, Oct 7, 2014 at 1:48 AM, Steven D'Aprano wrote:
> On Sun, 05 Oct 2014 20:18:13 -0400, Seymore4He
14 wrote:
> On 10/5/14 7:02 PM, Seymore4Head wrote:
>>
>> For the record, I don't want a hint. I want the answer.
>> I see a practice question is similar to this.
>> 15 <= x < 30 And it wants a similar expression that is equivalent.
>> So the right answer is 15<= x or x <30
>
>
> No, "15 <= x < 3
Once the runtime of SHORT starts to increase by a certain threshold,
Such as 2x, 4x, or 16x its last runtime? The other ideas already
proposed sound better, but I am wondering if it would work.
On Tue, Sep 23, 2014 at 12:21 PM, Terry Reedy wrote:
> On 9/23/2014 10:48 AM, Steven D'Aprano wrote:
>>
I wouldn't take it personally, just defend your position. I think that
is what he is looking for. We are all adults here (maybe?). You guys
should be able to work it out. A tangential skill to programming is
being able to give and take criticism well, even if you think it
crosses the line.
On Mon,
11 matches
Mail list logo