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

# Source Code for Module Gnumed.wxGladeWidgets.wxgEMRTimelinePluginPnl

     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/wxgEMRTimelinePluginPnl.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11 -class wxgEMRTimelinePluginPnl(wx.ScrolledWindow):
    12 -    def __init__(self, *args, **kwds):
    13
    14          from Gnumed.wxpython.gmEMRTimelineWidgets import cEMRTimelinePnl
    15
    16          # begin wxGlade: wxgEMRTimelinePluginPnl.__init__
    17          kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
    18          wx.ScrolledWindow.__init__(self, *args, **kwds)
    19          self._PNL_timeline = cEMRTimelinePnl(self, -1, style=wx.NO_BORDER | wx.TAB_TRAVERSAL)
    20          self._BTN_refresh = wx.Button(self, wx.ID_REFRESH, "")
    21
    22          self.__set_properties()
    23          self.__do_layout()
    24
    25          self.Bind(wx.EVT_BUTTON, self._on_refresh_button_pressed, self._BTN_refresh)
    26          # end wxGlade
    27
    28 -    def __set_properties(self):
    29          # begin wxGlade: wxgEMRTimelinePluginPnl.__set_properties
    30          self.SetScrollRate(10, 10)
    31          self._BTN_refresh.SetToolTipString(_("Refresh the timeline display."))
    32          # end wxGlade
    33
    34 -    def __do_layout(self):
    35          # begin wxGlade: wxgEMRTimelinePluginPnl.__do_layout
    36          sizer_1 = wx.BoxSizer(wx.VERTICAL)
    37          sizer_1.Add(self._PNL_timeline, 1, wx.BOTTOM | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3)
    38          sizer_1.Add(self._BTN_refresh, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL, 0)
    39          self.SetSizer(sizer_1)
    40          sizer_1.Fit(self)
    41          # end wxGlade
    42
    43 -    def _on_refresh_button_pressed(self, event):  # wxGlade: wxgEMRTimelinePluginPnl.<event_handler>
    44          print "Event handler `_on_refresh_button_pressed' not implemented!"
    45          event.Skip()
    46
    47  # end of class wxgEMRTimelinePluginPnl
    48