Hello,
I have improved PyAUI's development branch to also include support for
the Maximize button, this is compatible with the way the current wxAUI
works. I also plan to add support for a Minimize (which is not in wxAUI
yet).
I have included a patch in this email. What should I do about getting it
included in the PyAUI distribution?
I have also forwarded it to the wxWidgets list so that others can use it
straight away.
Hope everyone likes it.
Tim Ansell
max.patch (14.4 KB)
Hi Tim,
I have improved PyAUI's development branch to also include support for
the Maximize button, this is compatible with the way the current wxAUI
works. I also plan to add support for a Minimize (which is not in wxAUI
yet).
Wow, I didn't know there was still someone using PyAUI, except me 
I have included a patch in this email. What should I do about getting it
included in the PyAUI distribution?
That depends on where you got the source ;-). Did you download it from
my website here:
http://xoomer.alice.it/infinity77/eng/freeware.html#pyaui
?
If this is the case, I will apply the patch and upload the new version
as soon as possible (tomorrow, if I get your confirmation). I remember
I upload the source also to a server kindly provided by Horst Herb,
here:
http://www.ozdocit.org/websvn/listing.php?repname=wxPyExtras&path=%2Ftrunk%2F&rev=0&sc=1
But I am unsure if Horst still wants to support this.
Thank you so much for your patch!
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 1/7/07, Tim Ansell 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;
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.
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.
···
On 1/7/07, Andrea Gavana <andrea.gavana@gmail.com> wrote:
Hi Tim,
On 1/7/07, Tim Ansell wrote:
> I have improved PyAUI's development branch to also include support for
> the Maximize button, this is compatible with the way the current wxAUI
> works. I also plan to add support for a Minimize (which is not in wxAUI
> yet).
Wow, I didn't know there was still someone using PyAUI, except me 
> I have included a patch in this email. What should I do about getting it
> included in the PyAUI distribution?
That depends on where you got the source ;-). Did you download it from
my website here:
http://xoomer.alice.it/infinity77/eng/freeware.html#pyaui
?
If this is the case, I will apply the patch and upload the new version
as soon as possible (tomorrow, if I get your confirmation). I remember
I upload the source also to a server kindly provided by Horst Herb,
here:
http://www.ozdocit.org/websvn/listing.php?repname=wxPyExtras&path=%2Ftrunk%2F&rev=0&sc=1
But I am unsure if Horst still wants to support this.
Thank you so much for your patch!
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
--
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
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
wxaui-max-buttons.diff (1.64 KB)
···
On Sun, 2007-01-07 at 22:36 +0100, Andrea Gavana wrote: