Hello, I would like to be able to get information from a Tkinter canvas
object. (color, width, tags, root points, etc),
I wrote the following function that, with a canvas bind, returns me the
widget that has been clicked on, the widget is returned as a tuple by the
find_overlapping method.
# det
Thanks again for all the useful tips.
I settled with R for now. As Oscar said, the dataset is not massive so I could
have done it using a dictionary. However some of the more frequent requests
will include to find data during certain times during certain days, for
specific months or weekdays vs.
Marilyn Davis schreef op wo 14-11-2012 om 13:23 [-0800]:
> I found this site:
> http://hints.macworld.com/article.php?story=20100713130450549
>
> and that fixes it.
Short answer: It is not a fix but a workaround. Try:
print symbol.encode('utf-8')
Longer answer: It is not really a fix, it is a wo
On 11/14/2012 04:07 PM, Marilyn Davis wrote:
>
>
> Goodness! I didn't expect it to be a Mac thing.
>
> So, on a Windows machine, running Python 2.6.6, sys.stdout.encoding is
> 'cp1252', yet the code runs fine.
>
> On Ubuntu with 2.7, it's 'UTF-8' and it runs just fine.
>
> I find this most myste
On Wed, November 14, 2012 1:07 pm, Marilyn Davis wrote:
> Thank you, Dave, for looking at my problem, and for correcting me on my
> top posting.
>
> See below:
>
>
> On Wed, November 14, 2012 12:34 pm, Dave Angel wrote:
>
>
>> On 11/14/2012 03:10 PM, Marilyn Davis wrote:
>>
>>
>>> Hi,
>>>
>>>
>>>
Thank you, Dave, for looking at my problem, and for correcting me on my
top posting.
See below:
On Wed, November 14, 2012 12:34 pm, Dave Angel wrote:
> On 11/14/2012 03:10 PM, Marilyn Davis wrote:
>
>> Hi,
>>
>>
>> Last year, I was helped so that this ran nicely on my 2.6:
>>
>>
>> #! /usr/bin/e
On 11/14/2012 03:10 PM, Marilyn Davis wrote:
> Hi,
>
> Last year, I was helped so that this ran nicely on my 2.6:
>
> #! /usr/bin/env python
> # -*- coding: utf-8 -*-
> # necessary for python not to complain about "¥"
>
> symbol = unichr(165)
> print unicode(symbol)
>
> --- end of code ---
>
> But,
Hi,
Last year, I was helped so that this ran nicely on my 2.6:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# necessary for python not to complain about "¥"
symbol = unichr(165)
print unicode(symbol)
--- end of code ---
But, now on my 2.7, and on 2.6 when I tried reinstalling it, I get:
bas
On Wed, Nov 14, 2012 at 12:52 PM, Selby Rowley Cannon
wrote:
>
> I've been trying to write a function to find the Lowest Common Multiple
> of two numbers, but it isn't working and I've kinda hit a dead end on the
> thought-process end of things.
Since the LCM is the smallest multiple of both
On 11/14/2012 01:34 PM, Selby Rowley Cannon wrote:
> On 14/11/12 18:27, Dave Angel wrote:
>> On 11/14/2012 12:52 PM, Selby Rowley Cannon wrote:
>>> Hey,
>>>
Tell us what version of Python you're targeting. I'm going to assume
2.x, since you have print without parens.
>>> I've been trying to
On 14/11/12 18:27, Dave Angel wrote:
On 11/14/2012 12:52 PM, Selby Rowley Cannon wrote:
Hey,
I've been trying to write a function to find the Lowest Common
Multiple of two numbers, but it isn't working and I've kinda hit a
dead end on the thought-process end of things. Anyone mind looking
On 11/14/2012 12:52 PM, Selby Rowley Cannon wrote:
> Hey,
>
> I've been trying to write a function to find the Lowest Common
> Multiple of two numbers, but it isn't working and I've kinda hit a
> dead end on the thought-process end of things. Anyone mind looking at
> it, and tell me what's wron
Hey,
I've been trying to write a function to find the Lowest Common
Multiple of two numbers, but it isn't working and I've kinda hit a dead
end on the thought-process end of things. Anyone mind looking at it, and
tell me what's wrong? (I hop you don't think it's too long to put in an
emai
On 14 November 2012 03:17, David Martins wrote:
> Hi All
>
> I'm trying to use python for analysing data from building energy simulations
> and was wondering whether there is way to do this without using anything sql
> like.
There are many ways to do this.
>
> The simulations are typically run f
Hi David,
I have found happiness with http://ipython.org/ which can do stuff like
this:
[image: _images/ipy_0.13.png]
SQLite is embedded in python's database API, and gives an easy data import
and handling. The syntax is extremely well described here:
http://www.sqlite.org/lang.html and I've bee
On 14/11/12 08:13, David Martins wrote:
I remember having looked at R a while ago but did never pick it up. I
found a nice tutorial and will give it a go.
There is an interface to R from Python too.
So you can combine the two..
However, given your stated aims SQL does look like the most natur
Thanks Andre and Ryan
At first glance Pytables looks certainly a lot better than sql... I also found
vitables which seems to be a nice GUI interface and will play around with both
tomorrow.
I remember having looked at R a while ago but did never pick it up. I found a
nice tutorial and will giv
17 matches
Mail list logo