Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/waxy/checklistbox.py
blob: 67176a6a1085c071ca281260ecae31ef6a0f7789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# checklistbox.py
# XXX doesn't work on Mac.

# todo: styles (if any)

import wx
import waxyobject
import styles

class CheckListBox(wx.CheckListBox, waxyobject.WaxyObject):

    __events__ = {
        'CheckListBox': wx.EVT_CHECKLISTBOX,
    }

    def __init__(self, parent, choices=[], size=None, **kwargs):
        style = 0
        #style |= checklistbox_params(kwargs)
        style |= styles.window(kwargs)

        wx.CheckListBox.__init__(self, parent, wx.NewId(), choices=choices, style=style)

        self.BindEvents()

        styles.properties(self, kwargs)