[wxPython-users] PyAUI Maximise button.
Tim Ansell
mithro at mithis.com
Sun Jan 7 18:41:40 PST 2007
On Sun, 2007-01-07 at 22:36 +0100, Andrea Gavana wrote:
> Hi Tim,
>
> I tried your patch. It is very nice, but there are a couple of problems:
>
> 1) The 2 bitmaps for the maximize button and pin button come out with
> a black background, no matter which mask colour you choose;
It appears to be an incompatibility across wxPython versions, the attach
patch works around this. (I have tested on multiple versions.)
> 2) If a maximize/pin button is coupled with a close button and this
> close button has an event handles that listens for EVT_AUI_PANEBUTTON,
> also the other buttons react to that event.
You should be checking which button is occurring. You can do this
with .GetButton() function.
The constants in PaneInfo should really be exported in the same way
wx.AUI exports them (so you can compare the output of GetButton to
something other then a Magic Number).
> I am trying to figure out the fixes for the two problems. are you on a
> Unix machine? which wxPython version are you using?
>
> Here I have Windows XP, wxPython 2.8.0.1, Python 2.5.
>
I'm currently on a Ubuntu Linux. I have now tested with wxPython
- 2.6.3.2
- 2.7.2.0
- 2.8.0.1
On this platform. I'm yet to check on either Windows or Mac.
Tim Ansell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxaui-max-buttons.diff
Type: text/x-patch
Size: 1679 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070108/2ff39b0a/wxaui-max-buttons.bin
More information about the wxpython-users
mailing list