[wxPython-users] Static text box properties
James Bigler
bigler at cs.utah.edu
Fri Mar 9 06:02:24 PST 2007
Robin Dunn wrote:
> James Bigler wrote:
>> I have two questions about the static text box.
>>
>> 1. Is it possible to change the color of the SIMPLE_BORDER?
>
> No.
I figured, but I though I would ask.
>> 2. Can I pad the text inside the border? Currently the text butts up
>> right against the border. I could add an extra space to the beginning
>> of the label, but it doesn't help for subsequent lines of test after a
>> call to Wrap().
>
> No, wx doesn't try to do anything to control that at all, it just leaves
> the drawing and padding up to the native widget. You could probably
> customize wx.lib.stattext to do what you want though (for #1 too.)
I thought about creating a derived class to StaticText, and overriding
the Wrap function to add some padding on the text for me. That seems
like the easiest thing to do for now.
Again, thanks so much for answering my emails.
James
More information about the wxpython-users
mailing list