Home | Trees | Indices | Help |
|
---|
|
1 #!/usr/bin/env python 2 # -*- coding: utf8 -*- 3 # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgConsumableSubstanceEAPnl.wxg" 4 5 import wx 6 7 # begin wxGlade: extracode 8 # end wxGlade 9 10 1146 # end wxGlade 47 48 # end of class wxgConsumableSubstanceEAPnl 4914 15 from Gnumed.wxpython import gmMedicationWidgets 16 17 # begin wxGlade: wxgConsumableSubstanceEAPnl.__init__ 18 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 19 wx.ScrolledWindow.__init__(self, *args, **kwds) 20 self._TCTRL_substance = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 21 self._PRW_atc = gmMedicationWidgets.cATCPhraseWheel(self, -1, "", style=wx.NO_BORDER) 22 23 self.__set_properties() 24 self.__do_layout()25 # end wxGlade 2628 # begin wxGlade: wxgConsumableSubstanceEAPnl.__set_properties 29 self.SetScrollRate(10, 10) 30 self._TCTRL_substance.SetToolTipString(_("Enter the name of the consumable substance.\n\nExamples:\n- metoprolol\n- tobacco\n- alcohol\n- marihuana\n- aloe vera\n- ibuprofen"))31 # end wxGlade 3234 # begin wxGlade: wxgConsumableSubstanceEAPnl.__do_layout 35 _gszr_main = wx.FlexGridSizer(2, 2, 1, 3) 36 __lbl_substance = wx.StaticText(self, -1, _("Substance")) 37 __lbl_substance.SetForegroundColour(wx.Colour(255, 0, 0)) 38 _gszr_main.Add(__lbl_substance, 0, wx.ALIGN_CENTER_VERTICAL, 0) 39 _gszr_main.Add(self._TCTRL_substance, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 40 __lbl_atc = wx.StaticText(self, -1, _("ATC code")) 41 _gszr_main.Add(__lbl_atc, 0, wx.ALIGN_CENTER_VERTICAL, 0) 42 _gszr_main.Add(self._PRW_atc, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 43 self.SetSizer(_gszr_main) 44 _gszr_main.Fit(self) 45 _gszr_main.AddGrowableCol(1)
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Feb 28 03:57:56 2011 | http://epydoc.sourceforge.net |