I am looking for a static line where I can set the color and the style
(e.g. dotted, or repeating a bitmap).
the standard w.staticline (at least under GTK) does not give me this.
Has someone made such a thing I should I build it myself?
Paul
···
--
Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands http://eemvalley.com
-----------------------------------------------------
EemValley Technology werft python & wxpython
programmeurs: http://www.eemvalley.nl/jobs
Hi Paul,
It should be very easy to do that. Derive your control from wx.Panel,
and Bind an event to OnPaint. In there draw a line with a PaintDC from
0,center tot width, center (of your panel). You should also report
back the best size your panel should be in (e.g. the height of the
panel is the height of the line to draw, and the width is a default
width that can be stretched by the sizer.
It should be not more then 20 mins work at the most, depending on how
much extra's you want to put in there. For example make the style a
python property, and using a fset for setting your style you can react
dynamically by calling a Refresh after setting a new style.
Hope this helps
- Jorgen
···
On Fri, Jun 20, 2008 at 11:58 AM, Paul Sijben <sijben@eemvalley.com> wrote:
I am looking for a static line where I can set the color and the style
(e.g. dotted, or repeating a bitmap).
the standard w.staticline (at least under GTK) does not give me this.
Has someone made such a thing I should I build it myself?
Paul
--
Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands http://eemvalley.com
-----------------------------------------------------
EemValley Technology werft python & wxpython
programmeurs: http://www.eemvalley.nl/jobs
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users