PyAUI with WebKit problems

Hello David & NG,

This is usually a symptom of a window not having a sizer or a
good DoGetBestSize, and so it falls back to the default
behavior of, if it has no children and no minsize, using the
current size. So when it is created that is it's best size,
but when it gets expanded larger by the sizer then that is
it's new best size and the sizer won't shrink it smaller.
The easy solution is to give it a min size, then the sizer
will use that instead of whatever the current size is.

This is probably the best solution I can think of. I have never had particular problems with PyAUI and that's the first time I "see" that behavior. As Robin suggested, try something like:

self.frame_manager.AddPane(self.browser_ctrl,
               PyAUI.PaneInfo().Name('Browser').
                           CenterPane().MinSize(wx.Size(10,10)))

BTW (sorry for the stupid question maybe), in your code are you actually calling self.frame_manager.Update() at the end of your modifications?

thorn in an otherwise good interface. Can anyone advise
whether any improvements are planned to correct this
deficiency. I have not seen any discussion of PyAUI for some time.

That's probably because the only 2 wxPython coders that actually *uses* PyAUI are me and you :slight_smile:
Well, there were no improvement because wxAUI is stuck at version 0.9.1 from 10 January, and before making any drastic modification to PyAUI I would like to see the new release of wxAUI (if it will ever happen...). There were a couple of small bugs in PyAUI code in handling wxMDI things, I have fixed them in my code and I will upload the new source as soon as I can get an internet connection from my new house in London :slight_smile:

Andrea.

···

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London

Direct Tel: +44 (0) 20 717 08942
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Thanks Andrea. Setting a MinSize on the CenterPane has not corrected the issue. On the Update(), yes, sure. I only showed the code relevant to browser sizing and insertion. There are toolbars etc inserted into the frame also. I call the Update on the frame manager once after I have added all the panes.

Regards
David

Gavana, Andrea wrote:

···

Hello David & NG,

This is usually a symptom of a window not having a sizer or a good DoGetBestSize, and so it falls back to the default behavior of, if it has no children and no minsize, using the current size. So when it is created that is it's best size, but when it gets expanded larger by the sizer then that is it's new best size and the sizer won't shrink it smaller. The easy solution is to give it a min size, then the sizer will use that instead of whatever the current size is.

This is probably the best solution I can think of. I have never had particular problems with PyAUI and that's the first time I "see" that behavior. As Robin suggested, try something like:

self.frame_manager.AddPane(self.browser_ctrl, PyAUI.PaneInfo().Name('Browser').
                           CenterPane().MinSize(wx.Size(10,10)))

BTW (sorry for the stupid question maybe), in your code are you actually calling self.frame_manager.Update() at the end of your modifications?

thorn in an otherwise good interface. Can anyone advise whether any improvements are planned to correct this deficiency. I have not seen any discussion of PyAUI for some time.

That's probably because the only 2 wxPython coders that actually *uses* PyAUI are me and you :slight_smile:
Well, there were no improvement because wxAUI is stuck at version 0.9.1 from 10 January, and before making any drastic modification to PyAUI I would like to see the new release of wxAUI (if it will ever happen...). There were a couple of small bugs in PyAUI code in handling wxMDI things, I have fixed them in my code and I will upload the new source as soon as I can get an internet connection from my new house in London :slight_smile:

Andrea.

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London

Direct Tel: +44 (0) 20 717 08942
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Gavana, Andrea wrote:

That's probably because the only 2 wxPython coders that actually *uses* PyAUI are me and you :slight_smile:

I wonder if this is true! :slight_smile: It is a very nice tool in the wxpython toolbox and well worth the effort.

Well, there were no improvement because wxAUI is stuck at version 0.9.1 from 10 January, and before making any drastic modification to PyAUI I would like to see the new release of wxAUI (if it will ever happen...). There were a couple of small bugs in PyAUI code in handling wxMDI things, I have fixed them in my code and I will upload the new source as soon as I can get an internet connection from my new house in London :slight_smile:

That sounds great, Andrea. Hope everything is going great for you in London!

Regards,
DAvid