Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion 2 grids in sizer ?

Received: by 10.66.80.4 with SMTP id n4mr8430356pax.7.1352831171432;
        Tue, 13 Nov 2012 10:26:11 -0800 (PST)
X-BeenThere: wxpython-users@googlegroups.com
Received: by 10.68.236.33 with SMTP id ur1ls29970354pbc.2.gmail; Tue, 13 Nov
 2012 10:26:05 -0800 (PST)
Received: by 10.66.80.228 with SMTP id u4mr9235201pax.39.1352831165004;
        Tue, 13 Nov 2012 10:26:05 -0800 (PST)
Received: by 10.66.80.228 with SMTP id u4mr9235200pax.39.1352831164995;
        Tue, 13 Nov 2012 10:26:04 -0800 (PST)
Return-Path: <ro...@alldunn.com>
Received: from mail-da0-f52.google.com (mail-da0-f52.google.com [209.85.210.52])
        by gmr-mx.google.com with ESMTPS id h8si2228334pav.0.2012.11.13.10.26.04
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 13 Nov 2012 10:26:04 -0800 (PST)
Received-SPF: neutral (google.com: 209.85.210.52 is neither permitted nor denied by best guess record for domain of ro...@alldunn.com) client-ip=209.85.210.52;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.210.52 is neither permitted nor denied by best guess record for domain of ro...@alldunn.com) smtp.mail=ro...@alldunn.com
Received: by mail-da0-f52.google.com with SMTP id f10so2905737dak.25
        for <wxpython-users@googlegroups.com>; Tue, 13 Nov 2012 10:26:04 -0800 (PST)
        d=google.com; s=20120113;
        h=message-id:date:from:user-agent:mime-version:to:subject:references
         :in-reply-to:content-type:content-transfer-encoding
         :x-gm-message-state;
        bh=ZLdids5J2mljZ8DoenAeRGrVjG73/BMFt4MEVR52pwM=;
        b=F0WF1repb0d9MtyYMPIavIz9ozuSinIu2ujMCHLLSlpdISJvc8AusHfS0fCtpkcQvb
         Ido9bvaxELVf2xs4LdXdwWcg6aINZO/4GIHwQ1O7hR+yajkDKI4LbT7ALIj5+dIJ9npF
         lxN05niRZR7hWhZKgB9nz2FxrVJmYIploQaOO/91FCW0UJip2jg9rbw50eIUmB+Ak2Mv
         qKg8ebGKNZRyvs7MNjrmVFPzFvclOhAn27nRMFpQajIaFsylu+7dJ5Zi65Mavj3KffX2
         PTMX9LxxZbVBH2vrH8X+aZQseuSdAgDALU1dMjOpkIr2+9dfh6Ke4Sfi6LTHNnYEJlGg
         pbmw==
Received: by 10.68.230.234 with SMTP id tb10mr69568513pbc.71.1352831164731;
        Tue, 13 Nov 2012 10:26:04 -0800 (PST)
Return-Path: <ro...@alldunn.com>
Received: from havok.alldunn2.com (c-98-246-90-205.hsd1.wa.comcast.net. [98.246.90.205])
        by mx.google.com with ESMTPS id e9sm6461058paz.28.2012.11.13.10.26.02
        (version=SSLv3 cipher=OTHER);
        Tue, 13 Nov 2012 10:26:03 -0800 (PST)
Message-ID: <50A290B9.8030...@alldunn.com>
Date: Tue, 13 Nov 2012 10:26:01 -0800
From: Robin Dunn <ro...@alldunn.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: wxpython-users@googlegroups.com
Subject: Re: [wxPython-users] 2 grids in sizer ?
References: <20121112185334.GC3...@hermes.hilbert.loc> <50A160E3.6060...@alldunn.com> <20121112212056.GC13...@hermes.hilbert.loc>
In-Reply-To: <20121112212056.GC13...@hermes.hilbert.loc>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQk6VUZGJHWxNangYViaK8B+A0p3Hn0ZlRF8AO1U4eKS8h1SCMjj+RKC3IpiuO7LBKWOmq72

On 11/12/12 1:20 PM, Karsten Hilbert wrote:
>
> It seems the initial size is set to (1, 1) by wxGlade -
> which is sensible as the grids are empty at that time.

More likely it is because grids typically contain more columns or rows 
than can comfortably fit within another window, and so the default best 
size calculation will try to make them too big.  The min size overrides 
that best size calc.  You can call their SetMinSize method passing 
wx.DefaultSize to reset that, or you can specify some size other than 
(1,1) if you want them to have a more reasonable fixed minsize.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org