Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/waxy/line.py
blob: f25448cc71bcc5ff53604d8c562830472c43b565 (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.WaxyObject):

    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)