Gnumed.wxGladeWidgets.wxgEMRJournalPluginPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgEMRJournalPluginPnl

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3  # generated by wxGlade 0.6.5 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgEMRJournalPluginPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11 -class wxgEMRJournalPluginPnl(wx.ScrolledWindow):
    12 -    def __init__(self, *args, **kwds):
    13          # begin wxGlade: wxgEMRJournalPluginPnl.__init__
    14          kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
    15          wx.ScrolledWindow.__init__(self, *args, **kwds)
    16          self._RBTN_by_encounter = wx.RadioButton(self, -1, "&Encounter")
    17          self._RBTN_by_last_modified = wx.RadioButton(self, -1, "&Last modification time")
    18          self._SLINE_top = wx.StaticLine(self, -1)
    19          self._TCTRL_journal = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.NO_BORDER)
    20
    21          self.__set_properties()
    22          self.__do_layout()
    23
    24          self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_encounter_selected, self._RBTN_by_encounter)
    25          self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_last_mod_selected, self._RBTN_by_last_modified)
    26          # end wxGlade
    27
    28 -    def __set_properties(self):
    29          # begin wxGlade: wxgEMRJournalPluginPnl.__set_properties
    30          self.SetScrollRate(10, 10)
    31          self._RBTN_by_encounter.SetToolTipString("Show journal ordered by encounter.")
    32          self._RBTN_by_encounter.SetValue(1)
    33          self._RBTN_by_last_modified.SetToolTipString("Show journal ordered by time of last modification.")
    34          self._TCTRL_journal.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
    35          self._TCTRL_journal.SetFont(wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, 0, ""))
    36          self._TCTRL_journal.SetFocus()
    37          # end wxGlade
    38
    39 -    def __do_layout(self):
    40          # begin wxGlade: wxgEMRJournalPluginPnl.__do_layout
    41          __szr_main = wx.BoxSizer(wx.VERTICAL)
    42          __szr_top = wx.BoxSizer(wx.HORIZONTAL)
    43          __lbl_mode = wx.StaticText(self, -1, "Order by:")
    44          __szr_top.Add(__lbl_mode, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
    45          __szr_top.Add(self._RBTN_by_encounter, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
    46          __szr_top.Add(self._RBTN_by_last_modified, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    47          __szr_main.Add(__szr_top, 0, wx.LEFT | wx.RIGHT | wx.TOP | wx.EXPAND, 3)
    48          __szr_main.Add(self._SLINE_top, 0, wx.ALL | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
    49          __szr_main.Add(self._TCTRL_journal, 1, wx.ALL | wx.EXPAND, 3)
    50          self.SetSizer(__szr_main)
    51          __szr_main.Fit(self)
    52          # end wxGlade
    53
    54 -    def _on_order_by_encounter_selected(self, event):  # wxGlade: wxgEMRJournalPluginPnl.<event_handler>
    55          print "Event handler `_on_order_by_encounter_selected' not implemented!"
    56          event.Skip()
    57
    58 -    def _on_order_by_last_mod_selected(self, event):  # wxGlade: wxgEMRJournalPluginPnl.<event_handler>
    59          print "Event handler `_on_order_by_last_mod_selected' not implemented!"
    60          event.Skip()
    61
    62  # end of class wxgEMRJournalPluginPnl
    63