Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41279

Re: wxgrid - is there an easy way to set alignment of a column?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin1!goblin.stu.neva.ru!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.042
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'alignment': 0.07; 'attributes': 0.07; 'grid': 0.09; 'subject:set': 0.09; 'wrote:': 0.17; 'load': 0.19; 'fairly': 0.21; '15,': 0.23; 'sets': 0.23; 'seems': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'cells': 0.29; "i'm": 0.29; 'fri,': 0.30; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'easy': 0.60; 'subject:there': 0.65; '2013': 0.84; 'column.': 0.84; 'to:name:python': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=TiamP683bNGWDFUvLaZVLG+LcnZaR+9w8Bm61JbP+Q8=; b=nx8K1tVgBqQmOqNSfUGjj7mwSpz2eXwOPRlj9VR8fMs4j9mfTiTHNM5dgJup0J8OXn uJwoN77/kVj/JwW89BEspQtKXTTUMXFnSAwlfrCGwwCe5ailFoRNowaCDF+cBrZpXSyj uURfzTo+jGcA5pg83Jsy+AhQfcx4vmVXfVLKsqfcQ7LSTX81RY+5tCkR52ZqC3//OoSc rw/N1lvyqRYI0BlQLhKrbDkGOqOUCiB4aqFrjO6OIhPuokRbpTfx8+IGIapVVEcFc4mn u7QVZ/fB/gRjzPE9goRiJ0NS25J8Kpj3c6R1FKB0EOasyHBNvEhx8FXfPlAD6ZzSVOYt bugQ==
X-Received by 10.58.65.2 with SMTP id t2mr7796580ves.28.1363362681674; Fri, 15 Mar 2013 08:51:21 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <ggeb1a-9kk.ln1@chris.zbmc.eu>
References <ggeb1a-9kk.ln1@chris.zbmc.eu>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Fri, 15 Mar 2013 09:50:41 -0600
Subject Re: wxgrid - is there an easy way to set alignment of a column?
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3345.1363362683.2939.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363362683 news.xs4all.nl 6959 [2001:888:2000:d::a6]:46412
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41279

Show key headers only | View raw


On Fri, Mar 15, 2013 at 5:50 AM,  <tinnews@isbd.co.uk> wrote:
> I'm using wxGrid and finding it fairly straightforward but I can't see
> an easy way to set the alignment (left, centre, right) for a whole
> column.
>
> There's SetDefaultCellAlignment() which sets the default for the whole
> grid and there's SetCellAlignment() which sets it for a specific cell
> but there seems to be no way to set the default alignment for a column.
>
> Am I missing something or do I need to do it for individual cells as I
> load the data?

You can use SetColAttr() to set attributes over a whole column.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

wxgrid - is there an easy way to set alignment of a column? tinnews@isbd.co.uk - 2013-03-15 11:50 +0000
  Re: wxgrid - is there an easy way to set alignment of a column? Ian Kelly <ian.g.kelly@gmail.com> - 2013-03-15 09:50 -0600
    Re: wxgrid - is there an easy way to set alignment of a column? tinnews@isbd.co.uk - 2013-03-15 18:29 +0000

csiph-web