Re: absolute sizes
"Werner F. Bruhin" <[email protected]>
| Newsgroups | gmane.comp.ide.boa-constructor.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
ianaré sévi wrote:
> Boa is great, and the new version does fix some things that were
> incredibly irritating (like not recognizing # -*- coding: utf-8 -*-
> ).
>
> However my biggest problem is the forced use of fixed sizes for
> widgets. I develop for, and in, a multiplatform environment (ubuntu,
> 2000, XP). This makes wxPython perfect. However, since boa can't
> handle wx.Size(-1, -1) or wx.DefaultSize, I'm eternally stuck
> designing the app in windows (my primary workstation is ubuntu) and
> then editing them with gedit to remove all the size values, but then
> of course it won't work with boa anymore. BTW, I remove them because
> if I use (-1,-1) and I open it up in boa, it gets set to whatever size
> it likes for that platform.
My workaround for this is a little utility function:
def FixDefaultSize(window):
if isinstance(window, wx.lib.masked.numctrl.NumCtrl) or\
isinstance(window, wx.lib.masked.textctrl.TextCtrl) or\
isinstance(window, wx.lib.masked.combobox.ComboBox):
## window.SetMinSize(wx.DefaultSize)
return
window.SetMinSize(wx.DefaultSize)
for child in window.GetChildren():
FixDefaultSize(child)
window.Layout()
window.Refresh()
I used the masked controls a lot, and they don't like if you go and size
them.
The function is called after self._init_ctrls, although I found that I
don't need as often anymore, it is problably because I have a better
understanding of sizers.
>
> Looking through the boa sources (0.5.2), all I see are absolute sizes.
> In my view, this is a fundamental design flaw for an application that
> is (supposedly) cross platform. I say "supposedly" because if you use
> boa under GTK you have to agree the experience is far below the level
> of usability of the windows version.
>
> Are you planning on addressing this in the next release? Would you
> accept patches regarding this issue?
I can't speak for Riaan, but I would be surprised if he does not accept
patches for this or any other issue (e.g. GTK stuff) in Boa.
Werner
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boa-constructor-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users