blob: 6653a3efca3ecdc19b8eaca56c2aaa72b11ec9f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# line.py
import wx
import waxyobject
class Line(wx.StaticLine, waxyobject.WaxObject):
def __init__(self, parent, size=(20,-1), direction='horizontal'):
style = 0
if direction.lower().startswith('h'):
style |= wx.LI_HORIZONTAL
elif direction.lower().startswith('v'):
style |= wx.LI_HORIZONTAL
else:
raise ValueError, "direction should be horizontal or vertical"
wx.StaticLine.__init__(self, parent, wx.NewId(), size=size, style=style)
|