[wxPython-users] ANN: FancyButtonPanel Control For wxPython
Alexei Vinidiktov
alexei.vinidiktov at gmail.com
Thu Oct 5 09:33:05 PDT 2006
Hello Andrea,
Andrea Gavana wrote:
> Hello Alexei,
>
>> Do you plan on implementing a FancyButtonPanel alignment property, or do
>> you intend your implementation to stay as close to the original as
>> possible?
>
> Do you mean that instead of having Set* and Get* method like:
>
> titleBar.SetAlignment(BP_ALIGN_RIGHT)
>
> You would like to have something like:
>
> titleBar.Alignment = BP_ALIGN_RIGHT
>
> ? Like in the new refactoring of wxPython in 2.7? (this SetAlignment
> and GetAlignment are already in the code)
Yes, that would be nice.
>
> Well, if this is the case, I will surely try to do it, to have also my
> widgets to be more "Pythonic". I only don't know how Robin has
> implemented the changes in wxPython from setter and getter to
> properties, so if Robin could share some suggestions on how to do it
> semi-automatically (faster) I will surely do it.
This and I think it would be nice to move all the code that deals with
buttons' alignment (part of the CreateButtons function code) from the
app to the FancyButtonPanel class. As I see it now part of the alignment
configuration goes on in the FancyButtonPanel class, and another part of
it in the applicatin. Or maybe I'm missing something?
--
Best regards,
Alexei Vinidiktov
More information about the wxpython-users
mailing list