border

how can I set element border only on one side?

thanks!

I'm still pretty new to wx.Python but you want to use a one of the
flags listed below, and make sure you have a border size set.

sizer.Add(lbl, border=5, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM | wx.TOP)

if you do

help(wx.StaticText.__init__)

for example, it looks like you can't define a border on widgets, but
only on sizers.

Anyone else?-- am I right here?

-Adam

···

On Fri, Oct 3, 2008 at 9:45 AM, יהודה <goldnery@gmail.com> wrote:

how can I set element border only on one side?

thanks!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

I'm still pretty new to wx.Python but you want to use a one of the
flags listed below, and make sure you have a border size set.

sizer.Add(lbl, border=5, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM | wx.TOP)

if you do
  

>>> help(wx.StaticText.__init__)
        

for example, it looks like you can't define a border on widgets, but
only on sizers.

Anyone else?-- am I right here?

-Adam

Yeah, that's how you set up a border of pixels around the widget. You forgot wx.ALL, which sets the border on all sides.

Mike

···

On Fri, Oct 3, 2008 at 9:45 AM, יהודה <goldnery@gmail.com> wrote:
  >
> how can I set element border only on one side?
>
> thanks!
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

yeah, I didn't mention it because he only wanted to do a border on one
side, but it's definitely worth mention. Thanks for the validation
though!

-Adam

···

On Fri, Oct 3, 2008 at 11:10 AM, Mike Driscoll <mike@pythonlibrary.org> wrote:

I'm still pretty new to wx.Python but you want to use a one of the
flags listed below, and make sure you have a border size set.

sizer.Add(lbl, border=5, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM | wx.TOP)

if you do

>>> help(wx.StaticText.__init__)

for example, it looks like you can't define a border on widgets, but
only on sizers.

Anyone else?-- am I right here?

-Adam

Yeah, that's how you set up a border of pixels around the widget. You forgot
wx.ALL, which sets the border on all sides.

Mike

On Fri, Oct 3, 2008 at 9:45 AM, יהודה <goldnery@gmail.com> wrote:
>
> how can I set element border only on one side?
>
>
> thanks!
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

thank you

···

On Fri, Oct 3, 2008 at 5:20 PM, Adam Fraser adam.n.fraser@gmail.com wrote:

yeah, I didn’t mention it because he only wanted to do a border on one

side, but it’s definitely worth mention. Thanks for the validation

though!

-Adam

On Fri, Oct 3, 2008 at 11:10 AM, Mike Driscoll mike@pythonlibrary.org wrote:

I’m still pretty new to wx.Python but you want to use a one of the

flags listed below, and make sure you have a border size set.

sizer.Add(lbl, border=5, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM | wx.TOP)

if you do

help(wx.StaticText.init)

for example, it looks like you can’t define a border on widgets, but

only on sizers.

Anyone else?-- am I right here?

-Adam

Yeah, that’s how you set up a border of pixels around the widget. You forgot

wx.ALL, which sets the border on all sides.

Mike

On Fri, Oct 3, 2008 at 9:45 AM, יהודה goldnery@gmail.com wrote:

how can I set element border only on one side?

thanks!


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


http://kaze.co.il
יש קצה חוט לרעיון שלך