Package Gnumed :: Package wxGladeWidgets :: Module wxgXdtListPnl
[frames] | no frames]

Source Code for Module Gnumed.wxGladeWidgets.wxgXdtListPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: ISO-8859-15 -*- 
 3  # generated by wxGlade 0.4.1 on Mon Oct 30 15:34:28 2006 
 4   
 5  import wx 
 6   
7 -class wxgXdtListPnl(wx.ScrolledWindow):
8 - def __init__(self, *args, **kwds):
9 10 from Gnumed.wxpython import gmListWidgets 11 12 # begin wxGlade: wxgXdtListPnl.__init__ 13 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 14 wx.ScrolledWindow.__init__(self, *args, **kwds) 15 self._LCTRL_xdt = gmListWidgets.cReportListCtrl(self, -1, style=wx.LC_REPORT|wx.NO_BORDER) 16 self._BTN_load = wx.Button(self, -1, _("load file")) 17 18 self.__set_properties() 19 self.__do_layout() 20 21 self.Bind(wx.EVT_BUTTON, self._on_load_button_pressed, self._BTN_load)
22 # end wxGlade 23
24 - def __set_properties(self):
25 # begin wxGlade: wxgXdtListPnl.__set_properties 26 self.SetScrollRate(10, 10) 27 self._LCTRL_xdt.SetFocus() 28 self._BTN_load.SetToolTipString(_("Load an xDT file.")) 29 self._BTN_load.SetDefault()
30 # end wxGlade 31
32 - def __do_layout(self):
33 # begin wxGlade: wxgXdtListPnl.__do_layout 34 _szr_main = wx.BoxSizer(wx.VERTICAL) 35 _szr_main.Add(self._LCTRL_xdt, 1, wx.EXPAND, 0) 36 _szr_main.Add(self._BTN_load, 0, 0, 0) 37 self.SetAutoLayout(True) 38 self.SetSizer(_szr_main) 39 _szr_main.Fit(self) 40 _szr_main.SetSizeHints(self)
41 # end wxGlade 42
43 - def _on_load_button_pressed(self, event): # wxGlade: wxgXdtListPnl.<event_handler>
44 print "Event handler `_on_load_button_pressed' not implemented" 45 event.Skip()
46 47 # end of class wxgXdtListPnl 48