25 import wx |
25 import wx |
26 |
26 |
27 |
27 |
28 class BrowseValuesLibraryDialog(wx.Dialog): |
28 class BrowseValuesLibraryDialog(wx.Dialog): |
29 """ |
29 """ |
30 Modal dialog that helps in selecting predefined XML attributes sets out of hierarchicaly organized list |
30 Modal dialog that helps in selecting predefined XML attributes sets out of hierarchically organized list |
31 """ |
31 """ |
32 |
32 |
33 def __init__(self, parent, name, library, default=None): |
33 def __init__(self, parent, name, library, default=None): |
34 wx.Dialog.__init__(self, |
34 wx.Dialog.__init__(self, |
35 name='BrowseValueDialog', parent=parent, |
35 name='BrowseValueDialog', parent=parent, |
36 size=wx.Size(600, 400), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER, |
36 size=wx.Size(600, 400), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER, |
37 title=_('Browse %s library') % name) |
37 title=_('Browse %s values library') % name) |
38 |
38 |
39 self.SetClientSize(wx.Size(600, 400)) |
39 self.SetClientSize(wx.Size(600, 400)) |
40 |
40 |
41 self.staticText1 = wx.StaticText( |
41 self.staticText1 = wx.StaticText( |
42 label=_('Choose a %s:') % name, name='staticText1', parent=self, |
42 label=_('Choose a value for %s:') % name, name='staticText1', parent=self, |
43 pos=wx.Point(0, 0), size=wx.DefaultSize, style=0) |
43 pos=wx.Point(0, 0), size=wx.DefaultSize, style=0) |
44 |
44 |
45 self.ValuesLibrary = wx.TreeCtrl( |
45 self.ValuesLibrary = wx.TreeCtrl( |
46 name='ValuesLibrary', parent=self, pos=wx.Point(0, 0), |
46 name='ValuesLibrary', parent=self, pos=wx.Point(0, 0), |
47 size=wx.Size(0, 0), style=wx.TR_HAS_BUTTONS|wx.TR_SINGLE|wx.SUNKEN_BORDER|wx.TR_HIDE_ROOT|wx.TR_LINES_AT_ROOT) |
47 size=wx.Size(0, 0), style=wx.TR_HAS_BUTTONS|wx.TR_SINGLE|wx.SUNKEN_BORDER|wx.TR_HIDE_ROOT|wx.TR_LINES_AT_ROOT) |