Re: Odd behaviors of Pythoncard under Ubuntu: errors on exit, StaticText over BitmapCanvas, multiple item move

Neil Hughes <[email protected]> Sun, 23 Nov 2008 12:47:54 +0000
Newsgroups gmane.comp.python.pythoncard
Organization Support4Omega Ltd.
Message-ID <[email protected]>
On Tue, 04 Nov 2008 23:01:23 +0000, Alex Tweedly <[email protected]> wrote:

> Andrew Spagnoletti wrote:
> >
> > 2. I have a particular problem; does anyone know how to right-align a 
> > column in a multi column list in PythonCard? In commercial systems 
> > this is a common requirement. Similarly, is there a way of setting the 
> > font type and size for a particular column in a multi column list?
> See samples/minimalList - it creates its columns using
> 
> >         list.InsertColumn(0, "Artist")
> >         list.InsertColumn(1, "Title", wx.LIST_FORMAT_RIGHT)
> >         list.InsertColumn(2, "Genre")  
> 
> Don't know offhand about the font type, but there should be a similar 
> direct call into wx to do it. Or, it may not be possible to set the font 
> for each column (I don't see a wx sampel that does this, with a cursory 
> look). You may need to use a grid rather than a list .... but an explore 
> of the wx samples or docs should sort that out for you.

Well, I'm stumped...I Google'd and I tried various things, but it looks like the font properties can't be modified for a particular column...just on a row-by-row basis. I think Alex could be right - you need to set up a grid.

-- 
Neil Hughes
-- 
Neil Hughes
Support4Omega Ltd.

Tel:         07793 134456
Fax-2-Email: 0870 7051877
Web:         www.support4omega.co.uk

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/