PyGUI show_text()

2007-02-03 Thread Arnd
Heya,

any PyGUI users out there?

I needed some finer text-positioning on a canvas (ie wanted to center
a string wrt a point, something show_text() doesn't provide) So I
looked into the sources and found all information, eg the dimensions
of the surrounding rectangle
are given by
mycanvas._font._get_pango_layout(mystring, True).get_pixel_size()

>From this one can calculate a new basepoint, this works fine. I wonder
if there is a more elegant way I've overseen so far. (Or if not,
Greg ;) would it be possible to include some optional positioning
parameters, something like left,center,right,top,middle,bottom to
show_text()).

All in all thanks a lot for PyGUI, even if it's still far away from
beeing complete.
To me it really brought back some fun in python-gui-programming.

Arnd

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Decimating Excel files

2007-02-04 Thread Arnd
> Every other line would be bicimating or something,
> wouldn't it?

Good observation, but as we have numbers of type Cardinalia,
Ordinalia, Distributiva & Multiplicativa in Latin I would prefer
secundating or secondating. (Bisimating or bicimating would multiply
the lines by a factor 2)

;) Arnd

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Decimating Excel files

2007-02-05 Thread Arnd
On 5 Feb., 10:53, greg <[EMAIL PROTECTED]> wrote:

> Interesting. But does this mean that "duplicating" is
> actually from the wrong root?

by definition: roots are never wrong ;)
But indeed, you're right, one has to look at the root (eg connected
verb) to understand the Numeralia they used:
The number 2 has Numeralia duo, secundus, bini and bis:

duo + plicare (=to fold): Cardinalia (how much? ->n-fold)

> And also we have  "bifurcation",

yes, or eg "bisection" (from "bis"):  Multiplicativa (how many times?)
To complete the story:
"binary" (from "bini"): Distributiva (how much each time?, to build
groups or distributions)
"second" (from "secundus"): Ordinalia (which? -> the 2nd, the 3rd etc)

Arnd (I hated Latin)


-- 
http://mail.python.org/mailman/listinfo/python-list