gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] bootstrap database


From: Sebastian Hilbert
Subject: Re: [Gnumed-devel] bootstrap database
Date: Sun, 27 Mar 2011 14:25:09 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.3-16-desktop; KDE/4.6.0; i686; ; )

Am Sonntag, 27. März 2011, 12:02:15 schrieb Sebastian Hilbert:
> Am Sonntag, 27. März 2011, 09:23:20 schrieb Sebastian Hilbert:
> > Am Sonntag, 27. März 2011, 09:11:39 schrieb Sebastian Hilbert:
> > > Am Freitag, 25. März 2011, 23:56:04 schrieb Karsten Hilbert:
> > > > On Fri, Mar 25, 2011 at 09:35:50PM +0100, Hilbert, Sebastian wrote:
> > > > > http://www.wxpython.org/docs/api/wx.Sizer-class.html
> > > > > 
> > > > > GetMinSize(self)
> > > > > Returns the minimal size of the sizer. This is either the combined
> > > > > minimal size of all the children and their borders or the minimal
> > > > > size set by SetMinSize, depending on which is bigger.
> > > > > Returns:
> > > > > Size
> > > > 
> > > > Well, tell you what, the very window we are talking about
> > > > 
> > > > (substance intake edit area dialog) does set MinSize:
> > > >         self.SetMinSize((650, 525))
> > > > 
> > > > On my machine this works just fine and properly sizes the
> > > > edit area pnl which in turn properly sizes the edit are
> > > > dialog.
> > 
> > print __main_szr.GetMinSize()
> > __main_szr.SetMinSize((650, 525))
> > print __main_szr.GetMinSize()
> > 
> > 
> > still gives
> > 610x475
> > 610x475
> 
> More interesting data.
> 
> adding a
> __main_szr.RecalcSizes()
> 
> actually does return
> 
> 650,525

Finally found a way to make it work.

  self.SetSizer(__szr_main)
        __szr_main.Fit(self)
+        __szr_main.SetMinSize((650, 525))
+       __szr_main.RecalcSizes()
+       __szr_main.SetSizeHints(self)
        # end wxGlade

 Sebastian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]