#!/usr/bin/env python
# -*- coding: ISO-8859-15 -*-
# generated by wxGlade 0.4.1 on Mon Oct 30 15:34:28 2006

import wx

class wxgXdtListPnl(wx.ScrolledWindow):
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmListWidgets

        # begin wxGlade: wxgXdtListPnl.__init__
        kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._LCTRL_xdt = gmListWidgets.cReportListCtrl(self, -1, style=wx.LC_REPORT|wx.NO_BORDER)
        self._BTN_load = wx.Button(self, -1, _("load file"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_load_button_pressed, self._BTN_load)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxgXdtListPnl.__set_properties
        self.SetScrollRate(10, 10)
        self._LCTRL_xdt.SetFocus()
        self._BTN_load.SetToolTipString(_("Load an xDT file."))
        self._BTN_load.SetDefault()
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxgXdtListPnl.__do_layout
        _szr_main = wx.BoxSizer(wx.VERTICAL)
        _szr_main.Add(self._LCTRL_xdt, 1, wx.EXPAND, 0)
        _szr_main.Add(self._BTN_load, 0, 0, 0)
        self.SetAutoLayout(True)
        self.SetSizer(_szr_main)
        _szr_main.Fit(self)
        _szr_main.SetSizeHints(self)
        # end wxGlade

    def _on_load_button_pressed(self, event): # wxGlade: wxgXdtListPnl.<event_handler>
        print "Event handler `_on_load_button_pressed' not implemented"
        event.Skip()

# end of class wxgXdtListPnl


